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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/tts_engine.json
diff --git a/chrome/common/extensions/api/tts_engine.json b/chrome/common/extensions/api/tts_engine.json
index 7f0e24eae7a725d10f87d88c646146130c03baa1..ed5b64ffb1af909e9eb8df86e48b77d6d69bc193 100644
--- a/chrome/common/extensions/api/tts_engine.json
+++ b/chrome/common/extensions/api/tts_engine.json
@@ -6,6 +6,13 @@
{
"namespace": "ttsEngine",
"description": "Use the <code>chrome.ttsEngine</code> API to implement a text-to-speech(TTS) engine using an extension. If your extension registers using this API, it will receive events containing an utterance to be spoken and other parameters 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 synthesize and output the speech, and send events back to the calling function to report the status.",
+ "types": [
+ {
+ "id": "VoiceGender",
+ "type": "string",
+ "enum": ["male", "female"]
+ }
+ ],
"functions": [
{
"name": "sendTtsEvent",
@@ -52,10 +59,9 @@
"description": "The language to be used for synthesis, in the form <em>language</em>-<em>region</em>. Examples: 'en', 'en-US', 'en-GB', 'zh-CN'."
},
"gender": {
- "type": "string",
+ "$ref": "VoiceGender",
"optional": true,
- "description": "Gender of voice for synthesized speech.",
- "enum": ["male", "female"]
+ "description": "Gender of voice for synthesized speech."
},
"rate": {
"type": "number",
« 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