API reference
API reference
Select your platform
No SDKs available
No versions available

AudioDecoderJson Class

A decoder for json data and audio within a single data stream. Decodes the data into split audio and text streams

Fields

All json decoding should occur in background

Member Functions

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
A method for decoded bytes and calling an AddSample delegate for each sample
Parameters
buffer
A buffer of bytes to be decoded into audio sample data
bufferOffset
The buffer start offset used for decoding a reused buffer
bufferLength
The total number of bytes to be used from the buffer
onSamplesDecoded
Callback following a sample decode
Did you find this page helpful?
Thumbs up icon
Thumbs down icon