/dports/www/chromium-legacy/chromium-88.0.4324.182/content/browser/speech/ |
H A D | tts_win.cc | 65 return utterance_id_; in GetUtteranceId() 70 utterance_id_ = utterance_id; in SetUtteranceId() 80 int utterance_id_ GUARDED_BY(lock_); 285 utterance_id_ = utterance_id; in ProcessSpeech() 306 utterance_id_ = kInvalidUtteranceId; in FinishCurrentUtterance() 313 utterance_id_ = kInvalidUtteranceId; in StopSpeaking() 343 utterance_id_ = kInvalidUtteranceId; in Shutdown() 358 utterance_id_ == kInvalidUtteranceId || utterance_id != utterance_id_) { in OnSpeechEvent() 518 utterance_id_ = utterance_id; in Speak() 538 utterance_id_ = kInvalidUtteranceId; in StopSpeaking() [all …]
|
H A D | tts_android.cc | 25 TtsPlatformImplAndroid::TtsPlatformImplAndroid() : utterance_id_(0) { in TtsPlatformImplAndroid() 96 utterance_id_ = utterance_id; in StartSpeakingNow() 103 utterance_id_ = 0; in StopSpeaking() 115 return (utterance_id_ != 0); in IsSpeaking() 155 if (utterance_id != utterance_id_) in OnStartEvent() 158 TtsController::GetInstance()->OnTtsEvent(utterance_id_, TTS_EVENT_START, 0, in OnStartEvent() 165 if (utterance_id != utterance_id_) in SendFinalTtsEvent() 168 TtsController::GetInstance()->OnTtsEvent(utterance_id_, event_type, in SendFinalTtsEvent() 170 utterance_id_ = 0; in SendFinalTtsEvent()
|
H A D | tts_linux.cc | 99 int utterance_id_ = kInvalidUtteranceId; member in content::TtsPlatformImplBackgroundWorker 154 int utterance_id_ = kInvalidUtteranceId; member in content::TtsPlatformImplLinux 204 utterance_id_ = utterance_id; in ProcessSpeech() 236 utterance_id_ = kInvalidUtteranceId; in StopSpeaking() 333 utterance_id_)); in OnSpeechEvent() 433 utterance_id_ = utterance_id; in Speak() 453 utterance_id_ = kInvalidUtteranceId; in StopSpeaking() 525 utterance_id_ = kInvalidUtteranceId; in OnSpeakScheduled() 534 if (utterance_id != utterance_id_) in OnSpeakFinished() 538 DCHECK_NE(utterance_id_, kInvalidUtteranceId); in OnSpeakFinished() [all …]
|
H A D | tts_mac.mm | 101 int utterance_id_ = -1; 158 utterance_id_ = utterance_id; 192 controller->OnTtsEvent(utterance_id_, content::TTS_EVENT_START, 0, -1, ""); 207 if (speech_synthesizer_.get() && utterance_id_ && !paused_) { 211 utterance_id_, content::TTS_EVENT_PAUSE, last_char_index_, -1, ""); 216 if (speech_synthesizer_.get() && utterance_id_ && paused_) { 220 utterance_id_, content::TTS_EVENT_RESUME, last_char_index_, -1, ""); 296 utterance_id_, event_type, char_index, char_length, error_message);
|
H A D | tts_android.h | 74 int utterance_id_;
|
H A D | tts_controller_unittest.cc | 50 utterance_id_ = utterance_id; in Speak() 91 controller_->OnTtsEvent(utterance_id_, TTS_EVENT_END, 0, 0, {}); in FinishSpeaking() 92 utterance_id_ = -1; in FinishSpeaking() 100 int utterance_id_ = -1; member in content::MockTtsPlatformImpl
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/content/browser/speech/ |
H A D | tts_android.cc | 22 TtsPlatformImplAndroid::TtsPlatformImplAndroid() : utterance_id_(0) { in TtsPlatformImplAndroid() 70 utterance_id_ = utterance_id; in ProcessSpeech() 77 utterance_id_ = 0; in StopSpeaking() 89 return (utterance_id_ != 0); in IsSpeaking() 138 if (utterance_id != utterance_id_) in OnStartEvent() 141 TtsController::GetInstance()->OnTtsEvent(utterance_id_, TTS_EVENT_START, 0, in OnStartEvent() 148 if (utterance_id != utterance_id_) in SendFinalTtsEvent() 151 TtsController::GetInstance()->OnTtsEvent(utterance_id_, event_type, in SendFinalTtsEvent() 153 utterance_id_ = 0; in SendFinalTtsEvent()
|
H A D | tts_win.cc | 80 int utterance_id_; member in content::TtsPlatformImplWin 162 utterance_id_ = utterance_id; in ProcessSpeech() 193 if (speech_synthesizer_.Get() && utterance_id_ && !paused_) { in Pause() 196 TtsController::GetInstance()->OnTtsEvent(utterance_id_, TTS_EVENT_PAUSE, in Pause() 202 if (speech_synthesizer_.Get() && utterance_id_ && paused_) { in Resume() 205 TtsController::GetInstance()->OnTtsEvent(utterance_id_, TTS_EVENT_RESUME, in Resume() 280 controller->OnTtsEvent(utterance_id_, TTS_EVENT_START, 0, -1, in OnSpeechEvent() 285 controller->OnTtsEvent(utterance_id_, TTS_EVENT_END, char_position_, 0, in OnSpeechEvent() 295 controller->OnTtsEvent(utterance_id_, TTS_EVENT_WORD, char_position_, in OnSpeechEvent() 300 controller->OnTtsEvent(utterance_id_, TTS_EVENT_SENTENCE, in OnSpeechEvent() [all …]
|
H A D | tts_linux.cc | 93 int utterance_id_; member in content::TtsPlatformImplLinux 109 TtsPlatformImplLinux::TtsPlatformImplLinux() : utterance_id_(0) { in TtsPlatformImplLinux() 224 utterance_id_ = utterance_id; in ProcessSpeech() 313 controller->OnTtsEvent(utterance_id_, TTS_EVENT_START, 0, in OnSpeechEvent() 317 controller->OnTtsEvent(utterance_id_, TTS_EVENT_RESUME, 0, -1, in OnSpeechEvent() 321 controller->OnTtsEvent(utterance_id_, TTS_EVENT_END, utterance_.size(), 0, in OnSpeechEvent() 325 controller->OnTtsEvent(utterance_id_, TTS_EVENT_PAUSE, utterance_.size(), in OnSpeechEvent() 329 controller->OnTtsEvent(utterance_id_, TTS_EVENT_CANCELLED, 0, -1, in OnSpeechEvent() 334 controller->OnTtsEvent(utterance_id_, TTS_EVENT_MARKER, 0, -1, in OnSpeechEvent()
|
H A D | tts_mac.mm | 97 int utterance_id_; 160 utterance_id_ = utterance_id; 194 controller->OnTtsEvent(utterance_id_, content::TTS_EVENT_START, 0, -1, ""); 209 if (speech_synthesizer_.get() && utterance_id_ && !paused_) { 213 utterance_id_, content::TTS_EVENT_PAUSE, last_char_index_, -1, ""); 218 if (speech_synthesizer_.get() && utterance_id_ && paused_) { 222 utterance_id_, content::TTS_EVENT_RESUME, last_char_index_, -1, ""); 298 utterance_id_, event_type, char_index, char_length, error_message); 303 utterance_id_ = -1;
|
H A D | tts_android.h | 66 int utterance_id_;
|