OnSpeakWithAudioStreamEvent class

Constructors

OnSpeakWithAudioStreamEvent({required String utterance, required SpeakOptions options, required AudioStreamOptions audioStreamOptions, required JSFunction sendTtsAudio, required JSFunction sendError})

Properties

audioStreamOptions AudioStreamOptions
Contains the audio stream format expected to be produced by this engine.
final
hashCode int
The hash code for this object.
no setterinherited
options SpeakOptions
Options specified to the tts.speak() method.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendError JSFunction
Call this function to indicate an error with rendering this utterance.
final
sendTtsAudio JSFunction
Call this function with audio that occur in the process of speaking the utterance.
final
utterance String
The text to speak, specified as either plain text or an SSML document. If your engine does not support SSML, you should strip out all XML markup and synthesize only the underlying text content. The value of this parameter is guaranteed to be no more than 32,768 characters. If this engine does not support speaking that many characters at a time, the utterance should be split into smaller chunks and queued internally without returning an error.
final

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