Developer Documentation

OdinMicrophoneReader

public class OdinMicrophoneReader : MonoBehaviour

Handles microphone input data and sends input to ODIN

This convenient class gathers input audio data from Unity managed Microphone to pass the data with OdinMicrophoneReader event to other components.

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
Samplerate
CustomInputDeviceEnable/Disable the use of InputDevice as a new/fixed device name
InputDeviceThe device name to use as microphone in Unity. (i.e Microphone.Start )
AutostartListenUse UnityEngine.Microphone.Start (Microphone.Start) in OdinMicrophoneReader
CustomMicVolumeScale
MicVolumeScale
OnAudioData
MicrophoneSamplerate
MicrophoneChannels
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