summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/cros/speech_synthesis_library.cc
blob: b70a45866e8859c9a9a48939f41c5e2b11637278 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/chromeos/cros/speech_synthesis_library.h"

#include "base/message_loop.h"
#include "chrome/browser/chrome_thread.h"
#include "chrome/browser/chromeos/cros/cros_library.h"
#include "third_party/cros/chromeos_speech_synthesis.h"

namespace chromeos {

bool SpeechSynthesisLibraryImpl::Speak(const char* text) {
  return chromeos::Speak(text);
}

bool SpeechSynthesisLibraryImpl::SetSpeakProperties(const char* props) {
  return chromeos::SetSpeakProperties(props);
}

bool SpeechSynthesisLibraryImpl::StopSpeaking() {
  return chromeos::StopSpeaking();
}

bool SpeechSynthesisLibraryImpl::IsSpeaking() {
  return chromeos::IsSpeaking();
}

void SpeechSynthesisLibraryImpl::InitTts(InitStatusCallback callback) {
  chromeos::InitTts(callback);
}

}  // namespace chromeos