OLD | NEW |
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 #ifndef CHROME_BROWSER_SPEECH_TTS_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_SPEECH_TTS_CONTROLLER_H_ |
6 #define CHROME_BROWSER_SPEECH_TTS_CONTROLLER_H_ | 6 #define CHROME_BROWSER_SPEECH_TTS_CONTROLLER_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 UtteranceContinuousParameters(); | 55 UtteranceContinuousParameters(); |
56 | 56 |
57 double rate; | 57 double rate; |
58 double pitch; | 58 double pitch; |
59 double volume; | 59 double volume; |
60 }; | 60 }; |
61 | 61 |
62 // Information about one voice. | 62 // Information about one voice. |
63 struct VoiceData { | 63 struct VoiceData { |
64 VoiceData(); | 64 VoiceData(); |
| 65 VoiceData(const VoiceData& other); |
65 ~VoiceData(); | 66 ~VoiceData(); |
66 | 67 |
67 std::string name; | 68 std::string name; |
68 std::string lang; | 69 std::string lang; |
69 TtsGenderType gender; | 70 TtsGenderType gender; |
70 std::string extension_id; | 71 std::string extension_id; |
71 std::set<TtsEventType> events; | 72 std::set<TtsEventType> events; |
72 | 73 |
73 // If true, the synthesis engine is a remote network resource. | 74 // If true, the synthesis engine is a remote network resource. |
74 // It may be higher latency and may incur bandwidth costs. | 75 // It may be higher latency and may incur bandwidth costs. |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 | 335 |
335 // For unit testing. | 336 // For unit testing. |
336 virtual void SetPlatformImpl(TtsPlatformImpl* platform_impl) = 0; | 337 virtual void SetPlatformImpl(TtsPlatformImpl* platform_impl) = 0; |
337 virtual int QueueSize() = 0; | 338 virtual int QueueSize() = 0; |
338 | 339 |
339 protected: | 340 protected: |
340 virtual ~TtsController() {} | 341 virtual ~TtsController() {} |
341 }; | 342 }; |
342 | 343 |
343 #endif // CHROME_BROWSER_SPEECH_TTS_CONTROLLER_H_ | 344 #endif // CHROME_BROWSER_SPEECH_TTS_CONTROLLER_H_ |
OLD | NEW |