Stay organized with collections
Save and categorize content based on your preferences.
TextToSpeech.OnUtteranceCompletedListener
public
static
interface
TextToSpeech.OnUtteranceCompletedListener
android.speech.tts.TextToSpeech.OnUtteranceCompletedListener
|
This interface was deprecated
in API level 18.
Use UtteranceProgressListener
instead.
Listener that will be called when the TTS service has
completed synthesizing an utterance. This is only called if the utterance
has an utterance ID (see TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID
).
Summary
Public methods
onUtteranceCompleted
public abstract void onUtteranceCompleted (String utteranceId)
Called when an utterance has been synthesized.
Parameters |
utteranceId |
String : the identifier of the utterance. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# TextToSpeech.OnUtteranceCompletedListener\n\nAdded in [API level 4](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n18](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nTextToSpeech.OnUtteranceCompletedListener\n=========================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/speech/tts/TextToSpeech.OnUtteranceCompletedListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nTextToSpeech.OnUtteranceCompletedListener\n`\n\n\n`\n\n\n`\n\n|--------------------------------------------------------------|\n| android.speech.tts.TextToSpeech.OnUtteranceCompletedListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\n**This interface was deprecated\nin API level 18.** \n\nUse [UtteranceProgressListener](/reference/android/speech/tts/UtteranceProgressListener) instead.\n\nListener that will be called when the TTS service has\ncompleted synthesizing an utterance. This is only called if the utterance\nhas an utterance ID (see [TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID](/reference/android/speech/tts/TextToSpeech.Engine#KEY_PARAM_UTTERANCE_ID)).\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onUtteranceCompleted](/reference/android/speech/tts/TextToSpeech.OnUtteranceCompletedListener#onUtteranceCompleted(java.lang.String))`(`[String](/reference/java/lang/String)` utteranceId) ` Called when an utterance has been synthesized. |\n\nPublic methods\n--------------\n\n### onUtteranceCompleted\n\nAdded in [API level 4](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onUtteranceCompleted (String utteranceId)\n```\n\nCalled when an utterance has been synthesized.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------|---------------------------------------------------|\n| `utteranceId` | `String`: the identifier of the utterance. \u003cbr /\u003e |"]]