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> module to implement a
text-to-speech(TTS) engine using an extension. If your extension registers using
this API, it will receive events containing an utterance to be spoken and other
parameters when any extension or packaged app uses the <a href='tts.html'>tts</
a> module to generate speech. Your extension can then use any available web tech
nology to synthesize and output the speech, and send events back to the calling
function 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 ] | 95 ] |
95 }, | 96 }, |
96 { | 97 { |
97 "name": "onStop", | 98 "name": "onStop", |
98 "type": "function", | 99 "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)." | 100 "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)." |
100 } | 101 } |
101 ] | 102 ] |
102 } | 103 } |
103 ] | 104 ] |
OLD | NEW |