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
Copy file name to clipboardExpand all lines: index.bs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -481,9 +481,9 @@ following steps:
481
481
for=SpeechRecognition>error</a> event or <a event for=SpeechRecognition>end</a> event
482
482
has fired on it, throw an {{InvalidStateError}} and abort these steps.
483
483
1. If this.{{SpeechRecognition/[[processLocally]]}} is `true`:
484
-
a. If the user agent determines that local speech recognition is not available for this.{{SpeechRecognition/lang}}, or if it cannot fulfill the local processing requirement for other reasons:
485
-
i. [=Queue a task=] to [=fire an event=] named `error` at `this`. The event's `error` attribute <em class="rfc2119" title="MUST">MUST</em> be {{SpeechRecognitionErrorCode/service-not-allowed}}. The event's `message` attribute <em class="rfc2119" title="MUST">MUST</em> provide an implementation-defined string detailing the reason.
486
-
ii. Abort these steps.
484
+
1. If the user agent determines that local speech recognition is not available for this.{{SpeechRecognition/lang}}, or if it cannot fulfill the local processing requirement for other reasons:
485
+
1. [=Queue a task=] to [=fire an event=] named <a event for=SpeechRecognition>error</a> at [=this=] using {{SpeechRecognitionErrorEvent}} with its {{SpeechRecognitionErrorEvent/error}} attribute initialized to {{SpeechRecognitionErrorCode/service-not-allowed}} and its {{SpeechRecognitionErrorEvent/message}} attribute set to an implementation-defined string detailing the reason.
486
+
1. Abort these steps.
487
487
1. Set {{[[started]]}} to `true`.
488
488
1. If |requestMicrophonePermission| is `true` and [=request
489
489
permission to use=] "`microphone`" is [=permission/"denied"=], abort
0 commit comments