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
Gate available() and install() behind a policy (#164)
* Gate available() and install() behind a policy
* Gate available() and install() behind a policy
---------
Co-authored-by: Evan Liu <[email protected]>
The {{SpeechRecognition/available}} method returns a {{Promise}} that resolves to a {{AvailabilityStatus}} indicating the recognition availability matching the {{SpeechRecognitionOptions}} argument.
386
+
Access to this method is gated behind the [=policy-controlled feature=] "on-device-speech-recognition", which has a [=policy-controlled feature/default allowlist=] of <code>[=default allowlist/'self'=]</code>.
386
387
387
388
When invoked, run these steps:
388
389
1. Let <var>promise</var> be <a>a new promise</a>.
@@ -396,6 +397,7 @@ See <a href="https://lists.w3.org/Archives/Public/public-speech-api/2012Sep/0072
396
397
It returns a {{Promise}} that resolves to a {{boolean}}.
397
398
The promise resolves to `true` when all installation attempts for requested and supported languages succeed (or the languages were already installed).
398
399
The promise resolves to `false` if `options.langs` is empty, if not all of the requested languages are supported, or if any installation attempt for a supported language fails.
400
+
Access to this method is gated behind the [=policy-controlled feature=] "on-device-speech-recognition", which has a [=policy-controlled feature/default allowlist=] of <code>[=default allowlist/'self'=]</code>.
399
401
400
402
When invoked, run these steps:
401
403
1. If the [=current settings object=]'s [=relevant global object=]'s [=associated Document=] is NOT [=fully active=], throw an {{InvalidStateError}} and abort these steps.
0 commit comments