Text-to-Speech events
Learn about text-to-speech event callbacks.
Read time 1 minuteLast updated 2 days ago
The SDK can sometimes raise the following
ITextToSpeech-
- Raised when a TTS message has finished preparing for playback and is starting to play.
EventPlaybackStarted- - The
Messagethat corresponds to this speech.ITTSMessage - - The duration of the synthesized voice clip in seconds.
MessageDuration - - The number of active sessions (for remote playback destinations) or local players (for local playback destinations), or both, that the TTS message was injected into.
NumConsumers
-
- Raised when a TTS message has finished playback.
EventPlaybackCompleted- - The
Messagethat corresponds to this speech.ITTSMessage - - The number of active sessions (for remote playback destinations) or local players (for local playback destinations), or both, that the TTS message was injected into.
NumConsumers
-
- Raised when playback of a TTS message has failed.
EventPlaybackFailed- - The
Messagethat corresponds to this speech.ITTSMessage - - The error code of the failure.
Status