You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pid="w3c-state"><ahref="https://www.w3.org/standards/types/#CG-DRAFT">Draft Community Group Report</a>, <timeclass="dt-updated" datetime="2025-02-20">20 February 2025</time></p>
699
+
<pid="w3c-state"><ahref="https://www.w3.org/standards/types/#CG-DRAFT">Draft Community Group Report</a>, <timeclass="dt-updated" datetime="2025-02-28">28 February 2025</time></p>
700
700
<detailsopen>
701
701
<summary>More details about this document</summary>
<li>User click on a visible speech input element which has an obvious graphical representation showing that it will start speech input.
846
-
<li>Accepting a permission prompt shown as the result of a call to <aclass="idl-code"data-link-type="method" href="#dom-speechrecognition-start" id="ref-for-dom-speechrecognition-start">start()</a>.
846
+
<li>Accepting a permission prompt shown as the result of a call to <codeclass="idl"><adata-link-type="idl" href="#dom-speechrecognition-start" id="ref-for-dom-speechrecognition-start">start()</a></code>.
847
847
<li>Consent previously granted to always allow speech input for this web page.
Start the speech recognition process, directly from a microphone on the device.
1006
+
When invoked, run the following steps:
1005
1007
<ol>
1006
1008
<lidata-md>
1007
-
<p>Let <var>requestMicrophonePermission</var> to <code>true</code>.</p>
1009
+
<p>Let <var>requestMicrophonePermission</var>be a boolan variable set to to <code>true</code>.</p>
1008
1010
<lidata-md>
1009
1011
<p>Run the <adata-link-type="dfn" href="#start-session-algorithm" id="ref-for-start-session-algorithm">start session algorithm</a> with <var>requestMicrophonePermission</var>.</p>
Start the speech recognition process, using a <codeclass="idl"><adata-link-type="idl" href="https://w3c.github.io/mediacapture-main/#dom-mediastreamtrack" id="ref-for-dom-mediastreamtrack②">MediaStreamTrack</a></code> When invoked, run the following steps:
1013
1016
<ol>
1014
1017
<lidata-md>
1015
1018
<p>Let <var>audioTrack</var> be the first argument.</p>
1016
1019
<lidata-md>
1017
-
<p>If <var>audioTrack</var>’s <codeclass="idl"><adata-link-type="idl" href="https://w3c.github.io/mediacapture-main/#dom-mediastreamtrack-kind" id="ref-for-dom-mediastreamtrack-kind">kind</a></code> attribute is NOT <code>"audio"</code>, throw an <codeclass="idl"><adata-link-type="idl" href="https://webidl.spec.whatwg.org/#invalidstateerror" id="ref-for-invalidstateerror">InvalidStateError</a></code> and abort these steps.</p>
1020
+
<p>If <var>audioTrack</var>’s <codeclass="idl"><adata-link-type="idl" href="https://w3c.github.io/mediacapture-main/#dom-mediastreamtrack-kind" id="ref-for-dom-mediastreamtrack-kind">kind</a></code> attribute is NOT <code>"audio"</code>,
1021
+
throw an <codeclass="idl"><adata-link-type="idl" href="https://webidl.spec.whatwg.org/#invalidstateerror" id="ref-for-invalidstateerror">InvalidStateError</a></code> and abort these steps.</p>
1018
1022
<lidata-md>
1019
1023
<p>If <var>audioTrack</var>’s <codeclass="idl"><adata-link-type="idl" href="https://w3c.github.io/mediacapture-main/#dom-mediastreamtrack-readystate" id="ref-for-dom-mediastreamtrack-readystate">readyState</a></code> attribute is NOT <code>"live"</code>, throw an <codeclass="idl"><adata-link-type="idl" href="https://webidl.spec.whatwg.org/#invalidstateerror" id="ref-for-invalidstateerror①">InvalidStateError</a></code> and abort these steps.</p>
<dd>The installOnDevice method returns a Promise that resolves to a boolean indicating whether the installation of on-device speech recognition for a given BCP 47 language tag initiated successfully. <adata-link-type="biblio" href="#biblio-bcp47" title="Tags for Identifying Languages">[BCP47]</a>
1041
1045
</dl>
1042
-
<p>When the <dfnclass="dfn-paneled" data-dfn-type="dfn" data-noexportid="start-session-algorithm">start session algorithm</dfn> with <var>requestMicrophonePermission</var> is invoked, the user agent MUST run the following steps: </p>
1046
+
<p>When the <dfnclass="dfn-paneled" data-dfn-type="dfn" data-noexportid="start-session-algorithm">start session algorithm</dfn> with <var>requestMicrophonePermission</var> is invoked, the user agent MUST run the
1047
+
following steps:</p>
1043
1048
<ol>
1044
1049
<lidata-md>
1045
1050
<p>If the <adata-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#current-settings-object" id="ref-for-current-settings-object">current settings object</a>’s <adata-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global" id="ref-for-concept-relevant-global">relevant global object</a>’s <adata-link-type="dfn" href="https://html.spec.whatwg.org/multipage/nav-history-apis.html#concept-document-window" id="ref-for-concept-document-window">associated Document</a> is NOT <adata-link-type="dfn" href="https://html.spec.whatwg.org/multipage/document-sequences.html#fully-active" id="ref-for-fully-active">fully active</a>, throw an <codeclass="idl"><adata-link-type="idl" href="https://webidl.spec.whatwg.org/#invalidstateerror" id="ref-for-invalidstateerror②">InvalidStateError</a></code> and abort these steps.</p>
1046
1051
<lidata-md>
1047
-
<p>If <codeclass="idl"><adata-link-type="idl" href="#dom-speechrecognition-started-slot" id="ref-for-dom-speechrecognition-started-slot">[[started]]</a></code> is <code>true</code> and no <aclass="idl-code" data-link-type="event" href="#eventdef-speechrecognition-error" id="ref-for-eventdef-speechrecognition-error②">error</a> or <aclass="idl-code" data-link-type="event" href="#eventdef-speechrecognition-end" id="ref-for-eventdef-speechrecognition-end③">end</a> event has fired, throw an <codeclass="idl"><adata-link-type="idl" href="https://webidl.spec.whatwg.org/#invalidstateerror" id="ref-for-invalidstateerror③">InvalidStateError</a></code> and abort these steps.</p>
1052
+
<p>If <codeclass="idl"><adata-link-type="idl" href="#dom-speechrecognition-started-slot" id="ref-for-dom-speechrecognition-started-slot">[[started]]</a></code> is <code>true</code> and no <aclass="idl-code" data-link-type="event" href="#eventdef-speechrecognition-error" id="ref-for-eventdef-speechrecognition-error②">error</a> or <aclass="idl-code" data-link-type="event" href="#eventdef-speechrecognition-end" id="ref-for-eventdef-speechrecognition-end③">end</a> event
1053
+
have fired, throw an <codeclass="idl"><adata-link-type="idl" href="https://webidl.spec.whatwg.org/#invalidstateerror" id="ref-for-invalidstateerror③">InvalidStateError</a></code> and abort these steps.</p>
1048
1054
<lidata-md>
1049
1055
<p>Set <codeclass="idl"><adata-link-type="idl" href="#dom-speechrecognition-started-slot" id="ref-for-dom-speechrecognition-started-slot①">[[started]]</a></code> to <code>true</code>.</p>
1050
1056
<lidata-md>
1051
-
<p>If <var>requestMicrophonePermission</var> is <code>true</code> and <adata-link-type="dfn" href="https://w3c.github.io/permissions/#dfn-request-permission-to-use" id="ref-for-dfn-request-permission-to-use">request permission to use</a> "<code>microphone</code>" is <adata-link-type="dfn" href="https://w3c.github.io/permissions/#dfn-denied" id="ref-for-dfn-denied">"denied"</a>, abort these steps.</p>
1057
+
<p>If <var>requestMicrophonePermission</var> is <code>true</code> and <adata-link-type="dfn" href="https://w3c.github.io/permissions/#dfn-request-permission-to-use" id="ref-for-dfn-request-permission-to-use">request permission to use</a> "<code>microphone</code>" is <adata-link-type="dfn" href="https://w3c.github.io/permissions/#dfn-denied" id="ref-for-dfn-denied">"denied"</a>, abort
1058
+
these steps.</p>
1052
1059
<lidata-md>
1053
-
<p>Once the system is successfully listening to the recognition, <adata-link-type="dfn" href="https://dom.spec.whatwg.org/#concept-event-fire" id="ref-for-concept-event-fire">fire an event</a> named <aclass="idl-code" data-link-type="event" href="#eventdef-speechrecognition-start" id="ref-for-eventdef-speechrecognition-start">start</a> at <adata-link-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-this">this</a>.</p>
1060
+
<p>Once the system is successfully listening to the recognition, queue a task to <adata-link-type="dfn" href="https://dom.spec.whatwg.org/#concept-event-fire" id="ref-for-concept-event-fire">fire an event</a> named <aclass="idl-code" data-link-type="event" href="#eventdef-speechrecognition-start" id="ref-for-eventdef-speechrecognition-start">start</a> at <adata-link-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-this">this</a>.</p>
"889e932f": {"dfnID":"889e932f","dfnText":"Exposed","external":true,"refSections":[{"refs":[{"id":"ref-for-Exposed"},{"id":"ref-for-Exposed\u2460"},{"id":"ref-for-Exposed\u2461"},{"id":"ref-for-Exposed\u2462"},{"id":"ref-for-Exposed\u2463"},{"id":"ref-for-Exposed\u2464"}],"title":"4.1. The SpeechRecognition Interface"},{"refs":[{"id":"ref-for-Exposed\u2465"},{"id":"ref-for-Exposed\u2466"},{"id":"ref-for-Exposed\u2467"},{"id":"ref-for-Exposed\u2468"},{"id":"ref-for-Exposed\u2460\u24ea"}],"title":"4.2. The SpeechSynthesis Interface"}],"url":"https://webidl.spec.whatwg.org/#Exposed"},
2387
2393
"9cce47fd": {"dfnID":"9cce47fd","dfnText":"sequence","external":true,"refSections":[{"refs":[{"id":"ref-for-idl-sequence"}],"title":"4.2. The SpeechSynthesis Interface"}],"url":"https://webidl.spec.whatwg.org/#idl-sequence"},
2388
2394
"a5c91173": {"dfnID":"a5c91173","dfnText":"SameObject","external":true,"refSections":[{"refs":[{"id":"ref-for-SameObject"}],"title":"4.2. The SpeechSynthesis Interface"}],"url":"https://webidl.spec.whatwg.org/#SameObject"},
2389
-
"bc1e4fa1": {"dfnID":"bc1e4fa1","dfnText":"MediaStreamTrack","external":true,"refSections":[{"refs":[{"id":"ref-for-dom-mediastreamtrack"}],"title":"4.1. The SpeechRecognition Interface"},{"refs":[{"id":"ref-for-dom-mediastreamtrack\u2460"}],"title":"4.1.2. SpeechRecognition Methods"}],"url":"https://w3c.github.io/mediacapture-main/#dom-mediastreamtrack"},
2395
+
"bc1e4fa1": {"dfnID":"bc1e4fa1","dfnText":"MediaStreamTrack","external":true,"refSections":[{"refs":[{"id":"ref-for-dom-mediastreamtrack"}],"title":"4.1. The SpeechRecognition Interface"},{"refs":[{"id":"ref-for-dom-mediastreamtrack\u2460"},{"id":"ref-for-dom-mediastreamtrack\u2461"}],"title":"4.1.2. SpeechRecognition Methods"}],"url":"https://w3c.github.io/mediacapture-main/#dom-mediastreamtrack"},
2390
2396
"bcc085e3": {"dfnID":"bcc085e3","dfnText":"request permission to use","external":true,"refSections":[{"refs":[{"id":"ref-for-dfn-request-permission-to-use"}],"title":"4.1.2. SpeechRecognition Methods"}],"url":"https://w3c.github.io/permissions/#dfn-request-permission-to-use"},
2391
2397
"bdbd19d1": {"dfnID":"bdbd19d1","dfnText":"Promise","external":true,"refSections":[{"refs":[{"id":"ref-for-idl-promise"},{"id":"ref-for-idl-promise\u2460"}],"title":"4.1. The SpeechRecognition Interface"}],"url":"https://webidl.spec.whatwg.org/#idl-promise"},
0 commit comments