Here is a list of desktop and mobile browsers that support and do not support the Web Speech API's Text-to-Speech ( SpeechSynthesis) Component, and the versions when support began.
Desktop browsers that support
- Chrome 33 (Released 2014-02-20)
- Edge 14 (Released 2016-08-02)
- Firefox 49 (Released 2016-09-20)
- Opera 21 (Released 2014-05-06)
- Safari 7 (Released 2013-10-22)
Mobile browsers that support
- Chrome Android 33 (Released 2014-02-26)
- Firefox for Android 62 (Released 2018-09-05)
- Safari on iOS 7 (Released 2013-09-18)
- Samsung Internet 3.0 (Released 2015-04-10)
In Android, pause() behaves the same as cancel().
Mobile browsers that DO NOT support
- Opera Android
- WebView Android
Does my current browser support SpeechSynthesis?
It looks like your current browser supports SpeechSynthesis. You can also check if your browser is in the list of supported browsers above or check out the full list of supported browsers at MDN Web Docs.
How to check if SpeechSynthesis is supported with JavaScript
Here is one way to check if the current browser supports SpeechSynthesis:
'speechSynthesis' in window
So, we are checking if the window object has the property speechSynthesis
. Here's how it looks in an if statement:
if ('speechSynthesis' in window) {
console.log('Supported');
}
Here is a step-by-step guide on how to use Text-to-Speech on a browser with JavaScript.