Example usage for Java android.speech.tts TextToSpeech fields, constructors, methods, implement or subclass
The text is from its open source code.
int | SUCCESS Denotes a successful operation. |
int | ERROR Denotes a generic operation failure. |
int | QUEUE_FLUSH Queue mode where all entries in the playback queue (media to be played and text to be synthesized) are dropped and replaced by the new entry. |
int | QUEUE_ADD Queue mode where the new entry is added at the end of the playback queue. |
int | LANG_COUNTRY_VAR_AVAILABLE Denotes the language is available exactly as specified by the locale. |
int | LANG_COUNTRY_AVAILABLE Denotes the language is available for the language and country specified by the locale, but not the variant. |
int | LANG_AVAILABLE Denotes the language is available for the language by the locale, but not the country and variant. |
int | LANG_MISSING_DATA Denotes the language data is missing. |
int | LANG_NOT_SUPPORTED Denotes the language is not supported. |
TextToSpeech(Context context, OnInitListener listener) The constructor for the TextToSpeech class, using the default TTS engine. | |
TextToSpeech(Context context, OnInitListener listener, String engine) The constructor for the TextToSpeech class, using the given TTS engine. |
Set | getFeatures(final Locale locale) Queries the engine for the set of features it supports for a given locale. |
int | getMaxSpeechInputLength() Limit of length of input string passed to speak and synthesizeToFile. |
int | isLanguageAvailable(final Locale loc) Checks if the specified language as represented by the Locale is available and supported. |
int | synthesizeToFile(final CharSequence text, final Bundle params, final File file, final String utteranceId) Synthesizes the given text to a file using the specified parameters. |
int | synthesizeToFile(final String text, final HashMap Synthesizes the given text to a file using the specified parameters. |