menu
chromium package
documentation
dart/tts_engine.dart
AudioBuffer class
AudioBuffer class
dark_mode
light_mode
AudioBuffer
class
Constructors
AudioBuffer
({
required
ByteBuffer
audioBuffer
,
int
?
charIndex
,
bool
?
isLastBuffer
})
AudioBuffer.fromJS
(
AudioBuffer
_wrapped
)
Properties
audioBuffer
↔
ByteBuffer
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.
getter/setter pair
charIndex
↔
int
?
The character index associated with this audio buffer.
getter/setter pair
hashCode
→
int
The hash code for this object.
no setter
inherited
isLastBuffer
↔
bool
?
True if this audio buffer is the last for the text being spoken.
getter/setter pair
runtimeType
→
Type
A representation of the runtime type of the object.
no setter
inherited
toJS
→
AudioBuffer
no setter
Methods
noSuchMethod
(
Invocation
invocation
)
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString
(
)
→
String
A string representation of this object.
inherited
Operators
operator ==
(
Object
other
)
→
bool
The equality operator.
inherited
chromium package
documentation
dart/tts_engine
AudioBuffer class
tts_engine library