Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: chrome/common/extensions/api/tts_engine.json

Issue 16876004: Updating JSON Schema Compiler to add description field to schemas. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (kalman) rebase Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/common/extensions/api/tts.json ('k') | chrome/common/extensions/api/types.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 packaged app uses the <a href='tts.html'>tts</a> API to generate speech. Your extension can then use any available web technology to synthesize and output the speech, and send events back to the calling functi on 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 "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."
105 }, 106 },
106 { 107 {
107 "name": "onResume", 108 "name": "onResume",
108 "type": "function", 109 "type": "function",
109 "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."
110 } 111 }
111 ] 112 ]
112 } 113 }
113 ] 114 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/tts.json ('k') | chrome/common/extensions/api/types.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698