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
Meta
Audio
Conduit
Net
Voice
Voice
AboutWindow
Audio
Audio
BaseAudioClipStream
BaseAudioPlayer
BaseAudioSystem
Decoding
Decoding
AudioDecoderJson
AudioDecoderMp3
AudioDecoderMp3Frame
AudioDecoderPcm
IAudioDecoder
IAudioClipProvider
IAudioClipSetter
IAudioClipStream
IAudioPlayer
IAudioSourceProvider
IAudioSystem
RawAudioClipStream
UnityAudioPlayer
UnityAudioSystem
Hub
INLPRequestOptions
INLPRequestResponseDecoder
INLPRequestResults
ITranscriptionRequestOptions
ITranscriptionRequestResults
IVoiceRequestOptions
IVoiceRequestResults
Logging
NLPRequest
NLPRequestEvents
NLPRequestResponseEvent
NLPRequestResponseValidatorEvent
Net
Samples
TelemetryUtilities
TranscriptionRequest
TranscriptionRequestEvent
TranscriptionRequestEvents
VSDKHub
VoiceRequest
VoiceRequestEvents
Windows
WitAi
Oculus
Code samples
Downloads
Release notes
Supported platforms
Meta
AudioDecoderPcm Class
Extends
IAudioDecoder
An audio decoder for raw PCM audio data
Properties
int
Channels
[Get]
Once setup this should display the number of channels expected to be decoded
int
SampleRate
[Get]
Once setup this should display the number of samples per second expected
Fields
bool
RequireSequentialDecode
[Get]
PCM can be decoded in any order prior to merging back in
Member Functions
void
Setup
( int channels,
int sampleRate )
Initial setup of the decoder
Parameters
channels
Total channels of audio data
sampleRate
The rate of audio data received
int
GetTotalSamples
( ulong contentLength )
Gets pcm sample count from byte content length (1 sample = 2 bytes)
Parameters
contentLength
The provided number of bytes
float []
Decode
( byte [] chunkData,
int chunkStart,
int chunkLength )
A method for returning decoded bytes into audio data
Parameters
chunkData
A chunk of bytes to be decoded into audio data
chunkStart
The array start index into account when decoding
chunkLength
The total number of bytes to be used within chunkData
Returns
Returns an array of audio data from 0-1
Static Member Functions
static int
GetTotalSamplesPCM16
( ulong contentLength )
Gets pcm sample count from byte content length (1 sample = 2 bytes)
Parameters
contentLength
The provided number of bytes
static int
GetTotalSamplesPCM16
( int contentLength )
Gets pcm sample count from byte content length
Parameters
contentLength
The provided number of bytes
static float []
DecodePCM16
( byte [] rawData )
static float
DecodeSamplePCM16
( byte [] rawData,
int index )
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