ChromeTts class

Properties

hashCode int
The hash code for this object.
no setterinherited
isAvailable bool
no setter
onEvent EventStream<TtsEvent>
Used to pass events back to the function calling speak().
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getVoices() Future<List<TtsVoice>>
Gets an array of all available voices.
isSpeaking() Future<bool>
Checks whether the engine is currently speaking. On Mac OS X, the result is true whenever the system speech engine is speaking, even if the speech wasn't initiated by Chrome.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
Pauses speech synthesis, potentially in the middle of an utterance. A call to resume or stop will un-pause speech.
resume() → void
If speech was paused, resumes speaking where it left off.
speak(String utterance, TtsOptions? options) Future<void>
Speaks text using a text-to-speech engine. utterance The text to speak, either plain text or a complete, well-formed SSML document. Speech engines that do not support SSML will strip away the tags and speak the text. The maximum length of the text is 32,768 characters. options The speech options. returns Called right away, before speech finishes. Check runtime.lastError to make sure there were no errors. Use options.onEvent to get more detailed feedback.
stop() → void
Stops any current speech and flushes the queue of any pending utterances. In addition, if speech was paused, it will now be un-paused for the next call to speak.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited