HomeSort by relevance Sort by last modified time
    Searched refs:TextToSpeech (Results 1 - 25 of 59) sorted by null

1 2 3

  /frameworks/base/core/java/android/speech/tts/
AbstractSynthesisCallback.java 57 return mClientIsUsingV2 ? TextToSpeech.STOPPED : TextToSpeech.ERROR;
PlaybackSynthesisCallback.java 62 mStatusCode = TextToSpeech.SUCCESS;
74 if (mStatusCode == TextToSpeech.STOPPED) {
80 mStatusCode = TextToSpeech.STOPPED;
88 item.stop(TextToSpeech.STOPPED);
95 mLogger.onCompleted(TextToSpeech.STOPPED);
131 mStatusCode = TextToSpeech.ERROR_OUTPUT;
132 return TextToSpeech.ERROR;
134 if (mStatusCode == TextToSpeech.STOPPED) {
138 if (mStatusCode != TextToSpeech.SUCCESS) {
140 return TextToSpeech.ERROR
    [all...]
FileSynthesisCallback.java 63 mStatusCode = TextToSpeech.SUCCESS;
72 if (mStatusCode == TextToSpeech.STOPPED) {
76 mStatusCode = TextToSpeech.STOPPED;
112 if (mStatusCode == TextToSpeech.STOPPED) {
116 if (mStatusCode != TextToSpeech.SUCCESS) {
118 return TextToSpeech.ERROR;
122 return TextToSpeech.ERROR;
137 return TextToSpeech.SUCCESS;
142 mStatusCode = TextToSpeech.ERROR_OUTPUT;
144 return TextToSpeech.ERROR
    [all...]
TextToSpeechService.java 35 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_AVAILABLE}
    [all...]
  /cts/tests/tests/speech/src/android/speech/tts/cts/
StubTextToSpeechService.java 21 import android.speech.tts.TextToSpeech;
37 return TextToSpeech.LANG_AVAILABLE;
42 return TextToSpeech.LANG_AVAILABLE;
51 if (callback.start(16000, AudioFormat.ENCODING_PCM_16BIT, 1) != TextToSpeech.SUCCESS) {
55 if (callback.audioAvailable(data, 0, data.length) != TextToSpeech.SUCCESS) {
58 if (callback.done() != TextToSpeech.SUCCESS) {
TextToSpeechTest.java 20 import android.speech.tts.TextToSpeech;
29 * Tests for {@link android.speech.tts.TextToSpeech}
64 private TextToSpeech getTts() {
78 if (defaultAvailability == TextToSpeech.LANG_AVAILABLE ||
79 defaultAvailability == TextToSpeech.LANG_COUNTRY_AVAILABLE ||
80 defaultAvailability == TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE) {
87 if (availability == TextToSpeech.LANG_AVAILABLE ||
88 availability == TextToSpeech.LANG_COUNTRY_AVAILABLE ||
89 availability == TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE) {
107 assertEquals("synthesizeToFile() failed", TextToSpeech.SUCCESS, result)
    [all...]
TextToSpeechServiceTest.java 19 import android.speech.tts.TextToSpeech;
50 private TextToSpeech getTts() {
60 assertEquals("synthesizeToFile() failed", TextToSpeech.SUCCESS, result);
72 int result = getTts().speak(UTTERANCE, TextToSpeech.QUEUE_FLUSH, createParams());
73 assertEquals("speak() failed", TextToSpeech.SUCCESS, result);
92 params.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, UTTERANCE_ID);
TextToSpeechWrapper.java 20 import android.speech.tts.TextToSpeech;
21 import android.speech.tts.TextToSpeech.OnInitListener;
22 import android.speech.tts.TextToSpeech.OnUtteranceCompletedListener;
32 * Wrapper for {@link TextToSpeech} with some handy test functionality.
40 private TextToSpeech mTts;
56 return initTts(new TextToSpeech(mContext, mInitListener));
60 return initTts(new TextToSpeech(mContext, mInitListener, engine));
63 private boolean initTts(TextToSpeech tts) throws InterruptedException {
76 public TextToSpeech getTts() {
132 return mStatus == TextToSpeech.SUCCESS
    [all...]
  /frameworks/support/v4/ics/android/support/v4/speech/tts/
TextToSpeechICS.java 5 import android.speech.tts.TextToSpeech;
6 import android.speech.tts.TextToSpeech.OnInitListener;
13 static TextToSpeech construct(Context context, OnInitListener onInitListener,
17 return new TextToSpeech(context, onInitListener);
20 return new TextToSpeech(context, onInitListener);
23 return new TextToSpeech(context, onInitListener, engineName);
  /development/samples/ApiDemos/src/com/example/android/apis/app/
TextToSpeechActivity.java 21 import android.speech.tts.TextToSpeech;
35 * <li>Construct the TextToSpeech object.</li>
37 * The activity implements TextToSpeech.OnInitListener for this purpose.</li>
38 * <li>Call TextToSpeech.speak to synthesize speech.</li>
39 * <li>Shutdown TextToSpeech in onDestroy.</li>
47 public class TextToSpeechActivity extends Activity implements TextToSpeech.OnInitListener {
51 private TextToSpeech mTts;
61 mTts = new TextToSpeech(this,
62 this // TextToSpeech.OnInitListener
87 // Implements TextToSpeech.OnInitListener
    [all...]
  /frameworks/base/tests/TtsTests/src/com/android/speech/tts/
MockableCheckVoiceData.java 22 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);
TextToSpeechTests.java 21 import android.speech.tts.TextToSpeech;
39 private TextToSpeech mTts;
46 blockingInitAndVerify(MOCK_ENGINE, TextToSpeech.SUCCESS);
60 blockingInitAndVerify("__DOES_NOT_EXIST__", TextToSpeech.ERROR);
70 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE).when(delegate).onIsLanguageAvailable(
72 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE).when(delegate).onLoadLanguage(
77 assertEquals(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE, mTts.setLanguage(new Locale("eng", "USA", "variant")));
92 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(delegate).onIsLanguageAvailable(
94 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(delegate).onIsLanguageAvailable(
96 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(delegate).onLoadLanguage
    [all...]
  /external/svox/pico/src/com/svox/pico/
CheckVoiceData.java 25 import android.speech.tts.TextToSpeech;
61 int result = TextToSpeech.Engine.CHECK_VOICE_DATA_PASS;
72 TextToSpeech.Engine.EXTRA_CHECK_VOICE_DATA_FOR);
88 result = TextToSpeech.Engine.CHECK_VOICE_DATA_MISSING_DATA;
98 result = TextToSpeech.Engine.CHECK_VOICE_DATA_FAIL;
103 returnData.putExtra(TextToSpeech.Engine.EXTRA_VOICE_DATA_ROOT_DIRECTORY, PICO_LINGWARE_PATH);
104 returnData.putExtra(TextToSpeech.Engine.EXTRA_VOICE_DATA_FILES, dataFiles);
105 returnData.putExtra(TextToSpeech.Engine.EXTRA_VOICE_DATA_FILES_INFO, dataFilesInfo);
107 returnData.putStringArrayListExtra(TextToSpeech.Engine.EXTRA_AVAILABLE_VOICES, available);
108 returnData.putStringArrayListExtra(TextToSpeech.Engine.EXTRA_UNAVAILABLE_VOICES, unavailable)
    [all...]
GetSampleText.java 24 import android.speech.tts.TextToSpeech;
36 int result = TextToSpeech.LANG_AVAILABLE;
59 result = TextToSpeech.LANG_NOT_SUPPORTED;
  /development/samples/ApiDemos/src/com/example/android/apis/os/
SmsReceivedDialog.java 27 import android.speech.tts.TextToSpeech;
28 import android.speech.tts.TextToSpeech.OnInitListener;
42 private TextToSpeech mTts;
63 mTts = new TextToSpeech(this, this);
67 if (status == TextToSpeech.SUCCESS) {
69 if (result == TextToSpeech.LANG_MISSING_DATA
70 || result == TextToSpeech.LANG_NOT_SUPPORTED) {
73 mTts.speak(mFullBodyString, TextToSpeech.QUEUE_ADD, null);
  /frameworks/support/v4/ics-mr1/android/support/v4/speech/tts/
TextToSpeechICSMR1.java 3 import android.speech.tts.TextToSpeech;
5 import android.speech.tts.TextToSpeech.OnUtteranceCompletedListener;
13 * Call {@link TextToSpeech#getFeatures} if available.
15 * @return {@link TextToSpeech#getFeatures} or null on older devices.
17 static Set<String> getFeatures(TextToSpeech tts, Locale locale) {
35 * Call {@link TextToSpeech#setOnUtteranceProgressListener} if ICS-MR1 or newer.
37 * On pre ICS-MR1 devices,{@link TextToSpeech#setOnUtteranceCompletedListener} is
43 static void setUtteranceProgressListener(TextToSpeech tts,
  /development/samples/TtsEngine/src/com/example/android/ttsengine/
CheckVoiceData.java 21 import android.speech.tts.TextToSpeech;
71 result = TextToSpeech.Engine.CHECK_VOICE_DATA_FAIL;
75 result = TextToSpeech.Engine.CHECK_VOICE_DATA_MISSING_DATA;
78 result = TextToSpeech.Engine.CHECK_VOICE_DATA_PASS;
85 TextToSpeech.Engine.EXTRA_AVAILABLE_VOICES, available);
87 TextToSpeech.Engine.EXTRA_UNAVAILABLE_VOICES, unavailable);
94 * {@link TextToSpeech.Engine.EXTRA_CHECK_VOICE_DATA_FOR} that might specify
101 TextToSpeech.Engine.EXTRA_CHECK_VOICE_DATA_FOR);
  /development/samples/ApiDemos/src/com/example/android/apis/accessibility/
TaskBackService.java 27 import android.speech.tts.TextToSpeech;
28 import android.speech.tts.TextToSpeech.OnInitListener;
52 private TextToSpeech mTts;
60 mTts = new TextToSpeech(getApplicationContext(), this);
139 mTts.speak(utterance.toString(), TextToSpeech.QUEUE_FLUSH, null);
175 if (status == TextToSpeech.SUCCESS) {
  /external/svox/PicoLangInstallerDeuDeu/src/com/svox/pico/voice/deu/deu/
InstallerActivity.java 15 import android.speech.tts.TextToSpeech;
43 rootDirectory = data.getStringExtra(TextToSpeech.Engine.EXTRA_VOICE_DATA_ROOT_DIRECTORY);
130 new Intent(TextToSpeech.Engine.ACTION_TTS_DATA_INSTALLED);
131 installCompleteIntent.putExtra(TextToSpeech.Engine.EXTRA_TTS_DATA_INSTALLED,
132 TextToSpeech.SUCCESS);
140 new Intent(TextToSpeech.Engine.ACTION_TTS_DATA_INSTALLED);
141 installCompleteIntent.putExtra(TextToSpeech.Engine.EXTRA_TTS_DATA_INSTALLED,
142 TextToSpeech.ERROR);
  /external/svox/PicoLangInstallerEngGbr/src/com/svox/pico/voice/eng/gbr/
InstallerActivity.java 15 import android.speech.tts.TextToSpeech;
43 rootDirectory = data.getStringExtra(TextToSpeech.Engine.EXTRA_VOICE_DATA_ROOT_DIRECTORY);
130 new Intent(TextToSpeech.Engine.ACTION_TTS_DATA_INSTALLED);
131 installCompleteIntent.putExtra(TextToSpeech.Engine.EXTRA_TTS_DATA_INSTALLED,
132 TextToSpeech.SUCCESS);
140 new Intent(TextToSpeech.Engine.ACTION_TTS_DATA_INSTALLED);
141 installCompleteIntent.putExtra(TextToSpeech.Engine.EXTRA_TTS_DATA_INSTALLED,
142 TextToSpeech.ERROR);
  /external/svox/PicoLangInstallerEngUsa/src/com/svox/pico/voice/eng/usa/
InstallerActivity.java 15 import android.speech.tts.TextToSpeech;
43 rootDirectory = data.getStringExtra(TextToSpeech.Engine.EXTRA_VOICE_DATA_ROOT_DIRECTORY);
130 new Intent(TextToSpeech.Engine.ACTION_TTS_DATA_INSTALLED);
131 installCompleteIntent.putExtra(TextToSpeech.Engine.EXTRA_TTS_DATA_INSTALLED,
132 TextToSpeech.SUCCESS);
140 new Intent(TextToSpeech.Engine.ACTION_TTS_DATA_INSTALLED);
141 installCompleteIntent.putExtra(TextToSpeech.Engine.EXTRA_TTS_DATA_INSTALLED,
142 TextToSpeech.ERROR);
  /external/svox/PicoLangInstallerFraFra/src/com/svox/pico/voice/fra/fra/
InstallerActivity.java 15 import android.speech.tts.TextToSpeech;
43 rootDirectory = data.getStringExtra(TextToSpeech.Engine.EXTRA_VOICE_DATA_ROOT_DIRECTORY);
130 new Intent(TextToSpeech.Engine.ACTION_TTS_DATA_INSTALLED);
131 installCompleteIntent.putExtra(TextToSpeech.Engine.EXTRA_TTS_DATA_INSTALLED,
132 TextToSpeech.SUCCESS);
140 new Intent(TextToSpeech.Engine.ACTION_TTS_DATA_INSTALLED);
141 installCompleteIntent.putExtra(TextToSpeech.Engine.EXTRA_TTS_DATA_INSTALLED,
142 TextToSpeech.ERROR);
  /external/svox/PicoLangInstallerItaIta/src/com/svox/pico/voice/ita/ita/
InstallerActivity.java 15 import android.speech.tts.TextToSpeech;
43 rootDirectory = data.getStringExtra(TextToSpeech.Engine.EXTRA_VOICE_DATA_ROOT_DIRECTORY);
130 new Intent(TextToSpeech.Engine.ACTION_TTS_DATA_INSTALLED);
131 installCompleteIntent.putExtra(TextToSpeech.Engine.EXTRA_TTS_DATA_INSTALLED,
132 TextToSpeech.SUCCESS);
140 new Intent(TextToSpeech.Engine.ACTION_TTS_DATA_INSTALLED);
141 installCompleteIntent.putExtra(TextToSpeech.Engine.EXTRA_TTS_DATA_INSTALLED,
142 TextToSpeech.ERROR);
  /external/svox/PicoLangInstallerSpaEsp/src/com/svox/pico/voice/spa/esp/
InstallerActivity.java 15 import android.speech.tts.TextToSpeech;
43 rootDirectory = data.getStringExtra(TextToSpeech.Engine.EXTRA_VOICE_DATA_ROOT_DIRECTORY);
130 new Intent(TextToSpeech.Engine.ACTION_TTS_DATA_INSTALLED);
131 installCompleteIntent.putExtra(TextToSpeech.Engine.EXTRA_TTS_DATA_INSTALLED,
132 TextToSpeech.SUCCESS);
140 new Intent(TextToSpeech.Engine.ACTION_TTS_DATA_INSTALLED);
141 installCompleteIntent.putExtra(TextToSpeech.Engine.EXTRA_TTS_DATA_INSTALLED,
142 TextToSpeech.ERROR);
  /external/svox/picolanginstaller/src/com/svox/langpack/installer/
InstallerActivity.java 16 import android.speech.tts.TextToSpeech;
44 rootDirectory = data.getStringExtra(TextToSpeech.Engine.EXTRA_VOICE_DATA_ROOT_DIRECTORY);
131 new Intent(TextToSpeech.Engine.ACTION_TTS_DATA_INSTALLED);
132 installCompleteIntent.putExtra(TextToSpeech.Engine.EXTRA_TTS_DATA_INSTALLED,
133 TextToSpeech.SUCCESS);
140 new Intent(TextToSpeech.Engine.ACTION_TTS_DATA_INSTALLED);
141 installCompleteIntent.putExtra(TextToSpeech.Engine.EXTRA_TTS_DATA_INSTALLED,
142 TextToSpeech.ERROR);

Completed in 2443 milliseconds

1 2 3