onUtteranceError

abstract fun onUtteranceError(utteranceId: Int, errorMessage: String)

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