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
WitAi
WitAi
ArrayNodeReference
Attributes
AudioDurationTracker
BaseSpeechService
CallbackHandlers
Comment
ComponentExtensions
Configuration
CoroutineUtility
Data
Dictation
Drawers
EditorUtilities
EnumerableExtensions
Events
ExportParser
ExportSaver
IExportParserPlugin
IRequest
ITelemetryEventsProvider
IVoiceActivationHandler
IVoiceEventProvider
IVoiceService
IWitRequestConfiguration
IWitRequestEndpointInfo
IWitRuntimeConfigProvider
IWitRuntimeConfigSetter
Inspectors
Interfaces
Json
Lib
MatchIntent
MatchIntentRegistry
ObjectNodeReference
PluggableBase
RegisteredMatchIntent
Requests
Requests
AudioStreamHandler
IRequestDownloadHandler
IVRequestStreamable
IWitInfoVRequest
IWitSyncVRequest
IWitVRequest
TextStreamHandler
VRequest
VoiceEventToRequestEventMapper
VoiceServiceMockRequest
VoiceServiceRequest
VoiceServiceRequestEvent
VoiceServiceRequestEvents
VoiceServiceRequestEventsWrapper
VoiceServiceRequestOptions
VoiceServiceRequestResults
WitInfoVRequest
WitMessageVRequest
WitResponseDecoder
WitSocketRequest
WitSyncVRequest
WitTTSVRequest
WitUnityRequest
WitVRequest
ServiceReferences
Speech
TTS
TaskUtility
ThreadUtility
TypeExtensions
UnityEventExtensions
UnityObjectExtensions
Utilities
VLog
ValidatePartialIntent
VoiceService
Windows
Wit
WitAppInfoUtility
WitAuthUtility
WitConduitParameterProvider
WitConfigurationEditorUI
WitConstants
WitEditorConstants
WitEditorUI
WitExportRetriever
WitRequest
WitRequestFactory
WitRequestSettings
WitResponseReference
WitResultUtilities
WitRuntimeRequestConfiguration
WitService
WitStyles
WitTexts
WrapHttpWebRequest
ZipArchiveExtensions
Oculus
Code samples
Downloads
Release notes
Supported platforms
Meta
AudioStreamHandler Class
Extends
DownloadHandlerScript
A download handler for UnityWebRequest that decodes audio data and performs audio sample decoded callbacks.
Properties
bool
IsComplete
[Get]
Whether both the request is complete and decoding is complete
IAudioDecoder
AudioDecoder
[Get]
The script being used to decode audio
AudioSampleDecodeDelegate
OnSamplesDecoded
[Get]
Callback for audio sample decode
AudioDecodeCompleteDelegate
OnComplete
[Get]
Callback for decode completion
Member Functions
AudioStreamHandler
(
IAudioDecoder
audioDecoder,
AudioSampleDecodeDelegate
onSamplesDecoded,
AudioDecodeCompleteDelegate
onComplete )
The constructor that generates the decoder and handles routing callbacks
Parameters
audioDecoder
The audio type requested (Wav, MP3, etc.)
onSamplesDecoded
Called one or more times as audio samples are decoded.
onComplete
Called when all audio samples have been successfully decoded.
void
CleanUp
( )
Protected Functions
override void
ReceiveContentLengthHeader
( ulong contentLength )
If size is provided, generate error buffer size
Parameters
contentLength
override bool
ReceiveData
( byte [] bufferData,
int length )
Receive data and send it to be decoded asynchronously
override string
GetText
( )
override float
GetProgress
( )
override void
CompleteContent
( )
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