Our new developer documentation is now available. Please check it out!
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.
public class MicrophoneReader : MonoBehaviour
Handles microphone input data and sends input to ODIN
Properties
Name | Type | Description |
---|---|---|
HasPermission | Boolean | Check if the user has authorized use of the microphone |
RedirectCapturedAudio | Boolean | |
ContinueRecording | Boolean | |
AudioClipLength | Int32 | |
OverrideSampleRate | Boolean | Use set DeviceSampleRate on false |
SampleRate | MediaSampleRate | The recording Core |
CustomInputDevice | Boolean | |
InputDevice | String | |
AutostartListen | Boolean | Use |
CustomMicVolumeScale | Boolean | |
MicVolumeScale | Single | |
Loopback | Boolean | Create and play |
OnMicrophoneData | MicrophoneCallbackDelegate | Event is fired if raw microphone data is available |
Public Methods
Name | Description |
---|---|
StartListen | Start Unity microphone capture |
MuteRoomMicrophone | Request SetMicrophoneMute(System to mute by room |
StopListen | Stop Unity Microphone capture if this AudioSender created the recording |