DevTools Pro · All tools · About

Text to Speech

About the Text to Speech

This text to speech tool reads any text aloud in your browser using the Web Speech API and the voices available on your device. Pick a voice, set the rate, pitch and volume, and follow along as each word is highlighted while it is spoken.

How browser text to speech works

Modern browsers include the speechSynthesis part of the Web Speech API. A page creates a SpeechSynthesisUtterance with the text and settings, and the browser hands it to a speech engine. No audio file is produced; the sound plays directly through your speakers.

The list of voices comes from your operating system and browser, so it differs between devices. Windows, macOS, iOS and Android each ship their own voices, and Chrome and Edge add extra ones. The Voice dropdown shows how many your browser reports.

Local voices vs online voices

Voices that run on your device are processed locally. Voices labeled "online" in the dropdown are provided by a cloud service, such as the Google voices in Chrome or the Microsoft "Online (Natural)" voices in Edge. When you use one of those, your browser sends the text to that vendor's speech service to generate the audio.

If the text is confidential, choose a voice without the "online" label. Local voices also work without an internet connection.

Rate, pitch and volume ranges

Rate goes from 0.5x to 2x, where 1x is the voice's normal speed. Pitch ranges from 0 to 2 with 1 as the default, and volume from 0% to 100%. Not every voice honors every setting; some engines ignore pitch, and some cap the maximum rate.

Settings apply the next time you press Play. Reset restores rate, pitch and volume to their defaults.

Known browser limitations

Word highlighting depends on the voice sending boundary events. Many local voices do; some online voices do not, in which case the text plays without a highlight. Some online voices in Chrome also stop partway through very long text, so for long documents use a local voice or read one section at a time.

Because the Web Speech API does not expose the audio stream, the spoken result cannot be downloaded as an MP3 or WAV file.

How to Use the Text to Speech

  1. Type or paste your text into the Text box; the character and word count update as you type.
  2. Choose a voice from the Voice list. A voice matching your browser language is selected automatically.
  3. Adjust the Rate, Pitch and Volume sliders, or press Reset to go back to the defaults.
  4. Press Play to start reading. The current word is highlighted while the voice speaks.
  5. Use Pause and Resume to hold playback, Stop to end it, and Clear to empty the text box.

Frequently Asked Questions

Is my text sent anywhere?
With a local voice, no; speech is generated on your device. With a voice marked "online", your browser sends the text to its vendor's speech service (for example Google or Microsoft) to produce the audio. This site never receives your text.
Can I download the audio as an MP3?
No. The Web Speech API plays audio directly and does not give web pages access to the sound data, so it cannot be saved as a file.
Why are there no voices, or only a few?
Voices come from your operating system and browser. Some Linux setups and minimal browsers include few or none; installing extra system voices or trying Chrome or Edge usually adds more.
Why does speech stop partway through long text?
Some online voices in Chrome end long utterances early. Switch to a local voice or split the text into shorter sections.
Why does the highlighted word not move?
The voice is not sending word boundary events. Speech still plays normally; try another voice if you need highlighting.
Which browsers are supported?
Recent versions of Chrome, Edge, Safari and Firefox support speech synthesis. If yours does not, the page shows a message instead of the controls.

Related tools