http permissions policy directive
Permissions-Policy: on-device-speech-recognition directive
Limited availability
The HTTP Permissions-Policy header on-device-speech-recognition directive controls access to the on-device speech recognition functionality of the Web Speech API.
Specifically, where a defined policy blocks usage, any attempts to call the API’s SpeechRecognition.available() or SpeechRecognition.install() methods will fail.
Syntax
Permissions-Policy: on-device-speech-recognition=<allowlist>;
<allowlist>- : A list of origins for which permission is granted to use the feature. See
Permissions-Policy> Syntax for more details.
- : A list of origins for which permission is granted to use the feature. See
Default policy
The default allowlist for on-device-speech-recognition is self.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.