-
public interface TtsEngine.Listener<E extends TtsEngine.Error>TTS engine callbacks.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonStart(TtsEngine.RequestId requestId)Called when the utterance with the given id starts as perceived by the caller. abstract UnitonRange(TtsEngine.RequestId requestId, IntRange range)Called when the TtsEngine is about to speak the specified range of the utterance with the given id. abstract UnitonInterrupted(TtsEngine.RequestId requestId)Called if the utterance with the given id has been stopped while in progress by a call to stop. abstract UnitonFlushed(TtsEngine.RequestId requestId)Called when the utterance with the given id has been flushed from the synthesis queue by a call to stop. abstract UnitonDone(TtsEngine.RequestId requestId)Called when the utterance with the given id has successfully completed processing. abstract UnitonError(TtsEngine.RequestId requestId, E error)Called when an error has occurred during processing of the utterance with the given id. -
-
Method Detail
-
onStart
abstract Unit onStart(TtsEngine.RequestId requestId)
Called when the utterance with the given id starts as perceived by the caller.
-
onRange
abstract Unit onRange(TtsEngine.RequestId requestId, IntRange range)
-
onInterrupted
abstract Unit onInterrupted(TtsEngine.RequestId requestId)
Called if the utterance with the given id has been stopped while in progress by a call to stop.
-
onFlushed
abstract Unit onFlushed(TtsEngine.RequestId requestId)
Called when the utterance with the given id has been flushed from the synthesis queue by a call to stop.
-
onDone
abstract Unit onDone(TtsEngine.RequestId requestId)
Called when the utterance with the given id has successfully completed processing.
-
onError
abstract Unit onError(TtsEngine.RequestId requestId, E error)
Called when an error has occurred during processing of the utterance with the given id.
-
-
-
-