Developer Documentation
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

NameDescription
HasPermissionCheck if the user has authorized use of the microphone
RedirectCapturedAudioSkips registered PushAudio for the OnMicrophoneData event
SilenceCapturedAudioZero out the event audio buffer for PushAudio.
ContinueRecording
AudioClipLength
OverrideSampleRateUse set OdinEditorConfig on false
SampleRateThe recording Core
CustomInputDeviceEnable/Disable the use of MicrophoneReader as a new/fixed device name
InputDeviceThe device name to use as microphone in Unity. (i.e Microphone.Start )
AutostartListenUse (Microphone.Start) in MicrophoneReader
CustomMicVolumeScale
MicVolumeScale
LoopbackCreate and play (AudioSource) with a Microphone (AudioClip) on loop. Odin APM Settings are not applied in the loopback sound.
OnMicrophoneDataEvent 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