Estafette
Compose Login
You are browsing eu.zone1 in read-only mode. Log in to participate.
rss-bridge 2025-11-20T00:39:07+00:00

JavaScript SpeechSynthesis API

As the web continues to be the medium for all users, standards bodies need to continue to provide new APIs to enrich user experience and accessibility. One underused API for unsighted users is speechSynthesis, an API to programmatically direct the browser to audibly speak any arbitrary string. The Code You can direct the browser to […]
The post JavaScript SpeechSynthesis API appeared first on David Walsh Blog.

---

JavaScript SpeechSynthesis API

David Walsh on
November 19, 2025

As the web continues to be the medium for all users, standards bodies need to continue to provide new APIs to enrich user experience and accessibility. One underused API for unsighted users is speechSynthesis, an API to programmatically direct the browser to audibly speak any arbitrary string.

The Code

You can direct the browser to utter speech with window.speechSynthesis and SpeechSynthesisUtterance:

`
window.speechSynthesis.speak(
new SpeechSynthesisUtterance('Hey Jude!')

`

speechSynthesis.speak will robotically tell the user anything you provide as a SpeechSynthesisUtterance string. Support for this API is available in all modern browsers.

I wouldn't consider speechSynthesis as a replacement for native accessibility tools, but this API could be used to improve what native tools provide!

-->

[Image: Request Metrics real user monitoring]

[Image: Request Metrics real user monitoring]

---

[Original source](https://davidwalsh.name/speechsynthesis-api)

Reply