Our new developer documentation is now available. Please check it out!
MicrophoneReader
public class MicrophoneReader : MonoBehaviour
Handles microphone input data and sends input to ODIN
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 | |
AudioClipLength | |
OverrideSampleRate | Use set OdinEditorConfig on false |
SampleRate | The recording Core |
CustomInputDevice | Enable/Disable the use of MicrophoneReader as a new/fixed device name |
InputDevice | The device name to use as microphone in Unity. (i.e Microphone.Start ) |
AutostartListen | Use (Microphone.Start) in MicrophoneReader |
CustomMicVolumeScale | |
MicVolumeScale | |
Loopback | Create and play (AudioSource) with a Microphone (AudioClip) on loop. Odin APM Settings are not applied in the loopback sound. |
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 |