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
<dd>This attribute will set the speech recognition context for the recognition session to start with.</dd>
280
310
</dl>
281
311
282
312
<p class=issue>The group has discussed whether WebRTC might be used to specify selection of audio sources and remote recognizers.
@@ -322,12 +352,22 @@ See <a href="https://lists.w3.org/Archives/Public/public-speech-api/2012Sep/0072
322
352
The user agent must raise an <a event for=SpeechRecognition>end</a> event once the speech service is no longer connected.
323
353
If the abort method is called on an object which is already stopped or aborting (that is, start was never called on it, the <a event for=SpeechRecognition>end</a> or <a event for=SpeechRecognition>error</a> event has fired on it, or abort was previously called on it), the user agent must ignore the call.</dd>
The updateContext method updates the speech recognition context after the speech recognition session has started.
358
+
If the session has not started yet, user should update {{SpeechRecognition/context}} instead of using this method.
359
+
360
+
When invoked, run the following steps:
361
+
1. If {{[[started]]}} is <code>false</code>, throw an {{InvalidStateError}} and abort these steps.
362
+
1. If the system does not support speech recognition context, throw a {{SpeechRecognitionErrorEvent}} with the {{context-not-supported}} error code and abort these steps.
363
+
1. The system updates its speech recognition context to be |context|.
<dd>The availableOnDevice method returns a Promise that resolves to a boolean indicating whether on-device speech recognition is available for a given BCP 47 language tag. [[!BCP47]]</dd>
<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. [[!BCP47]]</dd>
330
-
331
371
</dl>
332
372
333
373
When the <dfn>start session algorithm</dfn> with
@@ -344,6 +384,9 @@ following steps:
344
384
1. If |requestMicrophonePermission| is `true` and [=request
345
385
permission to use=] "`microphone`" is [=permission/"denied"=], abort
346
386
these steps.
387
+
1. If {{SpeechRecognition/context}} is not null and the system does not support
388
+
speech recognition context, throw a {{SpeechRecognitionErrorEvent}} with the
389
+
{{context-not-supported}} error code and abort these steps.
347
390
1. Once the system is successfully listening to the recognition, queue a task to
348
391
[=fire an event=] named <a event for=SpeechRecognition>start</a> at [=this=].
349
392
@@ -437,6 +480,9 @@ For example, some implementations may fire <a event for=SpeechRecognition>audioe
<dd>The speech recognition model does not support speech recognition context.</dd>
440
486
</dl>
441
487
</dd>
442
488
@@ -515,6 +561,66 @@ For a non-continuous recognition it will hold only a single value.</p>
515
561
Note that when resultIndex equals results.length, no new results are returned, this may occur when the array length decreases to remove one or more interim results.</dd>
<dd>This attribute is approximately the natural log of the number of times more likely the website thinks this phrase is than what the speech recognition model knows.
583
+
A valid boost must be a float value inside the range [0.0, 10.0], with a default value of 1.0 if not specified.
584
+
A boost of 0.0 means the phrase is not boosted at all, and a higher boost means the phrase is more likely to appear.
585
+
A boost of 10.0 means the phrase is extremely likely to appear and should be rarely set.
0 commit comments