coderef

Speech recognitionLimited availability

The SpeechRecognition API converts audio into text using the device's speech recognition service.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
1–138Not supported
139+Supportedsince Aug 5, 2025
Current: 155
Edge
12–138Not supported
139+Supportedsince Aug 7, 2025
Current: 154
Firefox
✕Not supportedup to 157
Current: 157
Safari
✕Not supportedup to 27
Current: 27
MobileChrome Android
18–138Not supported
139+Supportedsince Aug 5, 2025
Current: 155
Firefox Android
✕Not supportedup to 157
Current: 157
Safari iOS
✕Not supportedup to 27
Current: 27

How to use

Not supported in Firefox, Safari, Firefox Android, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN: SpeechRecognition.

Feature detection

JS · check before using
if ("SpeechRecognition" in globalThis) {
  // SpeechRecognition is available
} else {
  // load a polyfill or use a fallback
}

Sub-features

Support for each part of the feature (38). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
SpeechRecognition139139✕✕139✕✕
SpeechRecognition.SpeechRecognition139139✕✕139✕✕
SpeechRecognition.abort139139✕✕139✕✕
SpeechRecognition.audioend_event139139✕✕139✕✕
SpeechRecognition.audiostart_event139139✕✕139✕✕
SpeechRecognition.continuous139139✕✕✕✕✕
SpeechRecognition.end_event139139✕✕139✕✕
SpeechRecognition.error_event139139✕✕139✕✕
SpeechRecognition.interimResults139139✕✕139✕✕
SpeechRecognition.lang139139✕✕139✕✕
SpeechRecognition.maxAlternatives139139✕✕139✕✕
SpeechRecognition.nomatch_event139139✕✕139✕✕
SpeechRecognition.result_event139139✕✕139✕✕
SpeechRecognition.soundend_event139139✕✕139✕✕
SpeechRecognition.soundstart_event139139✕✕139✕✕
SpeechRecognition.speechend_event139139✕✕139✕✕
SpeechRecognition.speechstart_event139139✕✕139✕✕
SpeechRecognition.start139139✕✕139✕✕
SpeechRecognition.start_event139139✕✕139✕✕
SpeechRecognition.stop139139✕✕139✕✕
Show 18 more
Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
SpeechRecognitionAlternative3379✕14.133✕14.5
SpeechRecognitionAlternative.confidence3379✕14.133✕14.5
SpeechRecognitionAlternative.transcript3379✕14.133✕14.5
SpeechRecognitionErrorEvent139139✕14.1139✕14.5
SpeechRecognitionErrorEvent.SpeechRecognitionErrorEvent139139✕14.1139✕14.5
SpeechRecognitionErrorEvent.error139139✕14.1139✕14.5
SpeechRecognitionErrorEvent.message139139✕14.1139✕14.5
SpeechRecognitionEvent139139✕14.1139✕14.5
SpeechRecognitionEvent.SpeechRecognitionEvent139139✕14.1139✕14.5
SpeechRecognitionEvent.resultIndex139139✕14.1139✕14.5
SpeechRecognitionEvent.results139139✕14.1139✕14.5
SpeechRecognitionResult3379✕14.133✕14.5
SpeechRecognitionResult.isFinal3379✕14.133✕14.5
SpeechRecognitionResult.item3379✕14.133✕14.5
SpeechRecognitionResult.length3379✕14.133✕14.5
SpeechRecognitionResultList3379✕14.133✕14.5
SpeechRecognitionResultList.item3379✕14.133✕14.5
SpeechRecognitionResultList.length3379✕14.133✕14.5