Since: API Level 4
public static interface

TextToSpeech.OnUtteranceCompletedListener

android.speech.tts.TextToSpeech.OnUtteranceCompletedListener

Class Overview

Interface definition of a callback to be invoked indicating the TextToSpeech engine has completed synthesizing an utterance with an utterance ID set.

Summary

Public Methods
abstract void onUtteranceCompleted(String utteranceId)
Called to signal the completion of the synthesis of the utterance that was identified with the string parameter.

Public Methods

public abstract void onUtteranceCompleted (String utteranceId)

Since: API Level 4

Called to signal the completion of the synthesis of the utterance that was identified with the string parameter. This identifier is the one originally passed in the parameter hashmap of the synthesis request in speak(String, int, HashMap) or synthesizeToFile(String, HashMap, String) with the KEY_PARAM_UTTERANCE_ID key.

Parameters
utteranceId the identifier of the utterance.