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
BaseAudioClipInput Class
Extends
MonoBehaviour,
IAudioInputSource
,
IAudioLevelRangeProvider
An abstract class for IAudioInputSources that use audio clips
Properties
abstract AudioClip
Clip
[Get]
The audio clip generated
abstract int
ClipPosition
[Get]
The current total samples written to the audio clip
abstract bool
CanActivateAudio
[Get]
Whether audio can be activated
int
AudioSampleLength
[Get]
The total length in ms for the samples
AudioEncoding
AudioEncoding
[Get]
Generates an audio encoding object using the existing settings
VoiceAudioInputState
ActivationState
[Get]
Whether audio is activated or not, independent of record state
bool
IsRecording
[Get]
Whether the audio has begun recording or not
bool
IsMuted
[Get]
Fields
bool
ActivateOnEnable
[Get]
Whether audio should be activated as soon as enabled
int
AudioChannels
[Get]
The audio channels expected for this
int
AudioSampleRate
[Get]
The audio sample rate that should be captured at
float
MinAudioLevel
[Get]
Ignore audio input below 0.5f magnitude
float
MaxAudioLevel
[Get]
Allow max audio input magnitude
Events
Action<
VoiceAudioInputState
>
OnActivationStateChange
Callbacks for audio activation, independent of record state
Action
OnStartRecording
Callback when successfully started recording
Action
OnStartRecordingFailed
Callback if recording request failed
Action
OnStopRecording
Callback when successfully stopped recording
Action< int, float[], float >
OnSampleReady
Callback for audio sample read from Audio Clip
Action
OnMicMuted
Action
OnMicUnmuted
Protected Functions
void
SetActivationState
(
VoiceAudioInputState
newActivationState )
Setter for activation state changes
virtual void
SetMuted
( bool muted )
virtual void
OnEnable
( )
If activate on enable, begin activation immediately
abstract IEnumerator
HandleActivation
( )
Perform audio activation in child class
virtual void
OnDisable
( )
Stop recording if disabled
abstract void
HandleDeactivation
( )
Deactivate current audio immediately
Member Functions
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
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