is_default(false) {
}
-TtsVoice::TtsVoice(std::string voice_uri, std::string name, std::string lang,
- bool local_service, bool is_default)
- : voice_uri(voice_uri),
- name(name),
- lang(lang),
- local_service(local_service),
- is_default(is_default) {
-}
-
TtsVoice::~TtsVoice() {
}
using blink::WebString;
using blink::WebVector;
-namespace {
-
-static const std::vector<TtsVoice>& getDefaultVoiceList() {
- static std::vector<TtsVoice> default_voices(
- 1, TtsVoice("localhost:Female/en_US", "Female", "en_US", false, false));
-
- return default_voices;
-}
-
-} // namespace
-
int TtsDispatcher::next_utterance_id_ = 1;
TtsDispatcher::TtsDispatcher(WebSpeechSynthesizerClient* client)
: synthesizer_client_(client) {
RenderThread::Get()->AddObserver(this);
- OnSetVoiceList(getDefaultVoiceList());
}
TtsDispatcher::~TtsDispatcher() {