Revert "Set Default TTS voice as Female/en_US" 86/184986/3
authorVenugopal Muruganathan <sm.venugopal@samsung.com>
Wed, 25 Jul 2018 03:55:58 +0000 (03:55 +0000)
committerjaekuk lee <juku1999@samsung.com>
Wed, 25 Jul 2018 06:12:01 +0000 (06:12 +0000)
This change is not needed. On tizen, we need to use CAPI framework for
TTS.

This reverts commit 6f627f5360b740e5a2c4211d743dd190af7b8202.

Change-Id: I4ba520063aa0b04d8fc4a48c03a20b01de1a4ab3
Signed-off-by: Venugopal S M <sm.venugopal@samsung.com>
chromium_src/chrome/common/tts_utterance_request.cc
chromium_src/chrome/common/tts_utterance_request.h
chromium_src/chrome/renderer/tts_dispatcher.cc

index bb16da9..a2e3e7f 100644 (file)
@@ -19,15 +19,6 @@ TtsVoice::TtsVoice()
       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() {
 }
 
index 1c5e829..a4b4cab 100644 (file)
@@ -25,8 +25,6 @@ struct TtsUtteranceRequest {
 
 struct TtsVoice {
   TtsVoice();
-  TtsVoice(std::string voice_uri, std::string name, std::string lang,
-           bool local_service, bool is_default);
   ~TtsVoice();
 
   std::string voice_uri;
index e574de0..0d3b97c 100644 (file)
@@ -21,23 +21,11 @@ using blink::WebSpeechSynthesisVoice;
 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() {