| 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 "dependencies": [ "tts" ], | 8 "dependencies": [ "tts" ], |
| 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" |
| 19 }, | 19 }, |
| 20 { | 20 { |
| 21 "name": "event", | 21 "name": "event", |
| 22 "$ref": "TtsEvent", | 22 "$ref": "tts.TtsEvent", |
| 23 "description": "The update event from the text-to-speech engine indi
cating the status of this utterance." | 23 "description": "The update event from the text-to-speech engine indi
cating the status of this utterance." |
| 24 } | 24 } |
| 25 ] | 25 ] |
| 26 } | 26 } |
| 27 ], | 27 ], |
| 28 "events": [ | 28 "events": [ |
| 29 { | 29 { |
| 30 "name": "onSpeak", | 30 "name": "onSpeak", |
| 31 "type": "function", | 31 "type": "function", |
| 32 "description": "Called when the user makes a call to tts.speak() and one
of the voices from this extension's manifest is the first to match the options
object.", | 32 "description": "Called when the user makes a call to tts.speak() and one
of the voices from this extension's manifest is the first to match the options
object.", |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 } | 80 } |
| 81 } | 81 } |
| 82 }, | 82 }, |
| 83 { | 83 { |
| 84 "name": "sendTtsEvent", | 84 "name": "sendTtsEvent", |
| 85 "type": "function", | 85 "type": "function", |
| 86 "description": "Call this function with events that occur in the pro
cess of speaking the utterance.", | 86 "description": "Call this function with events that occur in the pro
cess of speaking the utterance.", |
| 87 "parameters": [ | 87 "parameters": [ |
| 88 { | 88 { |
| 89 "name": "event", | 89 "name": "event", |
| 90 "$ref": "TtsEvent", | 90 "$ref": "tts.TtsEvent", |
| 91 "description": "The event from the text-to-speech engine indicat
ing the status of this utterance." | 91 "description": "The event from the text-to-speech engine indicat
ing the status of this utterance." |
| 92 } | 92 } |
| 93 ] | 93 ] |
| 94 } | 94 } |
| 95 ] | 95 ] |
| 96 }, | 96 }, |
| 97 { | 97 { |
| 98 "name": "onStop", | 98 "name": "onStop", |
| 99 "type": "function", | 99 "type": "function", |
| 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 "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)." |
| 101 } | 101 } |
| 102 ] | 102 ] |
| 103 } | 103 } |
| 104 ] | 104 ] |
| OLD | NEW |