What Is Text to Speech

Do you keep seeing text to speech and wonder what it actually does and how it works? Our full guide on what is text to speech has every part explained, with a real tool measured.

By Mike Wiberg · · 13 min read

Guide

What is text to speech? Written words turned into spoken audio

Text to speech is technology that converts written text into spoken audio. You give it words, it gives you a voice reading them, either played at once or saved as an audio file such as an MP3.

People also call it TTS, speech synthesis or read-aloud. The idea is old and the methods have changed a great deal, but the job has stayed the same: take letters on a screen and produce the sounds a person would make saying them. This guide explains what text to speech is, how it works step by step, where it came from, what kinds exist, what it is used for, and where it still falls short. To make the ideas concrete, we use our own free tool as the worked example, because we can measure it and say exactly what it does.

What does text to speech mean in plain words

Text to speech means a computer reads written text aloud in a synthetic voice. The word "synthetic" matters: the voice is generated by a program and is not a person talking live.

Three nearby terms are often confused with it, so it helps to separate them.

  • Speech to text is the opposite direction. You talk, and software writes down what you said. It is also called transcription or dictation.
  • Voice cloning is a different job again: copying one particular person's voice so that new sentences sound like them. Plain text to speech uses a stock voice. Our tool does not clone voices at all.
  • A screen reader is a program that reads out everything on a screen, including menus and buttons, for people who cannot see it. It uses text to speech to do the speaking, but it also decides what to read and in what order.

So text to speech is the speaking part: text in, voice out.

How does text to speech work: from text to a sound file

Text to speech works in a few stages: it cleans the text, works out how each word is pronounced, predicts the sound of the speech, and then writes the result as audio. Modern systems blur some of these stages together, but the order of ideas is the same.

Here is what our tool does, as built, from the moment you press the button.

  1. Clean the text. HTML tags, web links, emoji and other symbols are removed, character codes are decoded, and every run of spaces becomes one.
  2. Split it into sentences. The cleaned text is cut at sentence ends into pieces of at most 400 characters. A sentence longer than that is cut at the last space before 400, and a very short sentence is joined to its neighbour.
  3. Work out the pronunciation. The engine turns each word into sounds, using a rule-based pronunciation tool called espeak-ng.
  4. Make the speech. A neural network, Kokoro, produces the audio for each piece at 24,000 samples a second.
  5. Join and encode. The pieces are joined with 120 milliseconds of silence between them and written out as an MP3 at 128 kbps, mono.

The five stages inside the tool: clean, split, speak, join and encode into an MP3

The stages from pasted text to MP3 as built into the tool. Each piece is also saved as a small file so the page can play it while later pieces are still being made.

Why text to speech splits the text into pieces

Text to speech splits long text into pieces because the model handles about 510 tokens, a small unit of text, in one call, and because voices are reported to sound best on moderate stretches. The Kokoro author's own note is that voices are best at 100 to 200 tokens per utterance, weak under 10 to 20 tokens and rushed above 400. That is why our worker joins very short sentences to a neighbour and cuts long ones.

Splitting also keeps memory use flat. Each piece is encoded into the output file as soon as it is made, so a 100,000 character text does not need the whole recording held in memory at once, and it lets the page start playing before the end.

Why pronunciation is the hard part of text to speech

Pronunciation is hard because written English does not say how to say it. The same letters can sound different in different words, and some words are spelled the same but spoken differently depending on meaning. Numbers, dates and abbreviations need turning into words first: "3:30" and "Dr." are not pronounced as they are typed.

In our own test, each voice read a 180-word passage that included a phone number, a time, dates, "Dr.", a web address said as "dot com", quotes and a recipe line. A speech-to-text model then transcribed the audio back, and the words it got wrong were 5.0 percent for Heart, 6.7 percent for Emma and 7.8 percent for Michael. Part of that is the transcriber's own mistakes and how numbers are written. It is a rough guide that these cases were mostly read correctly, not a rating of how a voice sounds.

