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 | Type | Description |
---|---|---|
HasPermission | Boolean | Check if the user has authorized use of the microphone |
RedirectCapturedAudio | Boolean | Skips registered PushAudio for the OnMicrophoneData event |
SilenceCapturedAudio | Boolean | Zero out the event audio buffer for PushAudio. |
ContinueRecording | Boolean | |
AudioClipLength | Int32 | |
OverrideSampleRate | Boolean | Use set DeviceSampleRate on false |
SampleRate | MediaSampleRate | The recording Core |
CustomInputDevice | Boolean | Enable/Disable the use of InputDevice as a new/fixed device name |
InputDevice | String | The device name to use as microphone in Unity. (i.e Microphone.Start) |
AutostartListen | Boolean | Use |
CustomMicVolumeScale | Boolean | |
MicVolumeScale | Single | |
Loopback | Boolean | Create and play |
OnMicrophoneData | MicrophoneCallbackDelegate | 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 |