onError

fun onError(callback: (String) -> Unit): BetterFrenchTts

Registers a callback invoked on the main thread when an utterance fails.

Return

This instance for chaining.

Parameters

callback

Receives the utterance ID.