OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/accessibility/speech_monitor.h" | 5 #include "chrome/browser/chromeos/accessibility/speech_monitor.h" |
6 | 6 |
7 namespace chromeos { | 7 namespace chromeos { |
8 | 8 |
9 namespace { | 9 namespace { |
10 const char kChromeVoxEnabledMessage[] = "chrome vox spoken feedback is ready"; | 10 const char kChromeVoxEnabledMessage[] = "chrome vox spoken feedback is ready"; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
66 voice.name = "SpeechMonitor"; | 66 voice.name = "SpeechMonitor"; |
67 voice.events.insert(TTS_EVENT_END); | 67 voice.events.insert(TTS_EVENT_END); |
68 } | 68 } |
69 | 69 |
70 std::string SpeechMonitor::error() { | 70 std::string SpeechMonitor::error() { |
71 return ""; | 71 return ""; |
72 } | 72 } |
73 | 73 |
74 void SpeechMonitor::WillSpeakUtteranceWithVoice(const Utterance* utterance, | 74 void SpeechMonitor::WillSpeakUtteranceWithVoice(const Utterance* utterance, |
75 const VoiceData& voice_data) { | 75 const VoiceData& voice_data) { |
76 VLOG(0) << "Speaking " << utterance->text(); | |
David Tseng
2015/01/27 18:16:45
nit: remove
dmazzoni
2015/01/27 18:38:44
I'm okay with leaving it as a VLOG, but I learned
| |
76 utterance_queue_.push_back(utterance->text()); | 77 utterance_queue_.push_back(utterance->text()); |
77 if (loop_runner_.get()) | 78 if (loop_runner_.get()) |
78 loop_runner_->Quit(); | 79 loop_runner_->Quit(); |
79 } | 80 } |
80 | 81 |
81 } // namespace chromeos | 82 } // namespace chromeos |
OLD | NEW |