Searched refs:TextToSpeech (Results 1 - 19 of 19) sorted by relevance

/frameworks/base/core/java/android/speech/tts/
H A DAbstractSynthesisCallback.java57 return mClientIsUsingV2 ? TextToSpeech.STOPPED : TextToSpeech.ERROR;
H A DFileSynthesisCallback.java62 mStatusCode = TextToSpeech.SUCCESS;
71 if (mStatusCode == TextToSpeech.STOPPED) {
75 mStatusCode = TextToSpeech.STOPPED;
118 if (mStatusCode == TextToSpeech.STOPPED) {
122 if (mStatusCode != TextToSpeech.SUCCESS) {
124 return TextToSpeech.ERROR;
128 return TextToSpeech.ERROR;
141 return TextToSpeech.SUCCESS;
146 mStatusCode = TextToSpeech.ERROR_OUTPUT;
148 return TextToSpeech
[all...]
H A DPlaybackSynthesisCallback.java65 mStatusCode = TextToSpeech.SUCCESS;
77 if (mStatusCode == TextToSpeech.STOPPED) {
83 mStatusCode = TextToSpeech.STOPPED;
91 item.stop(TextToSpeech.STOPPED);
98 mLogger.onCompleted(TextToSpeech.STOPPED);
142 mStatusCode = TextToSpeech.ERROR_OUTPUT;
143 return TextToSpeech.ERROR;
145 if (mStatusCode == TextToSpeech.STOPPED) {
149 if (mStatusCode != TextToSpeech.SUCCESS) {
151 return TextToSpeech
[all...]
H A DTextToSpeechService.java36 import android.speech.tts.TextToSpeech.Engine;
94 * based methods. Since API level 21 {@link TextToSpeech#setLanguage} is implemented by
95 * calling {@link TextToSpeech#setVoice} with the voice returned by
172 * One of {@link TextToSpeech#LANG_AVAILABLE},
173 * {@link TextToSpeech#LANG_COUNTRY_AVAILABLE},
174 * {@link TextToSpeech#LANG_COUNTRY_VAR_AVAILABLE},
175 * {@link TextToSpeech#LANG_MISSING_DATA}
176 * {@link TextToSpeech#LANG_NOT_SUPPORTED}.
212 * One of {@link TextToSpeech#LANG_AVAILABLE},
213 * {@link TextToSpeech#LANG_COUNTRY_AVAILABL
[all...]
H A DSynthesisCallback.java21 import android.speech.tts.TextToSpeech;
71 * @return {@link TextToSpeech#SUCCESS}, {@link TextToSpeech#ERROR} or
72 * {@link TextToSpeech#STOPPED}.
88 * @return {@link TextToSpeech#SUCCESS}, {@link TextToSpeech#ERROR} or
89 * {@link TextToSpeech#STOPPED}.
102 * @return {@link TextToSpeech#SUCCESS}, {@link TextToSpeech#ERROR} or
103 * {@link TextToSpeech#STOPPE
[all...]
H A DSynthesisPlaybackQueueItem.java75 mStatusCode = TextToSpeech.SUCCESS;
88 dispatcher.dispatchOnError(TextToSpeech.ERROR_OUTPUT);
112 if (mStatusCode == TextToSpeech.SUCCESS) {
114 } else if(mStatusCode == TextToSpeech.STOPPED) {
H A DUtteranceProgressListener.java10 * {@link TextToSpeech#speak} or {@link TextToSpeech#synthesizeToFile} with an
11 * associated utterance identifier, as per {@link TextToSpeech.Engine#KEY_PARAM_UTTERANCE_ID}.
18 * be soon before audio is played back in the case of a {@link TextToSpeech#speak}
20 * of {@link TextToSpeech#synthesizeToFile}.
58 * @param errorCode one of the ERROR_* codes from {@link TextToSpeech}
66 * synthesis queue. This can happen if a client calls {@link TextToSpeech#stop()}
67 * or uses {@link TextToSpeech#QUEUE_FLUSH} as an argument with the
68 * {@link TextToSpeech#speak} or {@link TextToSpeech#synthesizeToFil
[all...]
H A DAbstractEventLogger.java107 if (statusCode != TextToSpeech.SUCCESS
H A DEventLoggerV1.java38 if (statusCode != TextToSpeech.STOPPED) {
H A DAudioPlaybackHandler.java46 item.stop(TextToSpeech.STOPPED);
H A DAudioPlaybackQueueItem.java62 dispatcher.dispatchOnError(TextToSpeech.ERROR_OUTPUT);
H A DTtsEngines.java34 import android.speech.tts.TextToSpeech.Engine;
35 import android.speech.tts.TextToSpeech.EngineInfo;
232 parser = si.loadXmlMetaData(pm, TextToSpeech.Engine.SERVICE_META_DATA);
430 * Locale input (returned by {@link TextToSpeech#getLanguage}
431 * and {@link TextToSpeech#getDefaultLanguage}). A TTS Locale language field contains
H A DTextToSpeech.java57 * <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 { class
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#SUCCES
695 public TextToSpeech(Context context, OnInitListener listener) { method in class:TextToSpeech
711 public TextToSpeech(Context context, OnInitListener listener, String engine) { method in class:TextToSpeech
721 public TextToSpeech(Context context, OnInitListener listener, String engine, method in class:TextToSpeech
[all...]
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
H A DMockableCheckVoiceData.java22 import android.speech.tts.TextToSpeech;
41 setResult(TextToSpeech.Engine.CHECK_VOICE_DATA_FAIL, returnVal);
46 returnVal.putStringArrayListExtra(TextToSpeech.Engine.EXTRA_AVAILABLE_VOICES,
50 returnVal.putStringArrayListExtra(TextToSpeech.Engine.EXTRA_UNAVAILABLE_VOICES,
54 setResult(TextToSpeech.Engine.CHECK_VOICE_DATA_PASS, returnVal);
H A DTextToSpeechTests.java21 import android.speech.tts.TextToSpeech;
39 private TextToSpeech mTts;
47 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(passThrough)
50 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(passThrough)
54 blockingInitAndVerify(MOCK_ENGINE, TextToSpeech.SUCCESS);
67 blockingInitAndVerify("__DOES_NOT_EXIST__", TextToSpeech.ERROR);
77 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE).when(delegate).onIsLanguageAvailable(
79 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE).when(delegate).onLoadLanguage(
84 assertEquals(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE, mTts.setLanguage(new Locale("eng", "USA", "variant")));
99 LittleMock.doReturn(TextToSpeech
[all...]
/frameworks/base/services/core/java/com/android/server/policy/
H A DEnableAccessibilityController.java36 import android.speech.tts.TextToSpeech;
70 mTts.speak(text, TextToSpeech.QUEUE_FLUSH, null);
74 mTts.speak(text, TextToSpeech.QUEUE_FLUSH, null);
80 TextToSpeech.QUEUE_FLUSH, null);
93 private final TextToSpeech mTts;
110 mTts = new TextToSpeech(context, new TextToSpeech.OnInitListener() {
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/
H A DScoAudioTest.java35 import android.speech.tts.TextToSpeech;
36 import android.speech.tts.TextToSpeech.OnUtteranceCompletedListener;
69 private TextToSpeech mTts;
131 mTts = new TextToSpeech(this, new TtsInitListener());
133 mTtsParams.put(TextToSpeech.Engine.KEY_PARAM_STREAM,
135 mTtsParams.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID,
509 class TtsInitListener implements TextToSpeech.OnInitListener {
512 // status can be either TextToSpeech.SUCCESS or TextToSpeech.ERROR.
514 if (status != TextToSpeech
[all...]
/frameworks/base/
H A Dcompiled-classes-phone3712 android.speech.tts.TextToSpeech
3713 android.speech.tts.TextToSpeech$10
3714 android.speech.tts.TextToSpeech$16
3715 android.speech.tts.TextToSpeech$7
3716 android.speech.tts.TextToSpeech$Action
3717 android.speech.tts.TextToSpeech$Connection
3718 android.speech.tts.TextToSpeech$Connection$1
3719 android.speech.tts.TextToSpeech$Connection$SetupConnectionAsyncTask
3720 android.speech.tts.TextToSpeech$EngineInfo
3721 android.speech.tts.TextToSpeech
[all...]
/frameworks/base/core/java/android/provider/
H A DSettings.java56 import android.speech.tts.TextToSpeech;
5419 * instead can query the TextToSpeech framework classes for the default
5420 * locale. {@link TextToSpeech#getLanguage()}.
5430 * instead can query the TextToSpeech framework classes for the default
5431 * locale. {@link TextToSpeech#getLanguage()}.
5441 * instead can query the TextToSpeech framework classes for the
5442 * locale that is in use {@link TextToSpeech#getLanguage()}.
5454 * setting directly, and can query the TextToSpeech framework classes

Completed in 458 milliseconds