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

1 2

  /cts/tests/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) {
  /cts/tests/tests/speech/src/android/speech/tts/cts/
TextToSpeechTest.java 19 import android.speech.tts.TextToSpeech;
28 * Tests for {@link android.speech.tts.TextToSpeech}
52 private TextToSpeech getTts() {
66 if (defaultAvailability == TextToSpeech.LANG_AVAILABLE ||
67 defaultAvailability == TextToSpeech.LANG_COUNTRY_AVAILABLE ||
68 defaultAvailability == TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE) {
75 if (availability == TextToSpeech.LANG_AVAILABLE ||
76 availability == TextToSpeech.LANG_COUNTRY_AVAILABLE ||
77 availability == TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE) {
92 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...]
  /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...]
  /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;
EngineSettings.java 25 import android.speech.tts.TextToSpeech;
51 ArrayList<String> available = data.getStringArrayListExtra(TextToSpeech.Engine.EXTRA_AVAILABLE_VOICES);
52 ArrayList<String> unavailable = data.getStringArrayListExtra(TextToSpeech.Engine.EXTRA_UNAVAILABLE_VOICES);
  /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/base/core/java/android/speech/tts/
FileSynthesisCallback.java 105 return TextToSpeech.ERROR;
118 return TextToSpeech.SUCCESS;
122 return TextToSpeech.ERROR;
136 return TextToSpeech.ERROR;
140 return TextToSpeech.ERROR;
144 return TextToSpeech.SUCCESS;
148 return TextToSpeech.ERROR;
159 return TextToSpeech.ERROR;
163 return TextToSpeech.ERROR;
173 return TextToSpeech.SUCCESS
    [all...]
PlaybackSynthesisCallback.java 39 * {@link TextToSpeech.Engine#DEFAULT_VOLUME} (1.0f).
45 * The default value is {@link TextToSpeech.Engine#DEFAULT_PAN} (0.0f).
138 return TextToSpeech.ERROR;
144 return TextToSpeech.ERROR;
154 return TextToSpeech.SUCCESS;
172 return TextToSpeech.ERROR;
187 return TextToSpeech.SUCCESS;
198 return TextToSpeech.ERROR;
204 return TextToSpeech.ERROR;
213 return TextToSpeech.SUCCESS
    [all...]
TextToSpeechService.java 31 import android.speech.tts.TextToSpeech.Engine;
135 * One of {@link TextToSpeech#LANG_AVAILABLE},
136 * {@link TextToSpeech#LANG_COUNTRY_AVAILABLE},
137 * {@link TextToSpeech#LANG_COUNTRY_VAR_AVAILABLE},
138 * {@link TextToSpeech#LANG_MISSING_DATA}
139 * {@link TextToSpeech#LANG_NOT_SUPPORTED}.
170 * One of {@link TextToSpeech#LANG_AVAILABLE},
171 * {@link TextToSpeech#LANG_COUNTRY_AVAILABLE},
172 * {@link TextToSpeech#LANG_COUNTRY_VAR_AVAILABLE},
173 * {@link TextToSpeech#LANG_MISSING_DATA
    [all...]
  /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);
RobotSpeakTtsService.java 23 import android.speech.tts.TextToSpeech;
98 // return TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE;
100 return TextToSpeech.LANG_COUNTRY_AVAILABLE;
104 return TextToSpeech.LANG_AVAILABLE;
107 return TextToSpeech.LANG_NOT_SUPPORTED;
119 if (isLanguageAvailable == TextToSpeech.LANG_NOT_SUPPORTED) {
124 if (isLanguageAvailable == TextToSpeech.LANG_AVAILABLE) {
165 if (load == TextToSpeech.LANG_NOT_SUPPORTED) {
  /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);
  /packages/apps/Settings/src/com/android/settings/tts/
TextToSpeechSettings.java 38 import android.speech.tts.TextToSpeech;
39 import android.speech.tts.TextToSpeech.EngineInfo;
77 private int mDefaultRate = TextToSpeech.Engine.DEFAULT_RATE;
96 private TextToSpeech mTts = null;
104 private final TextToSpeech.OnInitListener mInitListener = new TextToSpeech.OnInitListener() {
116 private final TextToSpeech.OnInitListener mUpdateListener = new TextToSpeech.OnInitListener() {
128 getActivity().setVolumeControlStream(TextToSpeech.Engine.DEFAULT_STREAM);
137 mTts = new TextToSpeech(getActivity().getApplicationContext(), mInitListener)
    [all...]
  /external/svox/pico/compat/src/com/android/tts/compat/
CompatTtsService.java 22 import android.speech.tts.TextToSpeech;
96 if (mNativeSynth == null) return TextToSpeech.ERROR;
119 if (mNativeSynth.setLanguage(lang, country, variant) != TextToSpeech.SUCCESS) {
127 if (mNativeSynth.setSpeechRate(speechRate) != TextToSpeech.SUCCESS) {
135 if (mNativeSynth.setPitch(pitch) != TextToSpeech.SUCCESS) {
142 if (mNativeSynth.speak(request, callback) != TextToSpeech.SUCCESS) {
  /packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
CellBroadcastAlertAudio.java 31 import android.speech.tts.TextToSpeech;
44 public class CellBroadcastAlertAudio extends Service implements TextToSpeech.OnInitListener,
45 TextToSpeech.OnUtteranceCompletedListener {
76 private TextToSpeech mTts;
114 mTts.speak(mMessageBody, TextToSpeech.QUEUE_FLUSH, null);
142 * @param status {@link TextToSpeech#SUCCESS} or {@link TextToSpeech#ERROR}.
146 if (status == TextToSpeech.SUCCESS) {
231 mTts = new TextToSpeech(this, this);

Completed in 3694 milliseconds

1 2