Skip to content

Platforms

iOS 16.4+ Android 7+ Web
Recognizer SFSpeechRecognizer SpeechRecognizer Web Speech API
requiresOnDeviceRecognition Depends on the language Android 12+ Some browsers
contextualStrings ✓ Android 13+ ✗
punctuation ✓ Android 13+ ✗
getSupportedLocalesAsync ✓ Android 13+ ✗
volume ✓ ✓ Desktop

Audio may be sent to Apple unless requiresOnDeviceRecognition is set. After 8 seconds of silence a phrase ends with no-speech. The audio session of the app is put back afterwards.

Recognition is done by a service on the device, usually from Google. Its quality, languages and reaction to silence vary. Some services play a sound whenever they start, which continuous makes audible after each phrase, and words spoken while the next phrase starts may be lost.

Chrome and Edge work right away. Firefox asks to download a language pack first, then works.

Needs HTTPS or localhost. Chrome sends the audio to Google. Browsers do not report the volume, so it is measured through a second stream, and only when something listens to it. In an iframe, set allow="microphone".