Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
|
Luis Héctor Chávez
2016/07/26 22:48:11
// Next MinVersion=1
David Tseng
2016/07/27 22:50:59
Done.
| |
| 4 | |
| 5 module arc.mojom; | |
| 6 | |
| 7 enum TtsEventType { | |
|
Luis Héctor Chávez
2016/07/26 22:48:11
Can this change in the future? If so, please add a
David Tseng
2016/07/27 22:50:59
Done.
| |
| 8 START = 0, | |
| 9 END, | |
| 10 INTERRUPTED, | |
| 11 ERROR | |
| 12 }; | |
| 13 | |
| 14 // Represents a tts utterance sent from Chrome to Android. | |
| 15 struct TtsUtterance { | |
| 16 uint32 utteranceId; | |
| 17 string text; | |
| 18 double rate; | |
| 19 double pitch; | |
| 20 }; | |
| 21 | |
| 22 interface TtsHost { | |
|
Luis Héctor Chávez
2016/07/26 22:48:11
// Next Method ID: 1
David Tseng
2016/07/27 22:50:59
Done.
| |
| 23 // Notifies Chrome of Android tts events. | |
| 24 OnTtsEvent(uint32 utteranceId, TtsEventType event_type); | |
|
hidehiko
2016/07/26 17:59:18
Could you add @ index? Ditto for TtsInstance's met
David Tseng
2016/07/27 22:50:59
Done.
| |
| 25 }; | |
| 26 | |
| 27 interface TtsInstance { | |
|
Luis Héctor Chávez
2016/07/26 22:48:11
// Next Method ID: 3
David Tseng
2016/07/27 22:50:59
Done.
| |
| 28 // Establishes full-duplex communication with the host. | |
| 29 Init(TtsHost host_ptr); | |
| 30 | |
| 31 // Sends an utterance to Android for synthesis. | |
| 32 Speak(TtsUtterance utterance); | |
| 33 | |
| 34 // Sends a stop request to Android text to speech. | |
| 35 Stop(); | |
| 36 }; | |
| OLD | NEW |