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

Unified Diff: chrome/common/extensions/api/tts.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/schemas.gypi ('k') | chrome/common/extensions/api/tts_engine.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/tts.json
diff --git a/chrome/common/extensions/api/tts.json b/chrome/common/extensions/api/tts.json
index 8bc8a08198e3a37b6aa374550863f8bb2f85de3b..d119b9cb87c92ca83d4f469221bb4c478ba60a15 100644
--- a/chrome/common/extensions/api/tts.json
+++ b/chrome/common/extensions/api/tts.json
@@ -8,13 +8,22 @@
"description": "Use the <code>chrome.tts</code> API to play synthesized text-to-speech (TTS). See also the related <a href='http://developer.chrome.com/extensions/ttsEngine'>ttsEngine</a> API, which allows an extension to implement a speech engine.",
"types": [
{
+ "id": "EventType",
+ "type": "string",
+ "enum": ["start", "end", "word", "sentence", "marker", "interrupted", "cancelled", "error", "pause", "resume"]
+ },
+ {
+ "id": "VoiceGender",
+ "type": "string",
+ "enum": ["male", "female"]
+ },
+ {
"id": "TtsEvent",
"type": "object",
"description": "An event from the TTS engine to communicate the status of an utterance.",
"properties": {
"type": {
- "type": "string",
- "enum": ["start", "end", "word", "sentence", "marker", "interrupted", "cancelled", "error", "pause", "resume"],
+ "$ref": "EventType",
"description": "The type can be 'start' as soon as speech has started, 'word' when a word boundary is reached, 'sentence' when a sentence boundary is 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 interrupted before reaching the end, 'cancelled' when it's removed from the queue before ever being synthesized, or 'error' when any other error occurs. When pausing speech, a 'pause' event is fired if a particular utterance is paused in the middle, and 'resume' if an utterance resumes speech. Note that pause and resume events may not fire if speech is paused in-between utterances."
},
"charIndex": {
@@ -57,10 +66,9 @@
"description": "The language that this voice supports, 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": "This voice's gender.",
- "enum": ["male", "female"]
+ "description": "This voice's gender."
},
"remote": {
"type": "boolean",
@@ -119,10 +127,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/schemas.gypi ('k') | chrome/common/extensions/api/tts_engine.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698