Home
last modified time | relevance | path

Searched refs:utterance (Results 1 – 25 of 54) sorted by relevance

123

/external/chromium_org/third_party/WebKit/Source/modules/speech/
DSpeechSynthesis.cpp102 SpeechSynthesisUtterance* utterance = currentSpeechUtterance(); in startSpeakingImmediately() local
103 ASSERT(utterance); in startSpeakingImmediately()
105 utterance->setStartTime(monotonicallyIncreasingTime()); in startSpeakingImmediately()
107 m_platformSpeechSynthesizer->speak(utterance->platformUtterance()); in startSpeakingImmediately()
110 void SpeechSynthesis::speak(SpeechSynthesisUtterance* utterance, ExceptionState& exceptionState) in speak() argument
112 if (!utterance) { in speak()
117 m_utteranceQueue.append(utterance); in speak()
146 void SpeechSynthesis::fireEvent(const AtomicString& type, SpeechSynthesisUtterance* utterance, unsi… in fireEvent() argument
149utterance->dispatchEvent(SpeechSynthesisEvent::create(type, charIndex, (currentTime() - utterance-… in fireEvent()
152 void SpeechSynthesis::handleSpeakingCompleted(SpeechSynthesisUtterance* utterance, bool errorOccurr… in handleSpeakingCompleted() argument
[all …]
/external/chromium_org/chrome/renderer/
Dtts_dispatcher.cc65 TtsUtteranceRequest utterance; in speak() local
66 utterance.id = id; in speak()
67 utterance.text = web_utterance.text().utf8(); in speak()
68 utterance.lang = web_utterance.lang().utf8(); in speak()
69 utterance.voice = web_utterance.voice().utf8(); in speak()
70 utterance.volume = web_utterance.volume(); in speak()
71 utterance.rate = web_utterance.rate(); in speak()
72 utterance.pitch = web_utterance.pitch(); in speak()
73 RenderThread::Get()->Send(new TtsHostMsg_Speak(utterance)); in speak()
113 WebSpeechSynthesisUtterance utterance = FindUtterance(utterance_id); in OnDidStartSpeaking() local
[all …]
/external/chromium_org/chrome/browser/speech/
Dtts_controller.cc136 void TtsController::SpeakOrEnqueue(Utterance* utterance) { in SpeakOrEnqueue() argument
139 if (paused_ && !utterance->can_enqueue()) { in SpeakOrEnqueue()
145 if (paused_ || (IsSpeaking() && utterance->can_enqueue())) { in SpeakOrEnqueue()
146 utterance_queue_.push(utterance); in SpeakOrEnqueue()
149 SpeakNow(utterance); in SpeakOrEnqueue()
153 void TtsController::SpeakNow(Utterance* utterance) { in SpeakNow() argument
156 GetVoices(utterance->profile(), &voices); in SpeakNow()
157 int index = GetMatchingVoice(utterance, voices); in SpeakNow()
174 utterance->set_voice_name(""); in SpeakNow()
175 utterance->set_lang(g_browser_process->GetApplicationLocale()); in SpeakNow()
[all …]
Dtts_message_filter.cc82 scoped_ptr<Utterance> utterance(new Utterance(profile_)); in OnSpeak() local
83 utterance->set_src_id(request.id); in OnSpeak()
84 utterance->set_text(request.text); in OnSpeak()
85 utterance->set_lang(request.lang); in OnSpeak()
86 utterance->set_voice_name(request.voice); in OnSpeak()
87 utterance->set_can_enqueue(true); in OnSpeak()
93 utterance->set_continuous_parameters(params); in OnSpeak()
95 utterance->set_event_delegate(this->AsWeakPtr()); in OnSpeak()
97 TtsController::GetInstance()->SpeakOrEnqueue(utterance.release()); in OnSpeak()
115 void TtsMessageFilter::OnTtsEvent(Utterance* utterance, in OnTtsEvent() argument
[all …]
Dtts_mac.mm28 // Subclass of NSSpeechSynthesizer that takes an utterance
32 // We construct a new NSSpeechSynthesizer for each utterance, for
34 // 1. To associate delegate callbacks with a particular utterance,
37 // where Nuance voices don't retain the utterance string and
45 - (id)initWithUtterance:(NSString*)utterance;
47 - (bool)startSpeakingString:(NSString*)utterance;
59 const std::string& utterance,
107 const std::string& utterance,
112 utterance_ = utterance;
120 // apply to the current utterance or a previous utterance. In
[all …]
Dtts_platform.h37 const std::string& utterance,
61 virtual void WillSpeakUtteranceWithVoice(const Utterance* utterance,
Dtts_controller.h84 virtual void OnTtsEvent(Utterance* utterance,
260 void SpeakOrEnqueue(Utterance* utterance);
314 void SpeakNow(Utterance* utterance);
328 int GetMatchingVoice(const Utterance* utterance,
Dtts_message_filter.h32 virtual void OnTtsEvent(Utterance* utterance,
47 void OnSpeak(const TtsUtteranceRequest& utterance);
/external/chromium_org/third_party/WebKit/Source/platform/exported/
DWebSpeechSynthesizerClientImpl.cpp52 …bSpeechSynthesizerClientImpl::didStartSpeaking(const blink::WebSpeechSynthesisUtterance& utterance) in didStartSpeaking() argument
54 m_client->didStartSpeaking(utterance); in didStartSpeaking()
57 …SpeechSynthesizerClientImpl::didFinishSpeaking(const blink::WebSpeechSynthesisUtterance& utterance) in didFinishSpeaking() argument
59 m_client->didFinishSpeaking(utterance); in didFinishSpeaking()
62 …bSpeechSynthesizerClientImpl::didPauseSpeaking(const blink::WebSpeechSynthesisUtterance& utterance) in didPauseSpeaking() argument
64 m_client->didPauseSpeaking(utterance); in didPauseSpeaking()
67 …SpeechSynthesizerClientImpl::didResumeSpeaking(const blink::WebSpeechSynthesisUtterance& utterance) in didResumeSpeaking() argument
69 m_client->didResumeSpeaking(utterance); in didResumeSpeaking()
72 …chSynthesizerClientImpl::speakingErrorOccurred(const blink::WebSpeechSynthesisUtterance& utterance) in speakingErrorOccurred() argument
74 m_client->speakingErrorOccurred(utterance); in speakingErrorOccurred()
[all …]
DWebSpeechSynthesisUtterance.cpp38 …nthesisUtterance::WebSpeechSynthesisUtterance(WebCore::PlatformSpeechSynthesisUtterance* utterance) in WebSpeechSynthesisUtterance() argument
39 : m_private(utterance) in WebSpeechSynthesisUtterance()
43 …rance& WebSpeechSynthesisUtterance::operator=(WebCore::PlatformSpeechSynthesisUtterance* utterance) in operator =() argument
45 m_private = utterance; in operator =()
/external/chromium_org/chrome/common/extensions/docs/examples/api/ttsEngine/console_tts_engine/
Dconsole_tts_engine.js40 function logUtterance(utterance, index, sendTtsEvent) { argument
41 if (index == utterance.length) {
42 sendTtsEvent({'type': 'end', 'charIndex': utterance.length});
46 appendText(utterance[index]);
48 if (utterance[index] == ' ') {
51 else if (utterance[index] == '.' ||
52 utterance[index] == '?' ||
53 utterance[index] == '!') {
58 logUtterance(utterance, ++index, sendTtsEvent)
62 var speakListener = function(utterance, options, sendTtsEvent) { argument
[all …]
/external/chromium_org/chrome/browser/speech/extension_api/
Dtts_extension_api.cc88 virtual void OnTtsEvent(Utterance* utterance,
94 void TtsExtensionEventHandler::OnTtsEvent(Utterance* utterance, in OnTtsEvent() argument
98 if (utterance->src_id() < 0) { in OnTtsEvent()
99 if (utterance->finished()) in OnTtsEvent()
105 utterance->desired_event_types(); in OnTtsEvent()
108 if (utterance->finished()) in OnTtsEvent()
121 details->SetInteger(constants::kSrcIdKey, utterance->src_id()); in OnTtsEvent()
122 details->SetBoolean(constants::kIsFinalEventKey, utterance->finished()); in OnTtsEvent()
129 event->restrict_to_browser_context = utterance->profile(); in OnTtsEvent()
130 event->event_url = utterance->src_url(); in OnTtsEvent()
[all …]
Dtts_engine_extension_api.cc129 void ExtensionTtsEngineSpeak(Utterance* utterance, const VoiceData& voice) { in ExtensionTtsEngineSpeak() argument
136 args->Set(0, base::Value::CreateStringValue(utterance->text())); in ExtensionTtsEngineSpeak()
141 utterance->options()->DeepCopy())); in ExtensionTtsEngineSpeak()
164 args->Set(2, base::Value::CreateIntegerValue(utterance->id())); in ExtensionTtsEngineSpeak()
168 event->restrict_to_browser_context = utterance->profile(); in ExtensionTtsEngineSpeak()
169 EventRouter::Get(utterance->profile()) in ExtensionTtsEngineSpeak()
170 ->DispatchEventToExtension(utterance->extension_id(), event.Pass()); in ExtensionTtsEngineSpeak()
173 void ExtensionTtsEngineStop(Utterance* utterance) { in ExtensionTtsEngineStop() argument
177 event->restrict_to_browser_context = utterance->profile(); in ExtensionTtsEngineStop()
178 EventRouter::Get(utterance->profile()) in ExtensionTtsEngineStop()
[all …]
Dtts_engine_extension_api.h39 bool GetMatchingExtensionVoice(Utterance* utterance,
45 void ExtensionTtsEngineSpeak(Utterance* utterance,
50 void ExtensionTtsEngineStop(Utterance* utterance);
53 void ExtensionTtsEnginePause(Utterance* utterance);
56 void ExtensionTtsEngineResume(Utterance* utterance);
Dtts_extension_apitest.cc57 const std::string& utterance,
100 const std::string& utterance, in SendEndEvent() argument
108 false, utterance_id, TTS_EVENT_END, utterance.size(), in SendEndEvent()
115 const std::string& utterance, in SendEndEventWhenQueueNotEmpty() argument
123 true, utterance_id, TTS_EVENT_END, utterance.size(), std::string()), in SendEndEventWhenQueueNotEmpty()
128 const std::string& utterance, in SendWordEvents() argument
132 for (int i = 0; i < static_cast<int>(utterance.size()); i++) { in SendWordEvents()
133 if (i == 0 || utterance[i - 1] == ' ') { in SendWordEvents()
/external/chromium_org/chrome/browser/resources/network_speech_synthesis/
Dtts_extension.js115 onSpeak_: function(utterance, options, callback) { argument
119 if (utterance.length > 32768)
120 utterance = utterance.substr(0, 32768);
127 utterance: utterance, property
152 url += '&text=' + encodeURIComponent(utterance);
203 'charIndex': this.currentUtterance_.utterance.length
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/host/chrome/
Dtts_background.js298 var utterance = new cvox.Utterance(textString, mergedProperties);
299 this.speakUsingQueue_(utterance, queueMode);
308 cvox.TtsBackground.prototype.speakUsingQueue_ = function(utterance, queueMode) { argument
314 if (this.shouldCancel_(this.currentUtterance_, utterance, queueMode)) {
321 this.utteranceQueue_[i], utterance, queueMode)) {
331 this.utteranceQueue_.push(utterance);
389 var utterance = this.currentUtterance_;
396 if (utterance.properties['startCallback']) {
398 utterance.properties['startCallback']();
409 this.cancelUtterance_(utterance);
[all …]
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/speak_selection/
Dbackground.js18 function speak(utterance) { argument
19 if (speaking && utterance == lastUtterance) {
25 lastUtterance = utterance;
36 utterance,
/external/chromium_org/chrome/browser/chromeos/accessibility/
Dspeech_monitor.cc42 const std::string& utterance, in Speak() argument
49 static_cast<int>(utterance.size()), in Speak()
74 void SpeechMonitor::WillSpeakUtteranceWithVoice(const Utterance* utterance, in WillSpeakUtteranceWithVoice() argument
76 utterance_queue_.push_back(utterance->text()); in WillSpeakUtteranceWithVoice()
Dspoken_feedback_browsertest.cc111 std::string utterance = monitor.GetNextUtterance(); in IN_PROC_BROWSER_TEST_F() local
112 VLOG(0) << "Got utterance: " << utterance; in IN_PROC_BROWSER_TEST_F()
113 if (utterance == "Bookmarks,") in IN_PROC_BROWSER_TEST_F()
189 std::string utterance = monitor.GetNextUtterance(); in IN_PROC_BROWSER_TEST_P() local
190 VLOG(0) << "Got utterance: " << utterance; in IN_PROC_BROWSER_TEST_P()
191 if (utterance == "text box") in IN_PROC_BROWSER_TEST_P()
Dspeech_monitor.h35 const std::string& utterance,
48 const Utterance* utterance, const VoiceData& voice_data) OVERRIDE;
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/chromevox/background/
Daccessibility_api_handler.js384 this.tts.speak(description.utterance,
406 this.tts.speak(description.utterance,
490 this.tts.speak(description.utterance,
528 var utterance = this.idleSpeechQueue_.shift();
530 this.tts.speak(utterance,
692 description.utterance = s;
727 var utterance = '';
730 utterance += msg('page_has_one_alert_singular');
732 utterance += msg('page_has_alerts_plural',
737 utterance += ' ' + alerts[i].message;
[all …]
/external/chromium_org/content/public/common/
Dspeech_recognition_result.h17 base::string16 utterance; member
24 : utterance(utterance_value), in SpeechRecognitionHypothesis()
/external/chromium_org/content/browser/speech/
Dgoogle_one_shot_remote_engine_unittest.cc86 EXPECT_EQ(base::ASCIIToUTF16("123456"), result().hypotheses[0].utterance); in TEST_F()
96 EXPECT_EQ(base::ASCIIToUTF16("hello"), result().hypotheses[0].utterance); in TEST_F()
98 EXPECT_EQ(base::ASCIIToUTF16("123456"), result().hypotheses[1].utterance); in TEST_F()
/external/chromium_org/third_party/WebKit/Source/platform/speech/
DPlatformSpeechSynthesizer.cpp57 void PlatformSpeechSynthesizer::speak(PlatformSpeechSynthesisUtterance* utterance) in speak() argument
62 m_webSpeechSynthesizer->speak(blink::WebSpeechSynthesisUtterance(utterance)); in speak()

123