TTSText-to-Speech

The technology that reads text out loud in a voice

Key points
  • TTS (Text-to-Speech) is a technology that reads text out loud in a voice when you feed it in.
  • Inside, it moves through cleaning up the text, deciding pronunciation, shaping intonation and pacing, then generating the actual sound.
  • The machine has to invent intonation, pauses, and pace that were never written down in the text. This is where naturalness is won or lost.
  • The usual trouble spots are numbers, symbols, abbreviations, and words that can only be read correctly with context.
  • Sound streams out from the front, so even a long piece of text can be heard from its first sentence onward.
Contents

1The analogy

Pour water into an ice maker and press one button, and ice keeps coming out without a break. What goes in is liquid water; what comes out is ice you can hold. Whether it comes out as small cubes or big chunks is a setting you dial in ahead of time. Cloudy water freezes cloudy, and rushing the batch lets half-frozen pieces slip through.

Text-to-speech is an ice maker for writing. Pour text on the screen in, and sound you can hear comes flowing out. Which voice and how fast it speaks is a dial set in advance, and if the text you pour in is a mess, the sound that comes out sounds off too.

You can also pre-freeze a batch into the receiving bin. A line that's always the same, like an announcement, can be made once and pulled out whenever it's needed.

2In detail

Text first gets reshaped into something that can be spoken

The text on screen has things mixed in that can't be turned into sound as-is — numbers, unit symbols, abbreviations, parentheses, currency signs. The first stage is spelling all of these out into words that can actually be read.

The same number gets read differently depending on where it sits. Counting floors, counting items, and reading a phone number are all read differently, and dates and times each unfold their own way too. Rush through this stage and the voice will sound off no matter how good it is further down the line.

English adds its own wrinkles here too — "1/2" reads as "one half" in one place and "January second" in another, and figuring out which reading rule to follow takes context.

Deciding how to read it

Cleaned-up text gets converted into the smallest units of sound. This isn't the letters as written but how they're actually pronounced, and this is the stage where sounds shift and blend the way they do in real speech.

The trickiest cases are words spelled the same but read differently. Whether read rhymes with "reed" or "red," and whether bass is a fish or an instrument, can't be told from the letters alone. The system has to look at the surrounding sentence to pick the right one, and a single short sentence thrown at it with no context raises the odds of getting it wrong.

Personal names, shop names, and freshly coined words wobble often too. Some services let you spell out the pronunciation by hand.

Intonation and pauses aren't in the text

The text doesn't say which word to stress, where to take a breath, or whether to raise or lower pitch at the end of a sentence. All of this has to be invented and attached when converting to sound. This is exactly why a reading with no intonation sounds robotic.

The clues are punctuation and sentence structure. A question mark raises the ending, a comma triggers a brief pause, and a long modifier up front gets a break placed right after it. That's why changing the punctuation on the same sentence changes how it's read aloud.

Even so, it doesn't know the situation the way a person does. Whether it's good news or bad, teasing or serious, doesn't show up in the letters. Wherever emotion matters, it's better to specify the intonation directly.

Only at the very end does it become real sound

Up to this point, nothing is sound yet — it's closer to a blueprint noting which pronunciation to make, how long to hold it, and at what pitch. A separate final stage turns that blueprint into an actual waveform, and that stage is called a vocoder.

If the front end draws well but the back end is rough, you get a metallic or humming residue. If the back end is good but the front end draws the intonation wrong, you get a crisp but oddly-paced reading. Whether the voice sounds natural is decided by both parts working together.

Streaming from the front

Building a long piece of text all at once before playing it means waiting a long time for the first sound. So it's common to generate sentence by sentence, or phrase by phrase, sending the front part out as soon as it's ready — like handing out ice cubes as they freeze instead of waiting for the whole batch.

Frequently used announcements sometimes get made in advance and stored. Sentences that carry a different name or amount each time have to be generated fresh every time, so many services mix both approaches.

3More precisely

What's used today generally splits into two parts. The front end takes text and draws, over time, a picture of what sound should go in and how much — a spectrogram — and the back end turns that picture into a waveform you can hear; that back end is the vocoder. There are also designs that fuse both parts into one block and produce a waveform directly, trading the ability to swap either half out on its own for a shorter path from text to sound.

The analogy breaks down in one place. An ice maker only reshapes water; text-to-speech adds a great deal of information that was never in the original text. Intonation, pauses, pace, and the texture of the voice are nowhere in the letters — they're learned from recorded readings during training. That's why reading the same text twice commonly produces sound that isn't identical, and why the impression a sentence leaves shifts with which voice reads it. Unlike an ice maker, where the amount of ice matches the amount of water poured in, here the machine also decides how long the resulting sound runs.

4Try it yourself

5Common misconceptions

  • It's easy to think prerecorded voice clips are stitched together, but actually the sound is generated fresh on the spot, so it can read sentences that were never recorded.

  • It's easy to think correct spelling guarantees a correct reading, but actually many words are spelled the same and read differently, so without surrounding context it can pronounce things wrong.

  • It's easy to think a human-like voice means a human recorded it, but actually breath sounds and hesitations get imitated too, which makes it hard to tell by ear.

7One-line summary

In shortText-to-speech is a technology like an ice maker that pours out sound when you pour in text, and its core is inventing intonation and pauses that were never in the writing.

Spotted an error or have a better analogy? Suggest an edit · Last updated2026-09-02