TextToSpeech

Just an initial demo map, so that you don't start with an empty map list ...

Get Started. It's Free
or sign up with your email address
TextToSpeech by Mind Map: TextToSpeech

1. Basic Example

1.1. Uses

1.1.1. TextToSpeech(Context context, TextToSpeech.OnInitListener listener)

1.1.2. speak(String text, int queueMode, HashMap<String, String> params)

1.1.3. QUEUE_ADD

2. Collaborating Classes

2.1. TextToSpeech.Engine

2.2. Intent

2.3. Locale

3. Method Classification

3.1. Add Playback Data

3.1.1. addEarcon(String earcon, String filename)

3.1.2. addEarcon(String earcon, String packagename, int resourceId)

3.1.3. addSpeech(String text, String packagename, int resourceId)

3.1.4. addSpeech(String text, String packagename, int resourceId)

3.1.5. addSpeech(String text, String filename)

3.2. Playback Options

3.2.1. playSilence(long durationInMs, int queueMode, HashMap<String, String> params)

3.2.2. playEarcon(String earcon, int queueMode, HashMap<String, String> params)

3.2.3. speak(String text, int queueMode, HashMap<String, String> params)

3.2.4. stop()

3.2.5. shutdown()

3.3. Playback Formatting

3.3.1. setSpeechRate(float speechRate)

3.3.2. setLanguage(Locale loc)

3.3.3. setOnUtteranceCompletedListener(TextToSpeech.OnUtteranceCompletedListener listener)

3.3.4. setOnUtteranceProgressListener(UtteranceProgressListener listener)

3.3.5. setPitch(float pitch)

3.3.6. setEngineByPackageName(String enginePackageName)

3.4. Playback File Generation

3.4.1. synthesizeToFile(String text, HashMap<String, String> params, String filename)

3.5. Playback Conditions

3.5.1. isLanguageAvailable(Locale loc)

3.5.2. getLanguage()

3.5.3. areDefaultsEnforced()

4. Constants

4.1. String

4.1.1. ACTION_TTS_QUEUE_PROCESSING_COMPLETED

4.2. int

4.2.1. ERROR

4.2.2. LANG_AVAILABLE

4.2.3. LANG_COUNTRY_AVAILABLE

4.2.4. LANG_COUNTRY_VAR_AVAILABLE

4.2.5. LANG_MISSING_DATA

4.2.6. LANG_NOT_SUPPORTED

4.2.7. QUEUE_ADD

4.2.8. QUEUE_FLUSH

4.2.9. SUCCESS

5. Constuctors

5.1. TextToSpeech

5.1.1. TextToSpeech(Context context, TextToSpeech.OnInitListener listener)

5.1.2. TextToSpeech(Context context, TextToSpeech.OnInitListener listener, String engine)

6. Methods

6.1. int

6.1.1. addEarcon(String earcon, String filename)

6.1.2. addEarcon(String earcon, String packagename, int resourceId)

6.1.3. addSpeech(String text, String packagename, int resourceId)

6.1.4. addSpeech(String text, String filename)

6.1.5. isLanguageAvailable(Locale loc)

6.1.6. playEarcon(String earcon, int queueMode, HashMap<String, String> params)

6.1.7. playSilence(long durationInMs, int queueMode, HashMap<String, String> params)

6.1.8. setEngineByPackageName(String enginePackageName)

6.1.9. setLanguage(Locale loc)

6.1.10. setOnUtteranceCompletedListener(TextToSpeech.OnUtteranceCompletedListener listener)

6.1.11. setOnUtteranceProgressListener(UtteranceProgressListener listener)

6.1.12. setPitch(float pitch)

6.1.13. setSpeechRate(float speechRate)

6.1.14. speak(String text, int queueMode, HashMap<String, String> params)

6.1.15. stop()

6.1.16. synthesizeToFile(String text, HashMap<String, String> params, String filename)

6.2. boolean

6.2.1. areDefaultsEnforced()

6.2.2. isSpeaking()

6.3. String

6.3.1. getDefaultEngine()

6.4. void

6.4.1. shutdown()

6.5. List<TextToSpeech.EngineInfo>

6.5.1. getEngines()

6.6. Set<String>

6.6.1. getFeatures(Locale locale)

6.7. Locale

6.7.1. getLanguage()