Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/speech/tts/
DPlaybackSynthesisCallback.java65 mStatusCode = TextToSpeech.SUCCESS; in PlaybackSynthesisCallback()
77 if (mStatusCode == TextToSpeech.STOPPED) { in stop()
83 mStatusCode = TextToSpeech.STOPPED; in stop()
91 item.stop(TextToSpeech.STOPPED); in stop()
98 mLogger.onCompleted(TextToSpeech.STOPPED); in stop()
142 mStatusCode = TextToSpeech.ERROR_OUTPUT; in start()
143 return TextToSpeech.ERROR; in start()
145 if (mStatusCode == TextToSpeech.STOPPED) { in start()
149 if (mStatusCode != TextToSpeech.SUCCESS) { in start()
151 return TextToSpeech.ERROR; in start()
[all …]
DFileSynthesisCallback.java62 mStatusCode = TextToSpeech.SUCCESS; in FileSynthesisCallback()
71 if (mStatusCode == TextToSpeech.STOPPED) { in stop()
75 mStatusCode = TextToSpeech.STOPPED; in stop()
118 if (mStatusCode == TextToSpeech.STOPPED) { in start()
122 if (mStatusCode != TextToSpeech.SUCCESS) { in start()
124 return TextToSpeech.ERROR; in start()
128 return TextToSpeech.ERROR; in start()
141 return TextToSpeech.SUCCESS; in start()
146 mStatusCode = TextToSpeech.ERROR_OUTPUT; in start()
148 return TextToSpeech.ERROR; in start()
[all …]
DTextToSpeechService.java36 import android.speech.tts.TextToSpeech.Engine;
253 int expectedStatus = TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE; in getExpectedLanguageAvailableStatus()
256 expectedStatus = TextToSpeech.LANG_AVAILABLE; in getExpectedLanguageAvailableStatus()
258 expectedStatus = TextToSpeech.LANG_COUNTRY_AVAILABLE; in getExpectedLanguageAvailableStatus()
323 case TextToSpeech.LANG_AVAILABLE: in onGetDefaultVoiceNameFor()
326 case TextToSpeech.LANG_COUNTRY_AVAILABLE: in onGetDefaultVoiceNameFor()
329 case TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE: in onGetDefaultVoiceNameFor()
337 if (onIsValidVoiceName(voiceName) == TextToSpeech.SUCCESS) { in onGetDefaultVoiceNameFor()
362 return TextToSpeech.ERROR; in onLoadVoice()
369 return TextToSpeech.ERROR; in onLoadVoice()
[all …]
DAbstractSynthesisCallback.java57 return mClientIsUsingV2 ? TextToSpeech.STOPPED : TextToSpeech.ERROR; in errorCodeOnStop()
DSynthesisPlaybackQueueItem.java82 mStatusCode = TextToSpeech.SUCCESS; in SynthesisPlaybackQueueItem()
95 dispatcher.dispatchOnError(TextToSpeech.ERROR_OUTPUT); in run()
123 if (mStatusCode == TextToSpeech.SUCCESS) { in run()
125 } else if(mStatusCode == TextToSpeech.STOPPED) { in run()
DSynthesisCallback.java124 void error(@TextToSpeech.Error int errorCode); in error()
DAbstractEventLogger.java107 if (statusCode != TextToSpeech.SUCCESS in onCompleted()
DUtteranceProgressListener.java158 final TextToSpeech.OnUtteranceCompletedListener listener) { in from()
DEventLogger.java38 if (statusCode != TextToSpeech.STOPPED) { in logFailure()
DAudioPlaybackHandler.java46 item.stop(TextToSpeech.STOPPED); in stop()
DTextToSpeech.java63 public class TextToSpeech { class
695 public TextToSpeech(Context context, OnInitListener listener) { in TextToSpeech() method in TextToSpeech
711 public TextToSpeech(Context context, OnInitListener listener, String engine) { in TextToSpeech() method in TextToSpeech
721 public TextToSpeech(Context context, OnInitListener listener, String engine, in TextToSpeech() method in TextToSpeech
1505 if (service.loadVoice(getCallerIdentity(), voiceName) == TextToSpeech.ERROR) {
2033 return TextToSpeech.SUCCESS;
2048 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;
42 private TextToSpeech mTts;
50 Mockito.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(passThrough) in setUp()
53 Mockito.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(passThrough) in setUp()
57 blockingInitAndVerify(MOCK_ENGINE, TextToSpeech.SUCCESS); in setUp()
70 blockingInitAndVerify("__DOES_NOT_EXIST__", TextToSpeech.ERROR); in testEngineInitialized()
80 … Mockito.doReturn(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE).when(delegate).onIsLanguageAvailable( in testSetLanguage_delegation()
82 Mockito.doReturn(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE).when(delegate).onLoadLanguage( in testSetLanguage_delegation()
87 …assertEquals(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE, mTts.setLanguage(new Locale("eng", "USA", "v… in testSetLanguage_delegation()
102 Mockito.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/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/
Dcompiled-classes-phone3791 android.speech.tts.TextToSpeech
3792 android.speech.tts.TextToSpeech$10
3793 android.speech.tts.TextToSpeech$16
3794 android.speech.tts.TextToSpeech$17
3795 android.speech.tts.TextToSpeech$7
3796 android.speech.tts.TextToSpeech$Action
3797 android.speech.tts.TextToSpeech$Connection
3798 android.speech.tts.TextToSpeech$Connection$1
3799 android.speech.tts.TextToSpeech$Connection$SetupConnectionAsyncTask
3800 android.speech.tts.TextToSpeech$EngineInfo
[all …]
/frameworks/base/core/java/android/provider/
DSettings.java66 import android.speech.tts.TextToSpeech;
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt27376 public class TextToSpeech {
27377 … ctor public TextToSpeech(android.content.Context, android.speech.tts.TextToSpeech.OnInitListener);
27378 …ctor public TextToSpeech(android.content.Context, android.speech.tts.TextToSpeech.OnInitListener, …
27391 method public java.util.List<android.speech.tts.TextToSpeech.EngineInfo> getEngines();
27406 …method public deprecated int setOnUtteranceCompletedListener(android.speech.tts.TextToSpeech.OnUtt…
27437 public class TextToSpeech.Engine {
27438 ctor public TextToSpeech.Engine();
27471 public static class TextToSpeech.EngineInfo {
27472 ctor public TextToSpeech.EngineInfo();
27478 public static abstract interface TextToSpeech.OnInitListener {
[all …]
/frameworks/base/api/
Dcurrent.txt37720 public class TextToSpeech {
37721 … ctor public TextToSpeech(android.content.Context, android.speech.tts.TextToSpeech.OnInitListener);
37722 …ctor public TextToSpeech(android.content.Context, android.speech.tts.TextToSpeech.OnInitListener, …
37735 method public java.util.List<android.speech.tts.TextToSpeech.EngineInfo> getEngines();
37750 …method public deprecated int setOnUtteranceCompletedListener(android.speech.tts.TextToSpeech.OnUtt…
37781 public class TextToSpeech.Engine {
37782 ctor public TextToSpeech.Engine();
37815 public static class TextToSpeech.EngineInfo {
37816 ctor public TextToSpeech.EngineInfo();
37822 public static abstract interface TextToSpeech.OnInitListener {
[all …]
Dsystem-current.txt40932 public class TextToSpeech {
40933 … ctor public TextToSpeech(android.content.Context, android.speech.tts.TextToSpeech.OnInitListener);
40934 …ctor public TextToSpeech(android.content.Context, android.speech.tts.TextToSpeech.OnInitListener, …
40947 method public java.util.List<android.speech.tts.TextToSpeech.EngineInfo> getEngines();
40962 …method public deprecated int setOnUtteranceCompletedListener(android.speech.tts.TextToSpeech.OnUtt…
40993 public class TextToSpeech.Engine {
40994 ctor public TextToSpeech.Engine();
41027 public static class TextToSpeech.EngineInfo {
41028 ctor public TextToSpeech.EngineInfo();
41034 public static abstract interface TextToSpeech.OnInitListener {
[all …]