From 77a5d39343760d9950ca15a87db0ae778afb4f2b Mon Sep 17 00:00:00 2001 From: Jean-Michel Trivi Date: Fri, 7 Aug 2009 17:26:36 -0700 Subject: [PATCH] Fix bug 2022435. Add new intent and matching extra to signal the completion of the language pack installer. This is used by CL 20513. --- core/java/android/speech/tts/TextToSpeech.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/core/java/android/speech/tts/TextToSpeech.java b/core/java/android/speech/tts/TextToSpeech.java index b033c6a7cdc23..04a0ec8fb5047 100755 --- a/core/java/android/speech/tts/TextToSpeech.java +++ b/core/java/android/speech/tts/TextToSpeech.java @@ -188,6 +188,12 @@ public class TextToSpeech { public static final String ACTION_INSTALL_TTS_DATA = "android.speech.tts.engine.INSTALL_TTS_DATA"; + /** + * {@hide} + */ + @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) + public static final String ACTION_TTS_DATA_INSTALLED = + "android.speech.tts.engine.TTS_DATA_INSTALLED"; /** * Broadcast Action: Starts the activity from the platform Text-To-Speech * engine to verify the proper installation and availability of the @@ -233,6 +239,16 @@ public class TextToSpeech { */ public static final String EXTRA_VOICE_DATA_FILES_INFO = "dataFilesInfo"; + // extras for a TTS engine's data installation + /** + * Extra information received with the {@link #ACTION_TTS_DATA_INSTALLED} intent + * which indicates whether the TTS data installation requested with + * {@link #ACTION_INSTALL_TTS_DATA} completed successfully or not. The value is + * {@link TextToSpeech#SUCCESS} or {@link TextToSpeech#ERROR}. + * {@hide} + */ + public static final String EXTRA_TTS_DATA_INSTALLED = "dataInstalled"; + // keys for the parameters passed with speak commands. Hidden keys are used internally // to maintain engine state for each TextToSpeech instance. /**