onTextSpoken()
Tells the callback function when a TTSEvent is triggered.
void onTextSpoken(SynthesisEvent event)
Parameters
event
This indicates the current status of the text-to-speech process.
See also
Text to speech (TTS)
int speakText (String text, Locale locale)
Converts provided text into spoken audio output.
Enumerations
enum SynthesisEvent
This indicates the status updates for the text-to-speech process.