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> module to play synthesized t
ext-to-speech (TTS). See also the related <a href='http://developer.chrome.com/e
xtensions/ttsEngine.html'>ttsEngine</a> module, which allows an extension to imp
lement a speech engine.", |
8 "types": [ | 9 "types": [ |
9 { | 10 { |
10 "id": "TtsEvent", | 11 "id": "TtsEvent", |
11 "type": "object", | 12 "type": "object", |
12 "description": "An event from the TTS engine to communicate the status o
f an utterance.", | 13 "description": "An event from the TTS engine to communicate the status o
f an utterance.", |
13 "properties": { | 14 "properties": { |
14 "type": { | 15 "type": { |
15 "type": "string", | 16 "type": "string", |
16 "enum": ["start", "end", "word", "sentence", "marker", "interrupted"
, "cancelled", "error", "pause", "resume"], | 17 "enum": ["start", "end", "word", "sentence", "marker", "interrupted"
, "cancelled", "error", "pause", "resume"], |
17 "description": "The type can be 'start' as soon as speech has starte
d, 'word' when a word boundary is reached, 'sentence' when a sentence boundary i
s reached, 'marker' when an SSML mark element is reached, 'end' when the end of
the utterance is reached, 'interrupted' when the utterance is stopped or interru
pted before reaching the end, 'cancelled' when it's removed from the queue befor
e ever being synthesized, or 'error' when any other error occurs. When pausing s
peech, a 'pause' event is fired if a particular utterance is paused in the middl
e, and 'resume' if an utterance resumes speech. Note that pause and resume event
s may not fire if speech is paused in-between utterances." | 18 "description": "The type can be 'start' as soon as speech has starte
d, 'word' when a word boundary is reached, 'sentence' when a sentence boundary i
s reached, 'marker' when an SSML mark element is reached, 'end' when the end of
the utterance is reached, 'interrupted' when the utterance is stopped or interru
pted before reaching the end, 'cancelled' when it's removed from the queue befor
e ever being synthesized, or 'error' when any other error occurs. When pausing s
peech, a 'pause' event is fired if a particular utterance is paused in the middl
e, and 'resume' if an utterance resumes speech. Note that pause and resume event
s may not fire if speech is paused in-between utterances." |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 "name": "event", | 243 "name": "event", |
243 "$ref": "TtsEvent", | 244 "$ref": "TtsEvent", |
244 "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." |
245 } | 246 } |
246 ], | 247 ], |
247 "description": "Used to pass events back to the function calling speak()
." | 248 "description": "Used to pass events back to the function calling speak()
." |
248 } | 249 } |
249 ] | 250 ] |
250 } | 251 } |
251 ] | 252 ] |
OLD | NEW |