Searched refs:mTTS (Results 1 – 2 of 2) sorted by relevance
/packages/apps/Car/VoiceControl/src/com/android/car/voicecontrol/ |
D | TextToSpeechImpl.java | 50 private android.speech.tts.TextToSpeech mTTS; field in TextToSpeechImpl 99 mTTS = new android.speech.tts.TextToSpeech(context, status -> { in TextToSpeechImpl() 105 mTTS.setOnUtteranceProgressListener(mTTSListener); in TextToSpeechImpl() 106 mTTS.setAudioAttributes(new AudioAttributes.Builder() in TextToSpeechImpl() 112 mTTS.speak(text, android.speech.tts.TextToSpeech.QUEUE_ADD, null, ""); in TextToSpeechImpl() 132 mTTS.setVoice(voice); in doSetVoice() 135 mTTS.setLanguage(Locale.US); in doSetVoice() 146 mTTS.synthesizeToFile(WARM_UP_PIPELINE_TEXT, null, mWarmUpPipelineFile, in warmUpPipeline() 152 if (mTTS != null) { in destroy() 153 mTTS.shutdown(); in destroy() [all …]
|
D | VoicePlateActivity.java | 61 private TextToSpeech mTTS; field in VoicePlateActivity 75 mTTS = new TextToSpeechImpl(this, this); in onCreate() 81 mTTS.setSelectedVoice(mInteractionService.getVoice()); in onCreate() 93 mTTS.destroy(); in onDestroy() 105 mTTS.speak(R.string.speech_reply_missing_permissions); in onStart() 175 mTTS.ask(callback, str, args); in ask() 184 mTTS.speak(R.string.speech_reply_not_recognized); in askToSendSMS() 191 mTTS.speak(speech); in askToSendSMS() 300 mTTS.speak(R.string.speech_reply_unrecognized_device); in getDeviceAddress() 341 mTTS.speak(error); in onDirectSendSMS() [all …]
|