Bar chart of word error rates in a round trip test: Heart 5.0 percent, Emma 6.7 percent, Michael 7.8 percent

Round trip word error for three voices, lower is better.

What is text to speech used for

Text to speech is used wherever reading aloud helps: accessibility, learning, listening on the move, content production and software that talks. The longest-running use is for people who cannot read a screen.

The Wikipedia article on speech synthesis says that the longest application has been in the use of screen readers for people with visual impairment, and that text to speech is also used by people with dyslexia and other reading disabilities and by pre-literate children. It lists web-based assistive tools that bring speech to anyone with a web browser, and describes speech synthesis as a vital assistive technology tool. You can read it at Wikipedia: Speech synthesis.

Beyond accessibility, the everyday uses are easy to picture:

  • Proofreading. Hearing your own writing read back makes missing words and awkward sentences stand out.
  • Study and long reading. Turning notes or an article into audio lets you listen while you do something else.
  • Voice-over drafts. A quick narration shows how a script will run before a person records it.
  • Content. Audio versions of written pages for people who prefer to listen.

We do not yet have data on how people use our own site, so this list is about fit and not a report of customers. What we can say is what the tool is built for: English text in, an MP3 out, with the limits stated before you start.

What is text to speech software, and what are the main kinds

Text to speech software is any program or service that does the conversion. There are three broad ways computers have produced the voice, and the difference between them explains a lot about how a voice sounds and how it is made.

Three kinds of speech synthesis: concatenative, formant and neural

The three methods, described as in the Wikipedia article on speech synthesis.

  • Concatenative synthesis strings together segments of recorded speech. The voice is built from pieces of real recordings.
  • Formant synthesis does not use human speech samples while running. It generates speech with additive synthesis and an acoustic model.
  • Neural synthesis uses deep neural networks to produce artificial speech from text.

The voices on our tool are neural. They come from Kokoro, an open-weight model with 82 million parameters, published under the Apache 2.0 licence. The author's model card says it is built on StyleTTS 2 and ISTFTNet and is a decoder-only design, with no diffusion step. We cover what that means for the question many readers ask next in the guide on whether text to speech is AI.

Where text to speech came from: a short dated history

Text to speech is older than most people think, and the dates below come from the Wikipedia article on speech synthesis. The machines changed completely, while the goal stayed the same.

Timeline of text to speech: 1939 Voder, 1961 Daisy Bell, 1968 first general English system, 2016 WaveNet

Four milestones. Dates and names as given by the Wikipedia article on speech synthesis.

  • 1939. Homer Dudley showed the Voder, a keyboard-operated voice synthesizer, at the New York World's Fair.
  • Late 1950s. The first computer-based speech synthesis systems appeared.
  • 1961. John Larry Kelly Jr. and Louis Gerstman used an IBM 7090 computer to synthesize speech and recreate the song "Daisy Bell".
  • 1968. Noriko Umeda and colleagues developed the first general English text to speech system at the Electrotechnical Laboratory in Japan.
  • September 2016. DeepMind released WaveNet, which showed that deep learning models can model raw waveforms and generate speech.

Kokoro version 1.0 was published on 27 January 2025, according to its model card. It is a small model by present standards, and the author gives its training cost as about 1,000 A100 GPU hours, roughly $1,000 in total across two versions. That is part of why free and low-cost text to speech is practical now.

Facts card for the Kokoro model: 82 million parameters, Apache 2.0, version 1.0 on 27 January 2025

Facts from the Kokoro model card, reproduced as given by the author.

How fast is text to speech, and what does it cost to run

Text to speech on our tool takes about 19 seconds of computing for every 1,000 characters, which makes about 72 seconds of audio. The computing time is shorter than the audio it makes, since 19 seconds of work gives about 72 seconds of speech, but it is not instant, and it is not free for us to run.

