This feature enables websites to support contextual biasing for speech recognition by adding a recognition phrase list to the Web Speech API. Developers can provide a list of phrases as well as updating them to apply a bias to the speech recognition models in favor of those phrases. This helps improve accuracy and relevance for domain-specific and personalized speech recognition.
None
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
None
Initially supported on Windows, Mac, and Linux with ChromeOS support to follow.
https://wpt.fyi/results/speech-api?label=experimental&label=master&aligned
Shipping on desktop | 140 |
Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).
Nonephrases
array exists and is initially empty. I did see there was an end-to-end manual test at
https://github.com/web-platform-tests/wpt/blob/master/speech-api/SpeechRecognition-phrases-manual.https.html which
is great. Maybe there’s more that can be added as automated coverage though? For example an automated WPT could check that
SpeechRecognitionPhrase
s can be constructed, that they can be assigned
to phrases
, that boost
values outside of the 0.0-10.0 range throw errors, etc.Thank you for the thoughtful feedback. Addressing your points:
Design Doc Access: The original document contains some internal information that can't be shared. I've created a public version of the design document that you can access here: https://docs.google.com/document/d/1CBH4r6rxSryY28hOhBQC-DZgjwWbO-FRYg_bbJIfBFo
TAG Review: Given the relatively small scope of this API addition, I initially didn't think a TAG review was necessary. However, I'm happy to request one if you think it would be beneficial.
Gecko Position: We've been working closely with Mozilla on this design (pad...@mozilla.com is a collaborator on the spec change). I can ask him to add a formal position to the thread to make it official.
WebKit Feedback & WPT Coverage: Thanks for the suggestion. I've just updated the WebKit thread to reflect the latest changes.
Regarding test coverage, the end-to-end tests are currently manual because the test environment has limitations in accessing the necessary on-device models. I'll look into ways to improve our automated test coverage and will add more tests for edge cases and error handling.
Thanks,
Evan
Thanks for these updates!
I think it's kind of borderline whether there's enough complexity here to merit a TAG review. My preference is to go ahead and request one in case they do have feedback.
-- Dan
On Jul 15, 2025, at 5:00, 'Evan Liu' via blink-dev <blin...@chromium.org> wrote:
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/E7442B06-6C6D-44E6-9817-D3F4F27289D6%40chromium.org.
Have you considered a dictionary for SpeechRecognitionPhrase?
Does this basically supersede SpeechGrammar?
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/E7442B06-6C6D-44E6-9817-D3F4F27289D6%40chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/E7442B06-6C6D-44E6-9817-D3F4F27289D6%40chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/E7442B06-6C6D-44E6-9817-D3F4F27289D6%40chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.