Why Meta Quest?
Design
Develop
API reference
Distribute and grow
Blog
Support
API reference
API reference
Select your platform
No SDKs available
No versions available
Overview
AudioClipAudioSource
ImageViewer
Lib
Conduit
Wit
BaseAudioClipInput
IAudioLevelRangeProvider
Mic
MicBase
MicEditor
VoiceLipSyncMic
Meta
Oculus
Code samples
Downloads
Release notes
Supported platforms
Lib
Mic Class
Extends
MonoBehaviour,
IAudioInputSource
,
BaseAudioClipInput
, ILogSource
A simple mic playback class
Properties
IVLogger
Logger
[Get]
List< string >
Devices
[Get]
List of all the available
Mic
devices
int
CurrentDeviceIndex
[Get]
Index of the current
Mic
device in m_Devices
string
CurrentDeviceName
[Get]
Gets the name of the
Mic
device currently in use
bool
IsMuted
[Get]
int
AudioClipSampleRate
[Get]
Fields
override AudioClip
Clip
[Get]
The audio clip obtained from Microphone.Start
override int
ClipPosition
[Get]
The current clip position of the
override bool
CanActivateAudio
[Get]
Always allow initial activation
override bool
ActivateOnEnable
[Get]
Due to Microphone.Start & Microphone.End taking so long, activate on enable
float
MicStartTimeout
[Get]
Searches for mics for this long following an activation request.
int
MicBufferLength
[Get]
Total amount of seconds included within the mic audio clip buffer
override int
AudioSampleRate
[Get]
Getter for audio mic sample audio capture in samples per second
bool
IsRecording
[Get]
AudioEncoding
AudioEncoding
[Get]
bool
IsInputAvailable
[Get]
Events
Action
OnStartRecording
Action
OnStartRecordingFailed
Action< int, float[], float >
OnSampleReady
Action
OnStopRecording
Action
OnMicMuted
Action
OnMicUnmuted
Member Functions
void
SetAudioSampleRate
( int newSampleRate )
Sets the new audio sample rate if possible
Parameters
newSampleRate
New sample rate
void
ChangeMicDevice
( int index )
Changes to a
Mic
device for Recording
Parameters
index
The index of the
Mic
device. Refer to
Devices
virtual void
StartRecording
( int sampleDurationMS )
Begins reading with a specified number of ms per sample
virtual void
StopRecording
( )
Stop recording audio from the provided mic source
void
CheckForInput
( )
Protected Functions
virtual override IEnumerator
HandleActivation
( )
Wait for devices to exist & then start mic
virtual override void
HandleDeactivation
( )
Stop microphone for deactivation
virtual void
SetMuted
( bool muted )
Build with Meta
Social Technologies
Meta Horizon
AI
Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Meta Horizon Creator Program
Discover
Why Meta Quest?
What is mixed reality?
Platforms and tools
2D apps for Meta Horizon OS
Devices
Meta Avatars
Success stories
Use cases
Support and legal
Developer policies
Legal
Privacy
Forums
Support
Build with Meta
Social Technologies
Meta Horizon
AI
Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Meta Horizon Creator Program
Discover
Why Meta Quest?
What is mixed reality?
Platforms and tools
2D apps for Meta Horizon OS
Devices
Meta Avatars
Success stories
Use cases
Support and legal
Developer policies
Legal
Privacy
Forums
Support
Build with Meta
Social Technologies
Meta Horizon
AI
Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Meta Horizon Creator Program
Discover
Why Meta Quest?
What is mixed reality?
Platforms and tools
2D apps for Meta Horizon OS
Devices
Meta Avatars
Success stories
Use cases
Support and legal
Developer policies
Legal
Privacy
Forums
Support
English (US)
© 2026 Meta