AudioBuffer constructor
AudioBuffer({
- required ByteBuffer audioBuffer,
- int? charIndex,
- bool? isLastBuffer,
Implementation
AudioBuffer({
/// The audio buffer from the text-to-speech engine. It should have length
/// exactly audioStreamOptions.bufferSize and encoded as mono, at
/// audioStreamOptions.sampleRate, and as linear pcm, 32-bit signed float
/// i.e. the Float32Array type in javascript.
required ByteBuffer audioBuffer,
/// The character index associated with this audio buffer.
int? charIndex,
/// True if this audio buffer is the last for the text being spoken.
bool? isLastBuffer,
}) : _wrapped = $js.AudioBuffer(
audioBuffer: audioBuffer.toJS,
charIndex: charIndex,
isLastBuffer: isLastBuffer,
);