Java android.speech.tts TextToSpeech fields, constructors, methods, implement or subclass

Example usage for Java android.speech.tts TextToSpeech fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.speech.tts TextToSpeech.

The text is from its open source code.

Field

intSUCCESS
Denotes a successful operation.
intERROR
Denotes a generic operation failure.
intQUEUE_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.
intQUEUE_ADD
Queue mode where the new entry is added at the end of the playback queue.
intLANG_COUNTRY_VAR_AVAILABLE
Denotes the language is available exactly as specified by the locale.
intLANG_COUNTRY_AVAILABLE
Denotes the language is available for the language and country specified by the locale, but not the variant.
intLANG_AVAILABLE
Denotes the language is available for the language by the locale, but not the country and variant.
intLANG_MISSING_DATA
Denotes the language data is missing.
intLANG_NOT_SUPPORTED
Denotes the language is not supported.

Constructor

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.

Method

SetgetFeatures(final Locale locale)
Queries the engine for the set of features it supports for a given locale.
intgetMaxSpeechInputLength()
Limit of length of input string passed to speak and synthesizeToFile.
intisLanguageAvailable(final Locale loc)
Checks if the specified language as represented by the Locale is available and supported.
intsynthesizeToFile(final CharSequence text, final Bundle params, final File file, final String utteranceId)
Synthesizes the given text to a file using the specified parameters.
intsynthesizeToFile(final String text, final HashMap params, final String filename)
Synthesizes the given text to a file using the specified parameters.