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

Unified Diff: chrome/common/extensions/docs/experimental.speechInput.html

Issue 8201030: Introducing the basic functionality to the speech input experimental API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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
Index: chrome/common/extensions/docs/experimental.speechInput.html
diff --git a/chrome/common/extensions/docs/experimental.speechInput.html b/chrome/common/extensions/docs/experimental.speechInput.html
index c6103b4ba8d2b05f2e360370ad296965c1951465..e4b2ae8361df1b72fbb408cc0a5950161c15f9af 100644
--- a/chrome/common/extensions/docs/experimental.speechInput.html
+++ b/chrome/common/extensions/docs/experimental.speechInput.html
@@ -293,11 +293,11 @@
<li>
<a href="#event-onError">onError</a>
</li><li>
- <a href="#event-onResult">onResult</a>
- </li><li>
<a href="#event-onSoundEnd">onSoundEnd</a>
</li><li>
<a href="#event-onSoundStart">onSoundStart</a>
+ </li><li>
+ <a href="#event-onSpeechResult">onSpeechResult</a>
</li>
</ol>
</li>
@@ -1001,90 +1001,25 @@
</div> <!-- /description -->
</div><div class="apiItem">
- <a name="event-onResult"></a>
- <h4>onResult</h4>
+ <a name="event-onSoundEnd"></a>
+ <h4>onSoundEnd</h4>
<div class="summary">
<!-- Note: intentionally longer 80 columns -->
- <span class="subdued">chrome.experimental.speechInput.</span><span>onResult</span><span class="subdued">.addListener</span>(function(<span>SpeechResultEvent event</span>) <span class="subdued">{...}</span><span></span>);
+ <span class="subdued">chrome.experimental.speechInput.</span><span>onSoundEnd</span><span class="subdued">.addListener</span>(function(<span></span>) <span class="subdued">{...}</span><span></span>);
</div>
<div class="description">
<p class="todo" style="display: none; ">Undocumented.</p>
- <p>Called when speech recognition results are available.</p>
+ <p>Called when the system detects enough silence to consider the ongoing input has ended.</p>
Satish 2011/10/08 23:15:07 input -> speech
Leandro GraciĆ” Gil 2011/10/09 10:29:21 Done.
<!-- LISTENER PARAMETERS -->
- <div>
+ <div style="display: none; ">
<h4>Listener parameters</h4>
<dl>
<div>
<div>
- <dt>
- <var>event</var>
- <em>
-
- <!-- TYPE -->
- <div style="display:inline">
- (
- <span class="optional" style="display: none; ">optional</span>
- <span class="enum" style="display: none; ">enumerated</span>
- <span id="typeTemplate">
- <span>
- <a href="experimental.speechInput.html#type-SpeechResultEvent">SpeechResultEvent</a>
- </span>
- <span style="display: none; ">
- <span>
- array of <span><span></span></span>
- </span>
- <span>paramType</span>
- <span></span>
- </span>
- </span>
- )
- </div>
-
- </em>
- </dt>
- <dd class="todo" style="display: none; ">
- Undocumented.
- </dd>
- <dd>Object containing the speech recognition results.</dd>
- <dd style="display: none; ">
- This parameter was added in version
- <b><span></span></b>.
- You must omit this parameter in earlier versions,
- and you may omit it in any version. If you require this
- parameter, the manifest key
- <a href="manifest.html#minimum_chrome_version">minimum_chrome_version</a>
- can ensure that your extension won't be run in an earlier browser version.
- </dd>
-
- <!-- OBJECT PROPERTIES -->
- <dd style="display: none; ">
- <dl>
- <div>
- <div>
- </div>
- </div>
- </dl>
- </dd>
-
- <!-- OBJECT METHODS -->
- <dd style="display: none; ">
- <div></div>
- </dd>
-
- <!-- OBJECT EVENT FIELDS -->
- <dd style="display: none; ">
- <div></div>
- </dd>
-
- <!-- FUNCTION PARAMETERS -->
- <dd style="display: none; ">
- <div></div>
- </dd>
-
- </div>
+ </div>
</div>
</dl>
</div>
@@ -1111,17 +1046,17 @@
</div> <!-- /description -->
</div><div class="apiItem">
- <a name="event-onSoundEnd"></a>
- <h4>onSoundEnd</h4>
+ <a name="event-onSoundStart"></a>
+ <h4>onSoundStart</h4>
<div class="summary">
<!-- Note: intentionally longer 80 columns -->
- <span class="subdued">chrome.experimental.speechInput.</span><span>onSoundEnd</span><span class="subdued">.addListener</span>(function(<span></span>) <span class="subdued">{...}</span><span></span>);
+ <span class="subdued">chrome.experimental.speechInput.</span><span>onSoundStart</span><span class="subdued">.addListener</span>(function(<span></span>) <span class="subdued">{...}</span><span></span>);
</div>
<div class="description">
<p class="todo" style="display: none; ">Undocumented.</p>
- <p>Called when the system detects enough silence to consider the ongoing input has ended.</p>
+ <p>Called when the system starts detecting sound in the input data.</p>
<!-- LISTENER PARAMETERS -->
<div style="display: none; ">
@@ -1156,25 +1091,90 @@
</div> <!-- /description -->
</div><div class="apiItem">
- <a name="event-onSoundStart"></a>
- <h4>onSoundStart</h4>
+ <a name="event-onSpeechResult"></a>
+ <h4>onSpeechResult</h4>
<div class="summary">
<!-- Note: intentionally longer 80 columns -->
- <span class="subdued">chrome.experimental.speechInput.</span><span>onSoundStart</span><span class="subdued">.addListener</span>(function(<span></span>) <span class="subdued">{...}</span><span></span>);
+ <span class="subdued">chrome.experimental.speechInput.</span><span>onSpeechResult</span><span class="subdued">.addListener</span>(function(<span>SpeechResultEvent event</span>) <span class="subdued">{...}</span><span></span>);
</div>
<div class="description">
<p class="todo" style="display: none; ">Undocumented.</p>
- <p>Called when the system starts detecting sound in the input data.</p>
+ <p>Called when speech recognition results are available.</p>
<!-- LISTENER PARAMETERS -->
- <div style="display: none; ">
+ <div>
<h4>Listener parameters</h4>
<dl>
<div>
<div>
- </div>
+ <dt>
+ <var>event</var>
+ <em>
+
+ <!-- TYPE -->
+ <div style="display:inline">
+ (
+ <span class="optional" style="display: none; ">optional</span>
+ <span class="enum" style="display: none; ">enumerated</span>
+ <span id="typeTemplate">
+ <span>
+ <a href="experimental.speechInput.html#type-SpeechResultEvent">SpeechResultEvent</a>
+ </span>
+ <span style="display: none; ">
+ <span>
+ array of <span><span></span></span>
+ </span>
+ <span>paramType</span>
+ <span></span>
+ </span>
+ </span>
+ )
+ </div>
+
+ </em>
+ </dt>
+ <dd class="todo" style="display: none; ">
+ Undocumented.
+ </dd>
+ <dd>Object containing the speech recognition results.</dd>
+ <dd style="display: none; ">
+ This parameter was added in version
+ <b><span></span></b>.
+ You must omit this parameter in earlier versions,
+ and you may omit it in any version. If you require this
+ parameter, the manifest key
+ <a href="manifest.html#minimum_chrome_version">minimum_chrome_version</a>
+ can ensure that your extension won't be run in an earlier browser version.
+ </dd>
+
+ <!-- OBJECT PROPERTIES -->
+ <dd style="display: none; ">
+ <dl>
+ <div>
+ <div>
+ </div>
+ </div>
+ </dl>
+ </dd>
+
+ <!-- OBJECT METHODS -->
+ <dd style="display: none; ">
+ <div></div>
+ </dd>
+
+ <!-- OBJECT EVENT FIELDS -->
+ <dd style="display: none; ">
+ <div></div>
+ </dd>
+
+ <!-- FUNCTION PARAMETERS -->
+ <dd style="display: none; ">
+ <div></div>
+ </dd>
+
+ </div>
</div>
</dl>
</div>
@@ -1425,7 +1425,7 @@
<dd class="todo" style="display: none; ">
Undocumented.
</dd>
- <dd>Enable or disable profanity filtering. Will use the default Chrome filtering settings if not provided.</dd>
+ <dd>Enable or disable profanity filtering. Will use the default Chrome filtering settings if not set.</dd>
<dd style="display: none; ">
This parameter was added in version
<b><span></span></b>.
@@ -1551,7 +1551,7 @@
array of <span><span></span></span>
</span>
<span>string</span>
- <span>["noDevicesAvailable", "unableToStart", "noSpeechHeard", "noResults", "captureError", "networkError", "internalError", "requestDenied"]</span>
+ <span>["noDevicesAvailable", "unableToStart", "noSpeechHeard", "noResults", "captureError", "networkError", "requestDenied"]</span>
</span>
</span>
)

Powered by Google App Engine
This is Rietveld 408576698