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 Chrome App uses the <a href='tts.html'>tts</a> AP
I to generate speech. Your extension can then use any available web technology t
o synthesize and output the speech, and send events back to the calling function
to report the status.", | 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 Chrome App uses the <a href='tts'>tts</a> API to
generate speech. Your extension can then use any available web technology to syn
thesize and output the speech, and send events back to the calling function to r
eport the status.", |
9 "functions": [ | 9 "functions": [ |
10 { | 10 { |
11 "name": "sendTtsEvent", | 11 "name": "sendTtsEvent", |
12 "nodoc": true, | 12 "nodoc": true, |
13 "type": "function", | 13 "type": "function", |
14 "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.", |
15 "parameters": [ | 15 "parameters": [ |
16 { | 16 { |
17 "type": "integer", | 17 "type": "integer", |
18 "name": "requestId" | 18 "name": "requestId" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 "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." |
106 }, | 106 }, |
107 { | 107 { |
108 "name": "onResume", | 108 "name": "onResume", |
109 "type": "function", | 109 "type": "function", |
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 "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." |
111 } | 111 } |
112 ] | 112 ] |
113 } | 113 } |
114 ] | 114 ] |
OLD | NEW |