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
AudioDecoderJson Class
Extends
IAudioDecoder
A decoder for json data and audio within a single data stream. Decodes the data into split audio and text streams
Fields
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
bool
RequireSequentialDecode
[Get]
Due to headers, sequential decode is required
Member Functions
AudioDecoderJson
(
IAudioDecoder
audioDecoder,
AudioJsonDecodeDelegate
onJsonDecoded )
Constructor that takes in an audio decoder and decode callback delegate
Parameters
audioDecoder
The audio decoder to receive
onJsonDecoded
The delegate to be called every time a json chunk is decoded
void
Setup
( int channels,
int sampleRate )
Performs an audio decode setup with specified channels and sample rate
Parameters
channels
Channels supported by audio file
sampleRate
Sample rate supported by audio file
int
GetTotalSamples
( ulong contentLength )
Cannot determine total samples via content length alone
float []
Decode
( byte [] chunkData,
int chunkStart,
int chunkLength )
Performs a decode of full chunk 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 floats that range from 0 to 1
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