Home
last modified time | relevance | path

Searched refs:TextToSpeech (Results 1 – 25 of 25) sorted by relevance

/frameworks/base/core/java/android/speech/tts/
DPlaybackSynthesisCallback.java62 mStatusCode = TextToSpeech.SUCCESS; in PlaybackSynthesisCallback()
74 if (mStatusCode == TextToSpeech.STOPPED) { in stop()
80 mStatusCode = TextToSpeech.STOPPED; in stop()
88 item.stop(TextToSpeech.STOPPED); in stop()
95 mLogger.onCompleted(TextToSpeech.STOPPED); in stop()
131 mStatusCode = TextToSpeech.ERROR_OUTPUT; in start()
132 return TextToSpeech.ERROR; in start()
134 if (mStatusCode == TextToSpeech.STOPPED) { in start()
138 if (mStatusCode != TextToSpeech.SUCCESS) { in start()
140 return TextToSpeech.ERROR; in start()
[all …]
DFileSynthesisCallback.java63 mStatusCode = TextToSpeech.SUCCESS; in FileSynthesisCallback()
72 if (mStatusCode == TextToSpeech.STOPPED) { in stop()
76 mStatusCode = TextToSpeech.STOPPED; in stop()
112 if (mStatusCode == TextToSpeech.STOPPED) { in start()
116 if (mStatusCode != TextToSpeech.SUCCESS) { in start()
118 return TextToSpeech.ERROR; in start()
122 return TextToSpeech.ERROR; in start()
137 return TextToSpeech.SUCCESS; in start()
142 mStatusCode = TextToSpeech.ERROR_OUTPUT; in start()
144 return TextToSpeech.ERROR; in start()
[all …]
DTextToSpeechService.java35 import android.speech.tts.TextToSpeech.Engine;
255 int expectedStatus = TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE; in getExpectedLanguageAvailableStatus()
258 expectedStatus = TextToSpeech.LANG_AVAILABLE; in getExpectedLanguageAvailableStatus()
260 expectedStatus = TextToSpeech.LANG_COUNTRY_AVAILABLE; in getExpectedLanguageAvailableStatus()
325 case TextToSpeech.LANG_AVAILABLE: in onGetDefaultVoiceNameFor()
328 case TextToSpeech.LANG_COUNTRY_AVAILABLE: in onGetDefaultVoiceNameFor()
331 case TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE: in onGetDefaultVoiceNameFor()
339 if (onIsValidVoiceName(voiceName) == TextToSpeech.SUCCESS) { in onGetDefaultVoiceNameFor()
364 return TextToSpeech.ERROR; in onLoadVoice()
371 return TextToSpeech.ERROR; in onLoadVoice()
[all …]
DSynthesisPlaybackQueueItem.java75 mStatusCode = TextToSpeech.SUCCESS; in SynthesisPlaybackQueueItem()
88 dispatcher.dispatchOnError(TextToSpeech.ERROR_OUTPUT); in run()
112 if (mStatusCode == TextToSpeech.SUCCESS) { in run()
114 } else if(mStatusCode == TextToSpeech.STOPPED) { in run()
DAbstractSynthesisCallback.java57 return mClientIsUsingV2 ? TextToSpeech.STOPPED : TextToSpeech.ERROR; in errorCodeOnStop()
DUtteranceProgressListener.java83 final TextToSpeech.OnUtteranceCompletedListener listener) { in from()
DAbstractEventLogger.java107 if (statusCode != TextToSpeech.SUCCESS in onCompleted()
DEventLoggerV1.java38 if (statusCode != TextToSpeech.STOPPED) { in logFailure()
DAudioPlaybackHandler.java46 item.stop(TextToSpeech.STOPPED); in stop()
DTextToSpeech.java59 public class TextToSpeech { class
685 public TextToSpeech(Context context, OnInitListener listener) { in TextToSpeech() method in TextToSpeech
701 public TextToSpeech(Context context, OnInitListener listener, String engine) { in TextToSpeech() method in TextToSpeech
711 public TextToSpeech(Context context, OnInitListener listener, String engine, in TextToSpeech() method in TextToSpeech
1495 if (service.loadVoice(getCallerIdentity(), voiceName) == TextToSpeech.ERROR) {
2023 return TextToSpeech.SUCCESS;
2038 return TextToSpeech.SUCCESS;
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); in settingsActivityFromServiceInfo()
DAudioPlaybackQueueItem.java62 dispatcher.dispatchOnError(TextToSpeech.ERROR_OUTPUT); in run()
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
DTextToSpeechTests.java21 import android.speech.tts.TextToSpeech;
39 private TextToSpeech mTts;
47 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(passThrough) in setUp()
50 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(passThrough) in setUp()
54 blockingInitAndVerify(MOCK_ENGINE, TextToSpeech.SUCCESS); in setUp()
67 blockingInitAndVerify("__DOES_NOT_EXIST__", TextToSpeech.ERROR); in testEngineInitialized()
77 … LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE).when(delegate).onIsLanguageAvailable( in testSetLanguage_delegation()
79 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE).when(delegate).onLoadLanguage( in testSetLanguage_delegation()
84 …assertEquals(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE, mTts.setLanguage(new Locale("eng", "USA", "v… in testSetLanguage_delegation()
99 … LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(delegate).onIsLanguageAvailable( in testSetLanguage_availableLanguage()
[all …]
DMockableCheckVoiceData.java22 import android.speech.tts.TextToSpeech;
41 setResult(TextToSpeech.Engine.CHECK_VOICE_DATA_FAIL, returnVal); in onCreate()
46 returnVal.putStringArrayListExtra(TextToSpeech.Engine.EXTRA_AVAILABLE_VOICES, in onCreate()
50 returnVal.putStringArrayListExtra(TextToSpeech.Engine.EXTRA_UNAVAILABLE_VOICES, in onCreate()
54 setResult(TextToSpeech.Engine.CHECK_VOICE_DATA_PASS, returnVal); in onCreate()
/frameworks/support/v4/ics/android/support/v4/speech/tts/
DTextToSpeechICS.java5 import android.speech.tts.TextToSpeech;
6 import android.speech.tts.TextToSpeech.OnInitListener;
13 static TextToSpeech construct(Context context, OnInitListener onInitListener, in construct()
17 return new TextToSpeech(context, onInitListener); in construct()
20 return new TextToSpeech(context, onInitListener); in construct()
23 return new TextToSpeech(context, onInitListener, engineName); in construct()
/frameworks/support/v4/ics-mr1/android/support/v4/speech/tts/
DTextToSpeechICSMR1.java3 import android.speech.tts.TextToSpeech;
5 import android.speech.tts.TextToSpeech.OnUtteranceCompletedListener;
17 static Set<String> getFeatures(TextToSpeech tts, Locale locale) { in getFeatures()
43 static void setUtteranceProgressListener(TextToSpeech tts, in setUtteranceProgressListener()
/frameworks/base/services/core/java/com/android/server/policy/
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);
88 private final TextToSpeech mTts;
105 mTts = new TextToSpeech(context, new TextToSpeech.OnInitListener() { in EnableAccessibilityController()
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/
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()); in onCreate()
133 mTtsParams.put(TextToSpeech.Engine.KEY_PARAM_STREAM, in onCreate()
135 mTtsParams.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, in onCreate()
509 class TtsInitListener implements TextToSpeech.OnInitListener {
514 if (status != TextToSpeech.SUCCESS) { in onInit()
526 if (result == TextToSpeech.LANG_MISSING_DATA || in onInit()
527 result == TextToSpeech.LANG_NOT_SUPPORTED) { in onInit()
[all …]
/frameworks/base/docs/html/sdk/api_diff/21/
DmissingSinces.txt255 NO DOC BLOCK: android.speech.tts.TextToSpeech Method addEarcon(java.lang.String, java.io.File)
256 NO DOC BLOCK: android.speech.tts.TextToSpeech Method addEarcon(java.lang.String, java.lang.String)
263 NO DOC BLOCK: android.speech.tts.TextToSpeech Method addSpeech(java.lang.CharSequence, java.io.File)
264 NO DOC BLOCK: android.speech.tts.TextToSpeech Method addSpeech(java.lang.CharSequence, java.lang.St…
396 NO DOC BLOCK: android.speech.tts.TextToSpeech Method getAvailableLanguages()
431 NO DOC BLOCK: android.speech.tts.TextToSpeech Method getDefaultVoice()
599 NO DOC BLOCK: android.speech.tts.TextToSpeech Method getVoice()
601 NO DOC BLOCK: android.speech.tts.TextToSpeech Method getVoices()
767 NO DOC BLOCK: android.speech.tts.TextToSpeech Method playEarcon(java.lang.String, int, android.os.B…
768 NO DOC BLOCK: android.speech.tts.TextToSpeech Method playSilentUtterance(long, int, java.lang.Strin…
[all …]
/frameworks/base/docs/html/about/versions/
Dandroid-4.0.jd934 <p>In previous versions of Android, you could use the {@link android.speech.tts.TextToSpeech} class
936 custom engine using {@link android.speech.tts.TextToSpeech#setEngineByPackageName
938 android.speech.tts.TextToSpeech#setEngineByPackageName setEngineByPackageName()} method has been
940 android.speech.tts.TextToSpeech} constructor that accepts the package name of a TTS engine.</p>
943 android.speech.tts.TextToSpeech#getEngines()}. This method returns a list of {@link
944 android.speech.tts.TextToSpeech.EngineInfo} objects, which include meta data such as the engine’s
954 responds to the {@link android.speech.tts.TextToSpeech.Engine#INTENT_ACTION_TTS_SERVICE} intent. The
Dandroid-4.0.3.jd220 android.speech.tts.TextToSpeech.Engine#getFeatures(java.util.Locale)
/frameworks/base/docs/html/
Dsitemap.txt3050 http://developer.android.com/reference/android/speech/tts/TextToSpeech.html
3385 http://developer.android.com/reference/android/speech/tts/TextToSpeech.EngineInfo.html
3386 http://developer.android.com/reference/android/speech/tts/TextToSpeech.Engine.html
3941 http://developer.android.com/reference/android/speech/tts/TextToSpeech.OnInitListener.html
3942 http://developer.android.com/reference/android/speech/tts/TextToSpeech.OnUtteranceCompletedListener…
5019 http://developer.android.com/sdk/api_diff/11/changes/android.speech.tts.TextToSpeech.Engine.html
5645 http://developer.android.com/sdk/api_diff/15/changes/android.speech.tts.TextToSpeech.html
5648 http://developer.android.com/sdk/api_diff/15/changes/android.speech.tts.TextToSpeech.Engine.html
6228 http://developer.android.com/sdk/api_diff/14/changes/android.speech.tts.TextToSpeech.html
6257 http://developer.android.com/sdk/api_diff/14/changes/android.speech.tts.TextToSpeech.Engine.html
[all …]
/frameworks/base/core/java/android/provider/
DSettings.java55 import android.speech.tts.TextToSpeech;
/frameworks/base/api/
Dcurrent.txt29100 public class TextToSpeech {
29101 … ctor public TextToSpeech(android.content.Context, android.speech.tts.TextToSpeech.OnInitListener);
29102 …ctor public TextToSpeech(android.content.Context, android.speech.tts.TextToSpeech.OnInitListener, …
29115 method public java.util.List<android.speech.tts.TextToSpeech.EngineInfo> getEngines();
29130 …method public deprecated int setOnUtteranceCompletedListener(android.speech.tts.TextToSpeech.OnUtt…
29161 public class TextToSpeech.Engine {
29162 ctor public TextToSpeech.Engine();
29195 public static class TextToSpeech.EngineInfo {
29196 ctor public TextToSpeech.EngineInfo();
29202 public static abstract interface TextToSpeech.OnInitListener {
[all …]
Dsystem-current.txt31251 public class TextToSpeech {
31252 … ctor public TextToSpeech(android.content.Context, android.speech.tts.TextToSpeech.OnInitListener);
31253 …ctor public TextToSpeech(android.content.Context, android.speech.tts.TextToSpeech.OnInitListener, …
31266 method public java.util.List<android.speech.tts.TextToSpeech.EngineInfo> getEngines();
31281 …method public deprecated int setOnUtteranceCompletedListener(android.speech.tts.TextToSpeech.OnUtt…
31312 public class TextToSpeech.Engine {
31313 ctor public TextToSpeech.Engine();
31346 public static class TextToSpeech.EngineInfo {
31347 ctor public TextToSpeech.EngineInfo();
31353 public static abstract interface TextToSpeech.OnInitListener {
[all …]