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

Unified Diff: chrome/common/extensions/api/tts.json

Issue 15108002: Add Pause and Resume to Web TTS & Extension TTS APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 7 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/browser/speech/tts_win.cc ('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 3b2abf240c35e045a07b612fc2a72908f1afc1e3..49bd4b295558f872edbfc366c79b7c9cf120a2d2 100644
--- a/chrome/common/extensions/api/tts.json
+++ b/chrome/common/extensions/api/tts.json
@@ -13,8 +13,8 @@
"properties": {
"type": {
"type": "string",
- "enum": ["start", "end", "word", "sentence", "marker", "interrupted", "cancelled", "error"],
- "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."
+ "enum": ["start", "end", "word", "sentence", "marker", "interrupted", "cancelled", "error", "pause", "resume"],
+ "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": {
"type": "number",
@@ -177,7 +177,19 @@
{
"name": "stop",
"type": "function",
- "description": "Stops any current speech.",
+ "description": "Stops any current speech and flushes the queue of any pending utterances. In addition, if speech was paused, it will now be un-paused for the next call to speak.",
+ "parameters": []
+ },
+ {
+ "name": "pause",
+ "type": "function",
+ "description": "Pauses speech synthesis, potentially in the middle of an utterance. A call to resume or stop will un-pause speech.",
+ "parameters": []
+ },
+ {
+ "name": "resume",
+ "type": "function",
+ "description": "If speech was paused, resumes speaking where it left off.",
"parameters": []
},
{
« no previous file with comments | « chrome/browser/speech/tts_win.cc ('k') | chrome/common/extensions/api/tts_engine.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698