We measured three voices on a 996-character text, median of three runs, 8 threads: Emma 17.45 seconds per 1,000 characters, Heart 18.66 and Michael 20.55. A 20,000 character text with Heart took 355 seconds and made about 23 minutes of audio. Encoding to MP3 is cheap: our test encoded 23 minutes of audio in about 15 seconds.

Bar chart of seconds of compute per 1,000 characters for three voices

Compute time per 1,000 characters. Queue waiting time is extra.

On our estimate, the compute for 1,000 characters costs us a fraction of a cent, about $0.0027 at the slowest voice, including a safety margin. That is why the free plan can exist at all, and why it has a daily limit: 5,000 characters a day per IP address. You can read the exact limits on the text to speech free page.

What can text to speech not do

Text to speech cannot yet act, improvise or understand your text; it reads the words it is given. Even good voices are limited in expression, and ours has specific gaps you should know about.

  • No emotion or style control. There are no sliders for happy, sad or whispered. Punctuation is the only way to shape a pause.
  • English only. The tool reads English with American and British voices. Text that is mostly in another alphabet is refused.
  • No voice cloning. It cannot copy a person's voice and does not accept voice samples.
  • No SSML. Markup tags are removed and not obeyed.
  • No files or links as input. It reads pasted text. It does not open PDFs or fetch web pages.
  • Short pieces are weaker. The model author notes that very short utterances are weak, so the tool joins short sentences to a neighbour.
  • Hard words may be misread. Unusual names, acronyms and words that can be said two ways may need respelling.

We have not compared how our voices sound with the paid voices of other companies, and we will not claim that they sound like a person speaking. Listen to a short piece first, which takes seconds on the online text to speech tool.

Is text to speech safe and private to use

Text to speech on our tool is private in the sense that your typed text is deleted when the audio is finished and is never used for training. The speech is made on our own servers by an open-source model, so no outside speech service receives the text.

The job keeps its character count, voice, format and a label of the first 40 characters until the audio is deleted. Audio files are stored in our own storage for 24 hours on the free plan, 7 days on Starter and packs, and 30 days on Pro and Business, and they are served only through signed download links. As with any online service, avoid pasting passwords or material you must not share. The privacy page says more.

Can a browser do text to speech by itself

Yes, most browsers can speak text by themselves through the Web Speech API, using voices installed on your device. The MDN page for the SpeechSynthesis interface describes it as the controller for the speech service, used to get the voices available on the device and to start and pause speech.

That is a different approach from ours. A browser voice depends on your device and gives you speech to listen to at once, and the voices vary between systems. It does not hand you a downloadable MP3 file, and the quality depends on what your device has installed. Our tool makes the audio on a server, so the same voices are available on any device and you get a file to keep. See the MDN SpeechSynthesis reference for the browser side.

What is text to speech: questions people ask next

These are short answers to the questions that usually follow, each with a link to the full page.

What is text to speech used for in everyday life?

Text to speech is used for accessibility, listening to long text, proofreading and voice-over drafts. The guide on how to use text to speech walks through using it step by step.

What is text to speech software that is free?

Free text to speech software is a tool that turns text to audio without payment. Ours gives 5,000 characters a day per IP address with no account and no watermark. See text to speech free for the limits.

What is the difference between text to speech and speech to text?

Text to speech turns written words into voice, and speech to text turns a voice recording into written words. They are opposite directions of the same subject.

What format does text to speech produce?

Text to speech produces an audio file, and on our tool that is an MP3 at 128 kbps, 24 kHz, mono, or a WAV on paid plans. The text to speech MP3 page explains the file.

What is text to speech: what to do next

Now you know that text to speech is the conversion of written text to spoken audio, how the stages work, and what limits to expect. The best way to see it is to try it: open the free text to speech tool, paste a short paragraph and listen.

For the next step, read how to use text to speech to get a good result, is text to speech AI to understand how the voices are made, or how to convert text to MP3 to keep the audio as a file.