API reference

AudioDecoderJson Class

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

Constructors

AudioDecoderJson ( audioDecoder , onJsonDecoded )
Constructor that takes in an audio decoder and decode callback delegate
Signature
Meta.Voice.Audio.Decoding.AudioDecoderJson.AudioDecoderJson(IAudioDecoder audioDecoder, AudioJsonDecodeDelegate onJsonDecoded)
Parameters
audioDecoder: IAudioDecoder  The audio decoder to receive
onJsonDecoded: AudioJsonDecodeDelegate  The delegate to be called every time a json chunk is decoded

Fields

WillDecodeInBackground : bool
All json decoding should occur in background
Signature
bool Meta.Voice.Audio.Decoding.AudioDecoderJson.WillDecodeInBackground

Methods

Decode ( buffer , bufferOffset , bufferLength , onSamplesDecoded )
A method for decoded bytes and calling an AddSample delegate for each sample
Signature
void Meta.Voice.Audio.Decoding.AudioDecoderJson.Decode(byte[] buffer, int bufferOffset, int bufferLength, AudioSampleDecodeDelegate onSamplesDecoded)
Parameters
buffer: byte []  A buffer of bytes to be decoded into audio sample data
bufferOffset: int  The buffer start offset used for decoding a reused buffer
bufferLength: int  The total number of bytes to be used from the buffer
onSamplesDecoded: AudioSampleDecodeDelegate  Callback following a sample decode
Returns
void