TtsSynthesizerCallbacks

Used by ITtsSynthesizer implementations to report its playback state.

Functions

Link copied to clipboard
abstract fun onUtteranceBoundary(utteranceId: Int, startOffset: Int, length: Int?)

Call this whenever the speech synthesizer reaches a word boundary.

Link copied to clipboard
abstract fun onUtteranceEnd(utteranceId: Int)

Call this method when a utterance reaches its end.

Link copied to clipboard
abstract fun onUtteranceError(utteranceId: Int, errorMessage: String)

Call this method when an error occurs that prevents the utterance from being spoken.

Link copied to clipboard
abstract fun onUtterancePaused(utteranceId: Int)

Call this method when utterance playback got interrupted.