What is on-device speech recognition? Follow
Some websites let you speak instead of type. These sites use the Web Speech API. Brave can process this speech on your computer. Your audio does not go to a cloud service.
Brave uses a speech recognition model for this. You must download the model one time. The download is about 700 MB.
Current limits:
-
English only. All English variants work, for example
en-US,en-GBanden-AU. Brave is adding support for more languages. To see the status, read issue #61674. - Desktop only. Windows, macOS and Linux. On Android, Brave uses the Android platform speech API.
- Brave 1.100 or later.
- You must download the model yourself. Most sites do not ask Brave to download it. Read "Why must I download the model myself?" below.
- No cloud fallback. If the model cannot process the speech, the site gets an error. Many sites show this error as a "network" error.
Why must I download the model myself?
Site uses the on-device API Site uses only start()
(few sites today) (most sites today)
| |
v v
available() and install() start() with no on-device
with processLocally: true request
| |
v v
Brave shows a download prompt. Brave gets no install request.
You click Allow. Brave cannot show a prompt.
| |
v v
The model downloads. Is the model on this computer?
start() works on this computer. - yes: start() works on this
computer
- no: the site gets a
"network" error
The Web Speech API has two ways to use speech recognition. In the first way, the site asks for on-device recognition. The site calls available() and install() with processLocally: true. Then Brave can ask you to download the model.
Most sites use the second way. They call only start(), and they do not ask for on-device recognition. These sites were made for browsers that send speech to a cloud service. Brave does not have a cloud speech service at this time. Brave uses the model if it is on your computer, but Brave gets no install request from the site.
Thus, Brave cannot ask you to download the model for these sites. Download the model in Settings before you use speech recognition on these sites. If you do not, the site gets a "network" error.
Platforms and versions
| Platform | Brave on-device model |
|---|---|
| Windows | Yes, in Brave 1.100 and later |
| macOS | Yes, in Brave 1.100 and later |
| Linux | Yes, in Brave 1.100 and later |
| Android | No. Brave uses the Android platform speech API. |
| iOS | No |
The setting looks different in different versions:
| Brave version | Setting in Settings > Privacy and security | Size shown |
|---|---|---|
| 1.99 and earlier | No setting. The feature is not available. | - |
| 1.100 and 1.101 | A switch: "On-device speech recognition" | 636 MB |
| 1.102 and later | A menu: "On-device speech recognition", with "Off" and "English" | about 700 MB |
The two sizes are for the same model. Only the text is different.
To see your version, open brave://settings/help.
Step 1: Make sure that the feature is enabled
Brave enables this feature for more users in stages. Thus, some users do not see the setting yet. These users can enable the feature with a flag.
- Open
brave://settings/privacy. - Look for "On-device speech recognition". If you see it, go to Step 2.
- If you do not see it, open
brave://flags/#brave-on-device-speech-recognition. - Set "Brave On-Device Speech Recognition" to Enabled.
- Click Relaunch.
Step 2: Download the speech model
- Open
brave://settings/privacy. - Find "On-device speech recognition". You can also type "speech" in the Settings search box.
- Select the model:
- Brave 1.102 and later: in the menu, select English.
- Brave 1.100 and 1.101: click the switch to set it to on.
- Wait for the download to complete. Read "Wait for the download" below.
The setting applies to all Brave profiles on this computer. All profiles use the same model.
Wait for the download
The download starts immediately. The model is about 700 MB. On a slow connection, the download can take many minutes. Settings does not show the download progress.
To see the download status:
- Open
brave://components. - Find "Brave On-Device Speech Models".
- Look at the version and the status.
- Version
0.0.0.0: the model is not on your computer yet. - A different version number: the model is ready.
- Version
- If the download stopped, click Check for update.
When the model is ready, use the site again. You do not need to relaunch Brave. If the site still shows an error, reload the page.
When a site asks to download the model
Some sites ask Brave to install the model. Then Brave shows a prompt such as:
example.com is asking you to: Download a speech recognition model (about 700 MB) to process speech on this device
- Allow: Brave downloads the model. This has the same result as the setting in Step 2.
- Block: Brave does not download the model.
- Block with Don't ask again: Sites in this profile do not ask again. You can still download the model in Settings.
Most sites do not ask. For the reason, read "Why must I download the model myself?". Use Settings to download the model.
Remove the model
- Open
brave://settings/privacy. - Find "On-device speech recognition".
- Remove the model:
- Brave 1.102 and later: in the menu, select Off.
- Brave 1.100 and 1.101: click the switch to set it to off.
Brave removes the model from your computer.
Troubleshooting: the site shows a "network" error
Site starts speech recognition
|
v
+-------------------------------------------+
| Is all of this true? |
| - The flag is enabled |
| - The model download is complete |
| - The language is English |
| - This is a normal window |
| (not Private, Tor or Guest) |
+-------------------------------------------+
| yes | no
v v
Brave processes the Brave has no cloud fallback.
speech on this The site gets an error:
computer. - "network" (most sites)
- "language-not-supported"
(sites that ask for
on-device only)
The diagram shows how Brave handles a speech request. Brave does not send your speech to a cloud service. When the on-device model cannot process the request, the site gets an error. Most sites get the Web Speech error network. Your internet connection is not the cause of this error. Most sites do not ask Brave to download the model, so you must download it in Settings.
Do these checks in this sequence:
-
Check the setting. Open
brave://settings/privacy. Make sure "On-device speech recognition" shows "English" or "on". If you do not see the setting, do Step 1. -
Check the download. Open
brave://components. Make sure "Brave On-Device Speech Models" has a version that is not0.0.0.0. - Check the language. Make sure the site uses English. Some sites have a language setting.
-
Check your browser languages. Some sites do not set a language. Then Brave uses the first language in
brave://settings/languages. Move English to the top of the list. - Use a normal window. Private windows and Guest windows cannot use on-device speech recognition. Private windows with Tor block speech recognition.
- Check the microphone permission. Click the site settings icon in the address bar. Make sure Microphone is set to Allow.
For administrators
- If the
BraveLocalAIEnabledpolicy isfalse, Brave does not show the setting. - If your organization blocks component updates, Brave cannot download the model.
Privacy
- On Windows, macOS and Linux, Brave processes your speech on your computer. Brave does not send your audio to a cloud service.
- On Android, Brave uses the Android platform speech API. This API is not fully on-device.
- Brave downloads the model through the Brave component updater.
- Recognition runs in a separate process. In the Brave Task Manager, its name is "On-Device Speech Recognition".
For web developers
Brave supports the Web Speech API. To use Brave's on-device model, follow On-device speech recognition on MDN:
- Call
SpeechRecognition.available({langs: ['en-US'], processLocally: true}). - If the result is not
available, callSpeechRecognition.install({langs: ['en-US'], processLocally: true})from a user action, for example a click. Brave shows its download prompt. - Set
recognition.processLocallytotrue. Then callstart().
Brave supports only English at this time. If your site calls only start(), Brave cannot ask the user to download the model. Then users get a network error until they download the model in Settings.