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
A{{SpeechRecognitionPhraseList}} representing a list of phrases for contextual biasing. The initial value is null.
166
+
An{{ObservableArray}}of {{SpeechRecognitionPhrase}} objects representing a list of phrases for contextual biasing. The initial value is a new empty {{ObservableArray}}.
This attribute represents a list of phrases for contextual biasing.
340
+
The `phrases` attribute provides a list of {{SpeechRecognitionPhrase}} objects to be used for contextual biasing. This is an {{ObservableArray}}, which can be modified like a JavaScript `Array` (e.g., using `push()`).
351
341
</dd>
352
342
<dd>
353
343
The getter steps are to return the value of {{SpeechRecognition/[[phrases]]}}.
354
344
</dd>
355
-
<dd>
356
-
The setter steps are:
357
-
1. If the {{SpeechRecognitionPhraseList/length}} of the given value is greater than 0 and the system does not support contextual biasing,
358
-
throw a {{SpeechRecognitionErrorEvent}} with the {{phrases-not-supported}} error code and abort these steps.
359
-
1. Set {{SpeechRecognition/[[phrases]]}} to the given value.
360
-
1. Send a copy of {{SpeechRecognition/[[phrases]]}} to the system for initializing or updating the phrases for contextual biasing implementation.
361
-
</dd>
362
345
</dl>
363
346
364
347
<p class=issue>The group has discussed whether WebRTC might be used to specify selection of audio sources and remote recognizers.
@@ -506,6 +489,9 @@ following steps:
506
489
1. If {{SpeechRecognition/[[started]]}} is `true` and no <a event
507
490
for=SpeechRecognition>error</a> event or <a event for=SpeechRecognition>end</a> event
508
491
has fired on it, throw an {{InvalidStateError}} and abort these steps.
492
+
1. If this.{{SpeechRecognition/phrases}}'s `length` is greater than 0 and the user agent does not support contextual biasing:
493
+
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 `phrases-not-supported` and its {{SpeechRecognitionErrorEvent/message}} attribute set to an implementation-defined string detailing the reason.
494
+
1. Abort these steps.
509
495
1. If this.{{SpeechRecognition/[[processLocally]]}} is `true`:
510
496
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:
511
497
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.
@@ -728,59 +714,6 @@ For a non-continuous recognition it will hold only a single value.</p>
728
714
<dd>This attribute returns the value of {{[[boost]]}}.</dd>
0 commit comments