Lines Matching defs:TextToSpeech

57  * <p>A TextToSpeech instance can only be used to synthesize text once it has completed its
58 * initialization. Implement the {@link TextToSpeech.OnInitListener} to be
60 * When you are done using the TextToSpeech instance, call the {@link #shutdown()} method
61 * to release the native resources used by the TextToSpeech engine.
63 public class TextToSpeech {
65 private static final String TAG = "TextToSpeech";
172 * Broadcast Action: The TextToSpeech synthesizer has completed processing
186 * TextToSpeech engine initialization.
190 * Called to signal the completion of the TextToSpeech engine initialization.
192 * @param status {@link TextToSpeech#SUCCESS} or {@link TextToSpeech#ERROR}.
200 * has an utterance ID (see {@link TextToSpeech.Engine#KEY_PARAM_UTTERANCE_ID}).
229 * {@link TextToSpeech#speak} and {@link TextToSpeech#synthesizeToFile} to modify
231 * through {@link TextToSpeech#getFeatures(java.util.Locale)}.
287 * TextToSpeech engine with the {@link #ACTION_CHECK_TTS_DATA} intent.
293 * TextToSpeech engine with the {@link #ACTION_CHECK_TTS_DATA} intent.
299 * the TextToSpeech engine with the {@link #ACTION_CHECK_TTS_DATA} intent.
308 * by the TextToSpeech engine with the {@link #ACTION_CHECK_TTS_DATA} intent.
317 * used by the TextToSpeech engine with the {@link #ACTION_CHECK_TTS_DATA} intent.
344 * Activity Action: Triggers the platform TextToSpeech engine to
365 * Activity Action: Starts the activity from the platform TextToSpeech
407 * the TextToSpeech engine returns an String with sample text for requested voice
415 * the TextToSpeech engine returns an ArrayList<String> of all the available voices.
423 * the TextToSpeech engine returns an ArrayList<String> of all the unavailable voices.
431 * the TextToSpeech engine specifies the path to its resources.
443 * the TextToSpeech engine specifies the file names of its resources under the
454 * the TextToSpeech engine specifies the locale associated with each resource file.
464 * caller indicates to the TextToSpeech engine which specific sets of voice data to
481 * {@link TextToSpeech#SUCCESS} and {@link TextToSpeech#ERROR}.
490 // to maintain engine state for each TextToSpeech instance.
531 * @see TextToSpeech#speak(String, int, HashMap)
532 * @see TextToSpeech#playEarcon(String, int, HashMap)
539 * using {@link TextToSpeech#setAudioAttributes(AudioAttributes)}.
541 * @see TextToSpeech#speak(String, int, HashMap)
542 * @see TextToSpeech#playEarcon(String, int, HashMap)
549 * {@link TextToSpeech.OnUtteranceCompletedListener} after text has been
552 * @see TextToSpeech#speak(String, int, HashMap)
553 * @see TextToSpeech#playEarcon(String, int, HashMap)
554 * @see TextToSpeech#synthesizeToFile(String, HashMap, String)
563 * @see TextToSpeech#speak(String, int, HashMap)
564 * @see TextToSpeech#playEarcon(String, int, HashMap)
573 * @see TextToSpeech#speak(String, int, HashMap)
574 * @see TextToSpeech#playEarcon(String, int, HashMap)
579 * Feature key for network synthesis. See {@link TextToSpeech#getFeatures(Locale)}
581 * as per {@link TextToSpeech#getFeatures(Locale)}, the engine must
584 * @see TextToSpeech#speak(String, int, java.util.HashMap)
585 * @see TextToSpeech#synthesizeToFile(String, java.util.HashMap, String)
586 * @see TextToSpeech#getFeatures(java.util.Locale)
589 * {@link TextToSpeech#getVoices()}, find a suitable network voice
591 * to {@link TextToSpeech#setVoice(Voice)}.
597 * Feature key for embedded synthesis. See {@link TextToSpeech#getFeatures(Locale)}
599 * as per {@link TextToSpeech#getFeatures(Locale)}, the engine must synthesize
602 * @see TextToSpeech#speak(String, int, java.util.HashMap)
603 * @see TextToSpeech#synthesizeToFile(String, java.util.HashMap, String)
604 * @see TextToSpeech#getFeatures(java.util.Locale)
607 * ({@link TextToSpeech#getVoices()}, find a suitable embedded voice
609 * to {@link TextToSpeech#setVoice(Voice)}).
620 * @see TextToSpeech#speak(String, int, HashMap)
621 * @see TextToSpeech#playEarcon(String, int, HashMap)
628 * {@link TextToSpeech#setVoice(Voice)} or {@link TextToSpeech#setLanguage(Locale)}.
630 * {@link TextToSpeech#ERROR_NOT_INSTALLED_YET} error, or use a different voice to synthesize
633 * @see TextToSpeech#getFeatures(java.util.Locale)
640 * supported as per {@link TextToSpeech#getFeatures(Locale)} or {@link Voice#getFeatures()},
645 * @see TextToSpeech#getFeatures(java.util.Locale)
652 * If set and supported as per {@link TextToSpeech#getFeatures(Locale)} or
657 * @see TextToSpeech#getFeatures(java.util.Locale)
685 * The constructor for the TextToSpeech class, using the default TTS engine.
686 * This will also initialize the associated TextToSpeech engine if it isn't already running.
691 * The {@link TextToSpeech.OnInitListener} that will be called when the
692 * TextToSpeech engine has initialized. In a case of a failure the listener
693 * may be called immediately, before TextToSpeech instance is fully constructed.
695 public TextToSpeech(Context context, OnInitListener listener) {
700 * The constructor for the TextToSpeech class, using the given TTS engine.
701 * This will also initialize the associated TextToSpeech engine if it isn't already running.
706 * The {@link TextToSpeech.OnInitListener} that will be called when the
707 * TextToSpeech engine has initialized. In a case of a failure the listener
708 * may be called immediately, before TextToSpeech instance is fully constructed.
711 public TextToSpeech(Context context, OnInitListener listener, String engine) {
716 * Used by the framework to instantiate TextToSpeech objects with a supplied
721 public TextToSpeech(Context context, OnInitListener listener, String engine,
835 * Releases the resources used by the TextToSpeech engine.
837 * so the TextToSpeech engine can be cleanly stopped.
1278 * {@link TextToSpeech.Engine#KEY_FEATURE_NETWORK_SYNTHESIS} or engine specific.
1281 * {@link TextToSpeech#speak(String, int, java.util.HashMap)} and
1282 * {@link TextToSpeech#synthesizeToFile(String, java.util.HashMap, String)}.
1375 * Sets the speech pitch for the TextToSpeech engine.
1418 * @return the engine currently in use by this TextToSpeech instance.
1505 if (service.loadVoice(getCallerIdentity(), voiceName) == TextToSpeech.ERROR) {
1548 * requests sent to the TextToSpeech engine.
1552 * client by a {@link TextToSpeech#setLanguage} call to the same engine.
1556 * by a {@link TextToSpeech#setLanguage} call on this instance.
1672 * requests sent to the TextToSpeech engine.
2033 return TextToSpeech.SUCCESS;
2041 * {@link TextToSpeech.Engine#KEY_PARAM_UTTERANCE_ID}.
2048 return TextToSpeech.SUCCESS;
2055 * initialized. {@link #TextToSpeech(Context, OnInitListener, String)}
2321 * @see TextToSpeech#getEngines