Developer Documentation

MicrophoneReader

Warning

Version 1.1.0 is deprecated and will be removed in the future and is not being supported for new users. Please update to the latest version as soon as possible.

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
RedirectCapturedAudioBoolean
ContinueRecordingBoolean
AudioClipLengthInt32
OverrideSampleRateBooleanUse set DeviceSampleRate on false
SampleRateMediaSampleRateThe recording Core
CustomInputDeviceBoolean
InputDeviceString
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
MuteRoomMicrophoneRequest SetMicrophoneMute(System to mute by room
StopListenStop Unity Microphone capture if this AudioSender created the recording