Back to Content

Permissions-Policy: on-device-speech-recognition directive

files/en-us/web/http/reference/headers/permissions-policy/on-device-speech-recognition/index.md

latest1.2 KB
Original Source

{{SeeCompatTable}}

The HTTP {{HTTPHeader("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 {{domxref("SpeechRecognition.available_static", "SpeechRecognition.available()")}} or {{domxref("SpeechRecognition.install_static", "SpeechRecognition.install()")}} methods will fail.

Syntax

http
Permissions-Policy: on-device-speech-recognition=<allowlist>;
  • <allowlist>

Default policy

The default allowlist for on-device-speech-recognition is self.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also