Searched refs:mTextToSpeechEngine (Results 1 – 1 of 1) sorted by relevance
81 private TextToSpeechEngine mTextToSpeechEngine; field in TextToSpeechHelper106 mTextToSpeechEngine = ttsEngine; in TextToSpeechHelper()122 if (!mTextToSpeechEngine.isInitialized()) { in maybeInitAndKeepAlive()126 mTextToSpeechEngine.initialize(mContext, this::handleInitCompleted); in maybeInitAndKeepAlive()127 mTextToSpeechEngine.setOnUtteranceProgressListener(mProgressListener); in maybeInitAndKeepAlive()128 mTextToSpeechEngine.setAudioAttributes(mAudioAttributes); in maybeInitAndKeepAlive()186 mTextToSpeechEngine.stop(); in requestStop()191 return mTextToSpeechEngine.isSpeaking(); in isSpeaking()208 mTextToSpeechEngine.stop(); in playInternal()220 if (mTextToSpeechEngine.speak(text, TextToSpeech.QUEUE_ADD, /* params= */ null, in playInternal()[all …]