on-device speech recognition with the Web Speech API

94 views
Skip to first unread message

Connie Leung

unread,
Aug 8, 2025, 10:52:33 AMAug 8
to Chrome Built-in AI Early Preview Program Discussions
Screenshot 2025-08-08 at 10.49.10 PM.png

In Chrome 139, on-device speech recognition is supported.
Where can I find more information or examples?

Text-to-Speech is always supported, I wonder if it is part of the Chrome built-in AI.

Release notes:

Thanks,

Connie

François Beaufort

unread,
Aug 8, 2025, 10:57:24 AMAug 8
to Connie Leung, Chrome Built-in AI Early Preview Program Discussions
The explainer is in pretty good shape at https://github.com/WebAudio/web-speech-api/blob/main/explainers/on-device-speech-recognition.md
Note that we're planning to share more once Contextual Biasing ships as well: https://github.com/WebAudio/web-speech-api/blob/main/explainers/contextual-biasing.md 

--
You received this message because you are subscribed to the Google Groups "Chrome Built-in AI Early Preview Program Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chrome-ai-dev-previe...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chrome-ai-dev-preview-discuss/1ac7f94c-3fd1-48c6-acf4-90c9c449c4c0n%40chromium.org.

Connie Leung

unread,
Aug 8, 2025, 11:11:32 AMAug 8
to François Beaufort, Chrome Built-in AI Early Preview Program Discussions
François,

Thank you for getting back to me so quickly.
I wonder if on-device speech recognition will be mentioned  in Google I/O Connect Shanghai.  It totally came out of the blue.

Connie


Connie

Scott Fortmann-Roe

unread,
Aug 8, 2025, 11:19:39 AMAug 8
to Connie Leung, François Beaufort, Chrome Built-in AI Early Preview Program Discussions
To add to this, we've been playing with the on-device transcription. It's working really well on our MacBooks, but when we test it on a Chromebook we get a "language-not-supported" error (when passing "en-US").

Is there guidance on the minimum device requirements to use it?

François Beaufort

unread,
Aug 11, 2025, 7:19:12 AMAug 11
to Scott Fortmann-Roe, Connie Leung, Chrome Built-in AI Early Preview Program Discussions
IIRC you can search for SODA (Speech On-Device API) in chrome://components/ and you'll see which language packs are available in your machine.

To add new ones, go to chrome://settings/?search=language and click "Add languages" when Live Caption is enabled.
image.png

Let me know if it works for you as I don't have a ChromeOS machine at hand right now.

Gaurang Tandon

unread,
Aug 11, 2025, 10:48:22 AMAug 11
to Chrome Built-in AI Early Preview Program Discussions, François Beaufort, Connie Leung, Chrome Built-in AI Early Preview Program Discussions, Scott Fortmann-Roe
Hi François, thanks for your suggestion. I just tried it out; sadly, the language packs didn't get listed in chrome://components/

Additionally, I noticed that when I run await SpeechRecognition.install({ langs: ['en-US'], processLocally: true, }); on a Macbook, the "SODA en-US Models" become listed on chrome://components. However, when I run the same code on a Chromebook, the models don't become listed on chrome://components. The return value in both cases is true.

François Beaufort

unread,
Aug 12, 2025, 8:54:07 AMAug 12
to Gaurang Tandon, Chrome Built-in AI Early Preview Program Discussions, Connie Leung, Scott Fortmann-Roe
I just got a Chromebook and can reproduce this issue with the following code.

await SpeechRecognition.available({ langs: ["en-US"], processLocally: true });
// 'available'
await SpeechRecognition.install({ langs: ["en-US"], processLocally: true });
// true

const speechRecognition = new SpeechRecognition();
speechRecognition.lang = "en-US";
speechRecognition.processLocally = true;
speechRecognition.onerror = error => console.log(error);
speechRecognition.start();
// SpeechRecognitionErrorEvent {error: 'language-not-supported', ....

I'll reach out to the Chrome engineering team and will let you know what's happening.
My naive guess is that ChromeOS is not plugged into the Web Speech API yet but we'll see ;)

Gaurang Tandon

unread,
Aug 13, 2025, 4:48:27 AMAug 13
to Chrome Built-in AI Early Preview Program Discussions, François Beaufort, Chrome Built-in AI Early Preview Program Discussions, Connie Leung, Scott Fortmann-Roe, Gaurang Tandon
Thanks for checking this so quickly, François! I had also filed a bug report for this - https://issues.chromium.org/issues/436137785 - sharing it in case it's helpful.

François Beaufort

unread,
Aug 19, 2025, 2:41:17 AMAug 19
to Gaurang Tandon, Chrome Built-in AI Early Preview Program Discussions, Connie Leung, Scott Fortmann-Roe
As you can see in https://issues.chromium.org/issues/436137785#comment4, the Chrome team just disabled on-device Web Speech specifically on ChromeOS as the implementation was incomplete with https://chromium-review.googlesource.com/c/chromium/src/+/6859764 

Thanks for reporting this issue!
Hopefully, the implementation will be completed soon so that all users can enjoy on-device Web Speech on ChromeOS.

Scott Fortmann-Roe

unread,
Aug 19, 2025, 4:34:07 AMAug 19
to François Beaufort, Gaurang Tandon, Chrome Built-in AI Early Preview Program Discussions, Connie Leung
Thanks for the update, Francois. Looking forward to this being supported on ChromeOS.
Reply all
Reply to author
Forward
0 new messages