diff options
author | Charles Chen <clchen@google.com> | 2010-02-11 16:57:43 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-02-11 16:57:43 -0800 |
commit | 387e8051479c9a7785947deb240d9288da831a84 (patch) | |
tree | 444aa69fe104d3cf751beca24d01fe78dd171edc /core/java/android/speech | |
parent | 35bb8b004e36a1ac0a818b28c88c04a6870cf630 (diff) | |
parent | 76d9c3cb4f6f8c027959d2951e35a8b37762a1f3 (diff) | |
download | frameworks_base-387e8051479c9a7785947deb240d9288da831a84.zip frameworks_base-387e8051479c9a7785947deb240d9288da831a84.tar.gz frameworks_base-387e8051479c9a7785947deb240d9288da831a84.tar.bz2 |
Merge "Adding Intent extra strings to TextToSpeech.Engine for doing voice data checks."
Diffstat (limited to 'core/java/android/speech')
-rwxr-xr-x | core/java/android/speech/tts/TextToSpeech.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/core/java/android/speech/tts/TextToSpeech.java b/core/java/android/speech/tts/TextToSpeech.java index bbbeb3f..c3a6f6b 100755 --- a/core/java/android/speech/tts/TextToSpeech.java +++ b/core/java/android/speech/tts/TextToSpeech.java @@ -256,6 +256,28 @@ public class TextToSpeech { * the TextToSpeech engine specifies the locale associated with each resource file. */ public static final String EXTRA_VOICE_DATA_FILES_INFO = "dataFilesInfo"; + /** + * Extra information received with the {@link #ACTION_CHECK_TTS_DATA} intent where + * the TextToSpeech engine returns an ArrayList<String> of all the available voices. + * The format of each voice is: lang-COUNTRY-variant where COUNTRY and variant are + * optional (ie, "eng" or "eng-USA" or "eng-USA-FEMALE"). + */ + public static final String EXTRA_AVAILABLE_VOICES = "availableVoices"; + /** + * Extra information received with the {@link #ACTION_CHECK_TTS_DATA} intent where + * the TextToSpeech engine returns an ArrayList<String> of all the unavailable voices. + * The format of each voice is: lang-COUNTRY-variant where COUNTRY and variant are + * optional (ie, "eng" or "eng-USA" or "eng-USA-FEMALE"). + */ + public static final String EXTRA_UNAVAILABLE_VOICES = "unavailableVoices"; + /** + * Extra information sent with the {@link #ACTION_CHECK_TTS_DATA} intent where the + * caller indicates to the TextToSpeech engine which specific sets of voice data to + * check for by sending an ArrayList<String> of the voices that are of interest. + * The format of each voice is: lang-COUNTRY-variant where COUNTRY and variant are + * optional (ie, "eng" or "eng-USA" or "eng-USA-FEMALE"). + */ + public static final String EXTRA_CHECK_VOICE_DATA_FOR = "checkVoiceDataFor"; // extras for a TTS engine's data installation /** |