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 [ | 5 [ |
6 { | 6 { |
7 "namespace": "ttsEngine", | 7 "namespace": "ttsEngine", |
8 "functions": [ | 8 "functions": [ |
9 { | 9 { |
10 "name": "sendTtsEvent", | 10 "name": "sendTtsEvent", |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 "$ref": "tts.TtsEvent", | 89 "$ref": "tts.TtsEvent", |
90 "description": "The event from the text-to-speech engine indicat
ing the status of this utterance." | 90 "description": "The event from the text-to-speech engine indicat
ing the status of this utterance." |
91 } | 91 } |
92 ] | 92 ] |
93 } | 93 } |
94 ] | 94 ] |
95 }, | 95 }, |
96 { | 96 { |
97 "name": "onStop", | 97 "name": "onStop", |
98 "type": "function", | 98 "type": "function", |
99 "description": "Fired when a call is made to tts.stop and this extension
may be in the middle of speaking. If an extension receives a call to onStop and
speech is already stopped, it should do nothing (not raise an error)." | 99 "description": "Fired when a call is made to tts.stop and this extension
may be in the middle of speaking. If an extension receives a call to onStop and
speech is already stopped, it should do nothing (not raise an error). If speech
is in the paused state, this should cancel the paused state." |
| 100 }, |
| 101 { |
| 102 "name": "onPause", |
| 103 "type": "function", |
| 104 "description": "Optional: if an engine supports the pause event, it shou
ld pause the current utterance being spoken, if any, until it receives a resume
event or stop event. Note that a stop event should also clear the paused state." |
| 105 }, |
| 106 { |
| 107 "name": "onResume", |
| 108 "type": "function", |
| 109 "description": "Optional: if an engine supports the pause event, it shou
ld also support the resume event, to continue speaking the current utterance, if
any. Note that a stop event should also clear the paused state." |
100 } | 110 } |
101 ] | 111 ] |
102 } | 112 } |
103 ] | 113 ] |
OLD | NEW |