Firefox Tomorrow

http permissions policy directive

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

View on MDN ↗

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>

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.

See also