Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Side by Side Diff: chrome/browser/speech/tts_controller.cc

Issue 27034009: Implement Google network speech synthesis (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change client name, truncate utterance length Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/speech/tts_controller.h" 5 #include "chrome/browser/speech/tts_controller.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/float_util.h" 10 #include "base/float_util.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 volume(-1) {} 50 volume(-1) {}
51 51
52 52
53 // 53 //
54 // VoiceData 54 // VoiceData
55 // 55 //
56 56
57 57
58 VoiceData::VoiceData() 58 VoiceData::VoiceData()
59 : gender(TTS_GENDER_NONE), 59 : gender(TTS_GENDER_NONE),
60 remote(false),
60 native(false) {} 61 native(false) {}
61 62
62 VoiceData::~VoiceData() {} 63 VoiceData::~VoiceData() {}
63 64
64 65
65 // 66 //
66 // Utterance 67 // Utterance
67 // 68 //
68 69
69 // static 70 // static
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 } 409 }
409 410
410 void TtsController::AddVoicesChangedDelegate(VoicesChangedDelegate* delegate) { 411 void TtsController::AddVoicesChangedDelegate(VoicesChangedDelegate* delegate) {
411 voices_changed_delegates_.insert(delegate); 412 voices_changed_delegates_.insert(delegate);
412 } 413 }
413 414
414 void TtsController::RemoveVoicesChangedDelegate( 415 void TtsController::RemoveVoicesChangedDelegate(
415 VoicesChangedDelegate* delegate) { 416 VoicesChangedDelegate* delegate) {
416 voices_changed_delegates_.erase(delegate); 417 voices_changed_delegates_.erase(delegate);
417 } 418 }
418
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698