Developer Documentation

MicrophoneReader

Switch to manual

public class MicrophoneReader : MonoBehaviour

Handles microphone input data and sends input to ODIN

Properties

NameTypeDescription
HasPermissionBooleanCheck if the user has authorized use of the microphone
RedirectCapturedAudioBooleanSkips registered PushAudio for the OnMicrophoneData event
SilenceCapturedAudioBooleanZero out the event audio buffer for PushAudio.
ContinueRecordingBoolean
AudioClipLengthInt32
OverrideSampleRateBooleanUse set DeviceSampleRate on false
SampleRateMediaSampleRateThe recording Core
CustomInputDeviceBooleanEnable/Disable the use of InputDevice as a new/fixed device name
InputDeviceStringThe device name to use as microphone in Unity. (i.e Microphone.Start)
AutostartListenBooleanUse (Microphone.Start) in MicrophoneReader
CustomMicVolumeScaleBoolean
MicVolumeScaleSingle
LoopbackBooleanCreate and play (AudioSource) with a Microphone (AudioClip) on loop.
OnMicrophoneDataMicrophoneCallbackDelegateEvent is fired if raw microphone data is available

Public Methods

NameDescription
StartListenStart Unity microphone capture
StopListenStop Unity Microphone capture if this AudioSender created the recording