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

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

Issue 2257003002: [Extensions] Generate all schema resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment Created 4 years, 4 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_private.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 Chrome App uses the <a href='tts'>tts</a> API to generate speech. Your extension can then use any available web technology to syn thesize and output the speech, and send events back to the calling function to r eport the status.", 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 Chrome App uses the <a href='tts'>tts</a> API to generate speech. Your extension can then use any available web technology to syn thesize and output the speech, and send events back to the calling function to r eport the status.",
9 "types": [
10 {
11 "id": "VoiceGender",
12 "type": "string",
13 "enum": ["male", "female"]
14 }
15 ],
9 "functions": [ 16 "functions": [
10 { 17 {
11 "name": "sendTtsEvent", 18 "name": "sendTtsEvent",
12 "nodoc": true, 19 "nodoc": true,
13 "type": "function", 20 "type": "function",
14 "description": "Routes a TTS event from a speech engine to a client.", 21 "description": "Routes a TTS event from a speech engine to a client.",
15 "parameters": [ 22 "parameters": [
16 { 23 {
17 "type": "integer", 24 "type": "integer",
18 "name": "requestId" 25 "name": "requestId"
(...skipping 26 matching lines...) Expand all
45 "type": "string", 52 "type": "string",
46 "optional": true, 53 "optional": true,
47 "description": "The name of the voice to use for synthesis." 54 "description": "The name of the voice to use for synthesis."
48 }, 55 },
49 "lang": { 56 "lang": {
50 "type": "string", 57 "type": "string",
51 "optional": true, 58 "optional": true,
52 "description": "The language to be used for synthesis, in the fo rm <em>language</em>-<em>region</em>. Examples: 'en', 'en-US', 'en-GB', 'zh-CN'. " 59 "description": "The language to be used for synthesis, in the fo rm <em>language</em>-<em>region</em>. Examples: 'en', 'en-US', 'en-GB', 'zh-CN'. "
53 }, 60 },
54 "gender": { 61 "gender": {
55 "type": "string", 62 "$ref": "VoiceGender",
56 "optional": true, 63 "optional": true,
57 "description": "Gender of voice for synthesized speech.", 64 "description": "Gender of voice for synthesized speech."
58 "enum": ["male", "female"]
59 }, 65 },
60 "rate": { 66 "rate": {
61 "type": "number", 67 "type": "number",
62 "optional": true, 68 "optional": true,
63 "minimum": 0.1, 69 "minimum": 0.1,
64 "maximum": 10.0, 70 "maximum": 10.0,
65 "description": "Speaking rate relative to the default rate for t his voice. 1.0 is the default rate, normally around 180 to 220 words per minute. 2.0 is twice as fast, and 0.5 is half as fast. This value is guaranteed to be b etween 0.1 and 10.0, inclusive. When a voice does not support this full range of rates, don't return an error. Instead, clip the rate to the range the voice sup ports." 71 "description": "Speaking rate relative to the default rate for t his voice. 1.0 is the default rate, normally around 180 to 220 words per minute. 2.0 is twice as fast, and 0.5 is half as fast. This value is guaranteed to be b etween 0.1 and 10.0, inclusive. When a voice does not support this full range of rates, don't return an error. Instead, clip the rate to the range the voice sup ports."
66 }, 72 },
67 "pitch": { 73 "pitch": {
68 "type": "number", 74 "type": "number",
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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." 111 "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."
106 }, 112 },
107 { 113 {
108 "name": "onResume", 114 "name": "onResume",
109 "type": "function", 115 "type": "function",
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." 116 "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."
111 } 117 }
112 ] 118 ]
113 } 119 }
114 ] 120 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/tts.json ('k') | chrome/common/extensions/api/types_private.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698