Class OdinMicrophoneReader
Handles microphone input data and sends input to ODIN
This convenient class gathers input audio data from Unity managed Microphone to pass the data with OdinNative.Unity.Audio.OdinMicrophoneReader.OnAudioData event to other components.
Assembly: cs.temp.dll.dll
Properties
HasPermission
Check if the user has authorized use of the microphone
MicrophoneSamplerate
MicrophoneChannels
Fields
RedirectCapturedAudio
Skips registered PushAudio for the OnMicrophoneData event
SilenceCapturedAudio
Zero out the event audio buffer for PushAudio.
ContinueRecording
Samplerate
CustomInputDevice
Enable/Disable the use of OdinNative.Unity.Audio.OdinMicrophoneReader.InputDevice as a new/fixed device name
InputDevice
The device name to use as microphone in Unity. (i.e Microphone.Start)
AutostartListen
Use UnityEngine.Microphone.Start (Microphone.Start) in OdinNative.Unity.Audio.OdinMicrophoneReader.Start
CustomMicVolumeScale
MicVolumeScale
OnAudioData
OnMicrophoneData
Event is fired if raw microphone data is available
Methods
StartListen()
Start Unity microphone capture
Returns
System.Boolean
StopListen()
Stop Unity Microphone capture if this AudioSender created the recording