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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 struct VoiceData { | 59 struct VoiceData { |
60 VoiceData(); | 60 VoiceData(); |
61 ~VoiceData(); | 61 ~VoiceData(); |
62 | 62 |
63 std::string name; | 63 std::string name; |
64 std::string lang; | 64 std::string lang; |
65 TtsGenderType gender; | 65 TtsGenderType gender; |
66 std::string extension_id; | 66 std::string extension_id; |
67 std::set<TtsEventType> events; | 67 std::set<TtsEventType> events; |
68 | 68 |
69 // If true, the synthesis engine is a remote network resource. | |
70 // It may be higher latency and may incur bandwidth costs. | |
71 bool remote; | |
72 | |
73 // If true, this is implemented by this platform's subclass of | 69 // If true, this is implemented by this platform's subclass of |
74 // TtsPlatformImpl. If false, this is implemented by an extension. | 70 // TtsPlatformImpl. If false, this is implemented by an extension. |
75 bool native; | 71 bool native; |
76 std::string native_voice_identifier; | 72 std::string native_voice_identifier; |
77 }; | 73 }; |
78 | 74 |
79 // Class that wants to receive events on utterances. | 75 // Class that wants to receive events on utterances. |
80 class UtteranceEventDelegate { | 76 class UtteranceEventDelegate { |
81 public: | 77 public: |
82 virtual ~UtteranceEventDelegate() {} | 78 virtual ~UtteranceEventDelegate() {} |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 std::set<VoicesChangedDelegate*> voices_changed_delegates_; | 337 std::set<VoicesChangedDelegate*> voices_changed_delegates_; |
342 | 338 |
343 // A pointer to the platform implementation of text-to-speech, for | 339 // A pointer to the platform implementation of text-to-speech, for |
344 // dependency injection. | 340 // dependency injection. |
345 TtsPlatformImpl* platform_impl_; | 341 TtsPlatformImpl* platform_impl_; |
346 | 342 |
347 DISALLOW_COPY_AND_ASSIGN(TtsController); | 343 DISALLOW_COPY_AND_ASSIGN(TtsController); |
348 }; | 344 }; |
349 | 345 |
350 #endif // CHROME_BROWSER_SPEECH_TTS_CONTROLLER_H_ | 346 #endif // CHROME_BROWSER_SPEECH_TTS_CONTROLLER_H_ |
OLD | NEW |