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

/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;
46 blockingInitAndVerify(MOCK_ENGINE, TextToSpeech.SUCCESS);
60 blockingInitAndVerify("__DOES_NOT_EXIST__", TextToSpeech.ERROR);
85 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(delegate).onLoadLanguage(
105 LittleMock.doReturn(TextToSpeech.LANG_NOT_SUPPORTED).when(
156 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(
159 assertEquals(TextToSpeech.LANG_COUNTRY_AVAILABLE, mTts.isLanguageAvailable(Locale.US));
170 mTts.speak(speech, TextToSpeech.QUEUE_ADD, null);
177 TextToSpeech
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DPlaybackSynthesisCallback.java39 * {@link TextToSpeech.Engine#DEFAULT_VOLUME} (1.0f).
45 * The default value is {@link TextToSpeech.Engine#DEFAULT_PAN} (0.0f).
146 return TextToSpeech.ERROR;
152 return TextToSpeech.ERROR;
161 return TextToSpeech.SUCCESS;
179 return TextToSpeech.ERROR;
193 return TextToSpeech.ERROR;
198 return TextToSpeech.SUCCESS;
209 return TextToSpeech.ERROR;
215 return TextToSpeech
[all...]
H A DFileSynthesisCallback.java133 return TextToSpeech.ERROR;
141 return TextToSpeech.ERROR;
151 return TextToSpeech.SUCCESS;
155 return TextToSpeech.ERROR;
169 return TextToSpeech.ERROR;
173 return TextToSpeech.ERROR;
177 return TextToSpeech.SUCCESS;
181 return TextToSpeech.ERROR;
194 return TextToSpeech.ERROR;
198 return TextToSpeech
[all...]
H A DUtteranceProgressListener.java8 * {@link TextToSpeech#speak} or {@link TextToSpeech#synthesizeToFile} with an
9 * associated utterance identifier, as per {@link TextToSpeech.Engine#KEY_PARAM_UTTERANCE_ID}.
16 * be soon before audio is played back in the case of a {@link TextToSpeech#speak}
18 * of {@link TextToSpeech#synthesizeToFile}.
53 final TextToSpeech.OnUtteranceCompletedListener listener) {
H A DTextToSpeechService.java32 import android.speech.tts.TextToSpeech.Engine;
136 * One of {@link TextToSpeech#LANG_AVAILABLE},
137 * {@link TextToSpeech#LANG_COUNTRY_AVAILABLE},
138 * {@link TextToSpeech#LANG_COUNTRY_VAR_AVAILABLE},
139 * {@link TextToSpeech#LANG_MISSING_DATA}
140 * {@link TextToSpeech#LANG_NOT_SUPPORTED}.
171 * One of {@link TextToSpeech#LANG_AVAILABLE},
172 * {@link TextToSpeech#LANG_COUNTRY_AVAILABLE},
173 * {@link TextToSpeech#LANG_COUNTRY_VAR_AVAILABLE},
174 * {@link TextToSpeech#LANG_MISSING_DAT
[all...]
H A DTextToSpeech.java45 * <p>A TextToSpeech instance can only be used to synthesize text once it has completed its
46 * initialization. Implement the {@link TextToSpeech.OnInitListener} to be
48 * When you are done using the TextToSpeech instance, call the {@link #shutdown()} method
49 * to release the native resources used by the TextToSpeech engine.
52 public class TextToSpeech { class
54 private static final String TAG = "TextToSpeech";
113 * Broadcast Action: The TextToSpeech synthesizer has completed processing
127 * TextToSpeech engine initialization.
131 * Called to signal the completion of the TextToSpeech engine initialization.
133 * @param status {@link TextToSpeech#SUCCES
511 public TextToSpeech(Context context, OnInitListener listener) { method in class:TextToSpeech
526 public TextToSpeech(Context context, OnInitListener listener, String engine) { method in class:TextToSpeech
536 public TextToSpeech(Context context, OnInitListener listener, String engine, method in class:TextToSpeech
[all...]
H A DTtsEngines.java34 import android.speech.tts.TextToSpeech.Engine;
35 import android.speech.tts.TextToSpeech.EngineInfo;
193 parser = si.loadXmlMetaData(pm, TextToSpeech.Engine.SERVICE_META_DATA);
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DEnableAccessibilityController.java34 import android.speech.tts.TextToSpeech;
62 mTts.speak(text, TextToSpeech.QUEUE_FLUSH, null);
66 mTts.speak(text, TextToSpeech.QUEUE_FLUSH, null);
72 TextToSpeech.QUEUE_FLUSH, null);
87 private final TextToSpeech mTts;
103 mTts = new TextToSpeech(context, new TextToSpeech.OnInitListener() {
/frameworks/base/core/java/android/webkit/
H A DAccessibilityInjector.java24 import android.speech.tts.TextToSpeech;
25 import android.speech.tts.TextToSpeech.Engine;
26 import android.speech.tts.TextToSpeech.OnInitListener;
642 * Used to protect the TextToSpeech class, only exposing the methods we want to expose.
648 private final TextToSpeech mTextToSpeech;
676 mTextToSpeech = new TextToSpeech(
701 return TextToSpeech.ERROR;
720 return TextToSpeech.ERROR;
754 if (!mShutdown && (status == TextToSpeech.SUCCESS)) {
/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,
495 class TtsInitListener implements TextToSpeech.OnInitListener {
498 // status can be either TextToSpeech.SUCCESS or TextToSpeech.ERROR.
500 if (status != TextToSpeech
[all...]
/frameworks/base/core/java/android/provider/
H A DSettings.java49 import android.speech.tts.TextToSpeech;
3480 * instead can query the TextToSpeech framework classes for the default
3481 * locale. {@link TextToSpeech#getLanguage()}.
3491 * instead can query the TextToSpeech framework classes for the default
3492 * locale. {@link TextToSpeech#getLanguage()}.
3502 * instead can query the TextToSpeech framework classes for the
3503 * locale that is in use {@link TextToSpeech#getLanguage()}.
3515 * setting directly, and can query the TextToSpeech framework classes

Completed in 6073 milliseconds