Our new developer documentation is now available. Please check it out!
OdinMicrophoneReader
public class OdinMicrophoneReader : MonoBehaviour
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 OdinMicrophoneReader event to other components.
Properties
Name | Description |
---|---|
HasPermission | Check if the user has authorized use of the microphone |
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 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 OdinMicrophoneReader |
CustomMicVolumeScale | |
MicVolumeScale | |
OnAudioData | |
MicrophoneSamplerate | |
MicrophoneChannels | |
OnMicrophoneData | Event is fired if raw microphone data is available |
Public Methods
Name | Description |
---|---|
StartListen | Start Unity microphone capture |
StopListen | Stop Unity Microphone capture if this AudioSender created the recording |