AudioDecoderWav
(
sampleBufferLength
)
|
Constructor that sets to PCM int 16
Signature
Meta.Voice.Audio.Decoding.AudioDecoderWav.AudioDecoderWav(int sampleBufferLength=WitConstants.ENDPOINT_TTS_DEFAULT_SAMPLE_LENGTH) Parameters sampleBufferLength: int |
Decode
(
buffer
, bufferOffset
, bufferLength
, onSamplesDecoded
)
|
A method for decoded bytes and calling an onSamplesDecoded to return float[] as they are decoded
Signature
override void Meta.Voice.Audio.Decoding.AudioDecoderWav.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 override void |