| 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(); | |
| 77 utterance_queue_.push_back(utterance->text()); | 76 utterance_queue_.push_back(utterance->text()); |
| 78 if (loop_runner_.get()) | 77 if (loop_runner_.get()) |
| 79 loop_runner_->Quit(); | 78 loop_runner_->Quit(); |
| 80 } | 79 } |
| 81 | 80 |
| 82 } // namespace chromeos | 81 } // namespace chromeos |
| OLD | NEW |