Home
last modified time | relevance | path

Searched refs:utterance_id_ (Results 1 – 11 of 11) sorted by relevance

/dports/www/chromium-legacy/chromium-88.0.4324.182/content/browser/speech/
H A Dtts_win.cc65 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 Dtts_android.cc25 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 Dtts_linux.cc99 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 Dtts_mac.mm101 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 Dtts_android.h74 int utterance_id_;
H A Dtts_controller_unittest.cc50 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 Dtts_android.cc22 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 Dtts_win.cc80 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 Dtts_linux.cc93 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 Dtts_mac.mm97 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 Dtts_android.h66 int utterance_id_;