OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/cros/speech_synthesis_library.h" | 5 #include "chrome/browser/chromeos/cros/speech_synthesis_library.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "chrome/browser/chrome_thread.h" | 8 #include "chrome/browser/chrome_thread.h" |
9 #include "chrome/browser/chromeos/cros/cros_library.h" | 9 #include "chrome/browser/chromeos/cros/cros_library.h" |
10 #include "third_party/cros/chromeos_speech_synthesis.h" | 10 #include "third_party/cros/chromeos_speech_synthesis.h" |
11 | 11 |
12 namespace chromeos { | 12 namespace chromeos { |
13 | 13 |
14 bool SpeechSynthesisLibraryImpl::Speak(const char* text) { | 14 bool SpeechSynthesisLibraryImpl::Speak(const char* text) { |
15 return chromeos::Speak(text); | 15 return chromeos::Speak(text); |
16 } | 16 } |
17 | 17 |
18 bool SpeechSynthesisLibraryImpl::SetSpeakProperties(const char* props) { | 18 bool SpeechSynthesisLibraryImpl::SetSpeakProperties(const char* props) { |
19 return chromeos::SetSpeakProperties(props); | 19 return chromeos::SetSpeakProperties(props); |
20 } | 20 } |
21 | 21 |
22 bool SpeechSynthesisLibraryImpl::StopSpeaking() { | 22 bool SpeechSynthesisLibraryImpl::StopSpeaking() { |
23 return chromeos::StopSpeaking(); | 23 return chromeos::StopSpeaking(); |
24 } | 24 } |
25 | 25 |
26 bool SpeechSynthesisLibraryImpl::IsSpeaking() { | 26 bool SpeechSynthesisLibraryImpl::IsSpeaking() { |
27 return chromeos::IsSpeaking(); | 27 return chromeos::IsSpeaking(); |
28 } | 28 } |
29 | 29 |
| 30 void SpeechSynthesisLibraryImpl::InitTts(InitStatusCallback callback) { |
| 31 chromeos::InitTts(callback); |
| 32 } |
| 33 |
30 } // namespace chromeos | 34 } // namespace chromeos |
OLD | NEW |