coderef

Speech synthesisBaseline · Widely available

The SpeechSynthesis API converts text to speech with artificial voices.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Sep 5, 2018. Widely available since Mar 5, 2021.

Browser support

DesktopChrome
1–32Not supported
33+Supportedsince Feb 20, 2014
Current: 155
Edge
12–13Not supported
14+Supportedsince Aug 2, 2016
Current: 154
Firefox
1–48Not supported
49+Supportedsince Sep 20, 2016
Current: 157
Safari
1–6Not supported
7+Supportedsince Oct 22, 2013
Current: 27
MobileChrome Android
18–32Not supported
33+Supportedsince Feb 26, 2014
Current: 155
Firefox Android
4–61Not supported
62+Supportedsince Sep 5, 2018
Current: 157
Safari iOS
1–6Not supported
7+Supportedsince Sep 18, 2013
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: SpeechSynthesis.

Feature detection

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

Sub-features

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

Show 22 more