HomeSort by relevance Sort by last modified time
    Searched refs:mTts (Results 1 - 13 of 13) sorted by null

  /development/samples/ApiDemos/src/com/example/android/apis/app/
TextToSpeechActivity.java 51 private TextToSpeech mTts;
61 mTts = new TextToSpeech(this,
79 if (mTts != null) {
80 mTts.stop();
81 mTts.shutdown();
93 int result = mTts.setLanguage(Locale.US);
95 // int result mTts.setLanguage(Locale.FRANCE);
131 mTts.speak(hello,
  /cts/tests/tests/speech/src/android/speech/tts/cts/
TextToSpeechServiceTest.java 35 private TextToSpeechWrapper mTts;
40 mTts = TextToSpeechWrapper.createTextToSpeechMockWrapper(getContext());
41 assertNotNull(mTts);
47 mTts.shutdown();
51 return mTts.getTts();
62 assertTrue("synthesizeToFile() completion timeout", mTts.waitForComplete(UTTERANCE_ID));
97 return mTts.waitForComplete(UTTERANCE_ID);
TextToSpeechTest.java 36 private TextToSpeechWrapper mTts;
41 mTts = TextToSpeechWrapper.createTextToSpeechWrapper(getContext());
42 assertNotNull(mTts);
49 mTts.shutdown();
53 return mTts.getTts();
137 return mTts.waitForComplete(UTTERANCE_ID);
TextToSpeechWrapper.java 40 private TextToSpeech mTts;
64 mTts = tts;
68 mTts.setOnUtteranceCompletedListener(mUtteranceListener);
77 return mTts;
81 mTts.shutdown();
  /packages/apps/Settings/src/com/android/settings/tts/
TextToSpeechSettings.java 96 private TextToSpeech mTts = null;
137 mTts = new TextToSpeech(getActivity().getApplicationContext(), mInitListener);
146 if (mTts != null) {
147 mTts.shutdown();
148 mTts = null;
173 mCurrentEngine = mTts.getCurrentEngine();
200 String currentEngine = mTts.getCurrentEngine();
202 if (TextUtils.isEmpty(currentEngine)) currentEngine = mTts.getDefaultEngine();
204 Locale currentLocale = mTts.getLanguage();
253 if (mTts != null && mTts.getLanguage() != null)
    [all...]
TtsEngineSettingsFragment.java 54 private TextToSpeech mTts;
106 mTts = new TextToSpeech(getActivity().getApplicationContext(), mTtsInitListener,
112 mTts.shutdown();
229 if (getEngineName().equals(mTts.getCurrentEngine())) {
232 mTts.setLanguage(new Locale(localeArray[0], localeArray[1], localeArray[2]));
  /frameworks/base/tests/TtsTests/src/com/android/speech/tts/
TextToSpeechTests.java 39 private TextToSpeech mTts;
47 assertEquals(MOCK_ENGINE, mTts.getCurrentEngine());
53 if (mTts != null) {
54 mTts.shutdown();
63 assertNull(mTts.getCurrentEngine());
72 mTts.setLanguage(new Locale("eng", "USA", "variant"));
87 mTts.setLanguage(new Locale("eng", "USA", "variant"));
107 mTts.setLanguage(Locale.FRANCE);
127 Locale returnVal = mTts.getLanguage();
133 returnVal = mTts.getLanguage()
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/accessibility/
TaskBackService.java 52 private TextToSpeech mTts;
60 mTts = new TextToSpeech(getApplicationContext(), this);
139 mTts.speak(utterance.toString(), TextToSpeech.QUEUE_FLUSH, null);
176 mTts.setLanguage(Locale.US);
188 mTts.shutdown();
ClockBackService.java 212 private TextToSpeech mTts;
230 mTts.speak(utterance, QUEUING_MODE_INTERRUPT, null);
233 mTts.stop();
236 mTts = new TextToSpeech(mContext, new TextToSpeech.OnInitListener() {
245 mTts.shutdown();
252 mTts.stop();
568 mTts.addEarcon(earconName, getPackageName(), resourceId);
573 mTts.playEarcon(earconName, QUEUING_MODE_INTERRUPT, null);
  /development/samples/ApiDemos/src/com/example/android/apis/os/
SmsReceivedDialog.java 42 private TextToSpeech mTts;
63 mTts = new TextToSpeech(this, this);
68 int result = mTts.setLanguage(Locale.US);
73 mTts.speak(mFullBodyString, TextToSpeech.QUEUE_ADD, null);
  /packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
CellBroadcastAlertAudio.java 80 private TextToSpeech mTts;
118 mTts.speak(mMessageBody, TextToSpeech.QUEUE_FLUSH, null);
157 mTts = null;
169 int result = mTts.setLanguage(new Locale(mMessageLanguage));
211 if (mTts != null) {
212 mTts.stop();
213 mTts.shutdown();
241 if (mTts == null) {
242 mTts = new TextToSpeech(this, this);
347 } else if (mState == STATE_SPEAKING && mTts != null)
    [all...]
  /packages/apps/VoiceDialer/src/com/android/voicedialer/
VoiceDialerActivity.java 169 private TextToSpeech mTts;
311 mTts.speak(getString(R.string.speak_now_tts),
335 if (mTts == null) {
342 mTts.setOnUtteranceCompletedListener(new OnUtteranceCompletedListener());
397 mTts = new TextToSpeech(VoiceDialerActivity.this, new TtsInitListener());
510 mTts.speak(getString(R.string.no_results_tts),
541 mTts.speak(sentenceSpoken,
    [all...]
  /frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/
ScoAudioTest.java 69 private TextToSpeech mTts;
131 mTts = new TextToSpeech(this, new TtsInitListener());
169 mTts.shutdown();
506 if (mTts == null) {
511 int result = mTts.setLanguage(Locale.US);
518 mTts.setOnUtteranceCompletedListener(new MyUtteranceCompletedListener(UTTERANCE));
606 mTts.synthesizeToFile(mSpeakText.getText().toString(), mTtsParams, mSampleFile.getPath());
608 mTts.speak(mSpeakText.getText().toString(),

Completed in 1388 milliseconds