onUtteranceBoundary

abstract fun onUtteranceBoundary(utteranceId: Int, startOffset: Int, length: Int?)

Call this whenever the speech synthesizer reaches a word boundary.

Parameters

utteranceId
  • The id of the utterance.

startOffset
  • The offset into the utterance text pointing at the start of the next word to be spoken.

length
  • The number of characters from the startOffset. Null if the length is not known.