Add emma attribute to SpeechRecognitionResult.
authorHans Wennborg <hans@chromium.org>
Tue, 12 Jun 2012 16:53:05 +0100
changeset 13 ae432e2c84f7
parent 12 3653d52656e1
child 14 97cdc8556921
Add emma attribute to SpeechRecognitionResult.
speechapi.html
--- a/speechapi.html	Fri May 25 18:08:28 2012 +0100
+++ b/speechapi.html	Tue Jun 12 16:53:05 2012 +0100
@@ -579,6 +579,7 @@
         readonly attribute unsigned long <a href="#dfn-length">length</a>;
         getter <a href="#speechrecognitionalternative">SpeechRecognitionAlternative</a> <a href="#dfn-item">item</a>(in unsigned long index);
         readonly attribute boolean <a href="#dfn-final">final</a>;
+        readonly attribute Document <a href="#dfn-emma">emma</a>;
     };
 
     <span class="comment">// A collection of responses (used in continuous mode)</span>
@@ -808,6 +809,11 @@
       <dt><dfn id="dfn-final">final</dfn></dt>
       <dd>The final boolean <em class="rfc2119" title="must">must</em> be set to true if this is the final time the speech service will return this particular index value.
       If the value is false, then this represents an interim result that could still be changed.</dd>
+
+      <dt><dfn id="dfn-emma">emma</dfn></dt>
+      <dd><a href="http://www.w3.org/TR/emma/">EMMA 1.0</a> representation of this result.
+      The contents of this result could vary across UAs and recognition engines, but all implementations <em class="rfc2119" title="must">must</em> expose a valid XML document complete with EMMA namespace.
+      UA implementations for recognizers that supply EMMA <em class="rfc2119" title="must">must</em> pass that EMMA structure directly.</dd>
     </dl>
 
     <h4 id="speechreco-resultlist"><span class=secno>5.1.7 </span>Speech Recognition Result List</h4>