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
RedirectCapturedAudioBoolean
ContinueRecordingBoolean
AudioClipLengthInt32
OverrideSampleRateBooleanUse set DeviceSampleRate on false
SampleRateMediaSampleRateThe recording
AutostartListenBooleanUse (Microphone.Start) in MicrophoneReader
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 to mute by room
StopListenStop Unity Microphone capture if this AudioSender created the recording