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": "tts", | 7 "namespace": "tts", |
8 "description": "Use the <code>chrome.tts</code> API to play synthesized text
-to-speech (TTS). See also the related <a href='http://developer.chrome.com/exte
nsions/ttsEngine.html'>ttsEngine</a> API, which allows an extension to implement
a speech engine.", | 8 "description": "Use the <code>chrome.tts</code> API to play synthesized text
-to-speech (TTS). See also the related <a href='http://developer.chrome.com/exte
nsions/ttsEngine.html'>ttsEngine</a> API, which allows an extension to implement
a speech engine.", |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 "type": "string", | 55 "type": "string", |
56 "optional": true, | 56 "optional": true, |
57 "description": "The language that this voice supports, in the form <
em>language</em>-<em>region</em>. Examples: 'en', 'en-US', 'en-GB', 'zh-CN'." | 57 "description": "The language that this voice supports, in the form <
em>language</em>-<em>region</em>. Examples: 'en', 'en-US', 'en-GB', 'zh-CN'." |
58 }, | 58 }, |
59 "gender": { | 59 "gender": { |
60 "type": "string", | 60 "type": "string", |
61 "optional": true, | 61 "optional": true, |
62 "description": "This voice's gender.", | 62 "description": "This voice's gender.", |
63 "enum": ["male", "female"] | 63 "enum": ["male", "female"] |
64 }, | 64 }, |
65 "remote": { | |
66 "type": "boolean", | |
67 "optional": true, | |
68 "description": "If true, the synthesis engine is a remote network re
source. It may be higher latency and may incur bandwidth costs." | |
69 }, | |
70 "extensionId": { | 65 "extensionId": { |
71 "type": "string", | 66 "type": "string", |
72 "optional": true, | 67 "optional": true, |
73 "description": "The ID of the extension providing this voice." | 68 "description": "The ID of the extension providing this voice." |
74 }, | 69 }, |
75 "eventTypes": { | 70 "eventTypes": { |
76 "type": "array", | 71 "type": "array", |
77 "items": {"type": "string"}, | 72 "items": {"type": "string"}, |
78 "optional": true, | 73 "optional": true, |
79 "description": "All of the callback event types that this voice is c
apable of sending." | 74 "description": "All of the callback event types that this voice is c
apable of sending." |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 "name": "event", | 243 "name": "event", |
249 "$ref": "TtsEvent", | 244 "$ref": "TtsEvent", |
250 "description": "The event from the text-to-speech engine indicating
the status of this utterance." | 245 "description": "The event from the text-to-speech engine indicating
the status of this utterance." |
251 } | 246 } |
252 ], | 247 ], |
253 "description": "Used to pass events back to the function calling speak()
." | 248 "description": "Used to pass events back to the function calling speak()
." |
254 } | 249 } |
255 ] | 250 ] |
256 } | 251 } |
257 ] | 252 ] |
OLD | NEW |