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 "description": "Use the <code>chrome.ttsEngine</code> API to implement a tex
t-to-speech(TTS) engine using an extension. If your extension registers using th
is API, it will receive events containing an utterance to be spoken and other pa
rameters when any extension or packaged app uses the <a href='tts.html'>tts</a>
API to generate speech. Your extension can then use any available web technology
to synthesize and output the speech, and send events back to the calling functi
on to report the status.", |
8 "functions": [ | 9 "functions": [ |
9 { | 10 { |
10 "name": "sendTtsEvent", | 11 "name": "sendTtsEvent", |
11 "nodoc": true, | 12 "nodoc": true, |
12 "type": "function", | 13 "type": "function", |
13 "description": "Routes a TTS event from a speech engine to a client.", | 14 "description": "Routes a TTS event from a speech engine to a client.", |
14 "parameters": [ | 15 "parameters": [ |
15 { | 16 { |
16 "type": "integer", | 17 "type": "integer", |
17 "name": "requestId" | 18 "name": "requestId" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 "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 }, |
106 { | 107 { |
107 "name": "onResume", | 108 "name": "onResume", |
108 "type": "function", | 109 "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." | 110 "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." |
110 } | 111 } |
111 ] | 112 ] |
112 } | 113 } |
113 ] | 114 ] |
OLD | NEW |