How Text Becomes Natural Speech
Old computer voices sounded flat and robotic. Today, an AI voice can read a story with pauses, stress, and feeling. Many people cannot tell it apart from a human in a short clip.
This lesson explains text-to-speech, often shortened to TTS. You will see why old voices sounded robotic, how neural TTS works, and why the hardest part is not the sounds but the rhythm and melody of speech.
What You'll Learn
- How older text-to-speech systems worked, and why they sounded robotic
- What prosody is and why it matters so much
- The three main steps inside a neural TTS system
- How one model can speak in many voices and styles
- Where AI voices still go wrong
How older voices worked
Early systems used one of two methods.
- Cut and paste. A real person recorded hours of speech. The system cut it into tiny pieces and joined the right pieces together for new sentences. It could sound human, but the joins were often bumpy.
- Rule-based sound making. The system built the sound from rules about how speech works. It was flexible, but it sounded like a machine.
Both methods struggled with the same thing. They could produce the right sounds, but not the natural flow between them.
Prosody: the music of speech
Prosody is the rhythm, stress, pitch, and timing of speech. It is how you say something, not what you say.
Read this sentence three ways, stressing a different word each time:
- "I did not take your pen." (Someone else did.)
- "I did not take your pen." (I took someone else's.)
- "I did not take your pen." (I took something else.)
Same words. Three meanings. Prosody also tells you if a sentence is a question, if someone is happy or tired, and where one idea ends and the next one starts.
Getting prosody right is the main reason modern AI voices sound human. The model has to guess, from text alone, how a person would say it.
How neural TTS works
Modern systems use neural networks trained on many hours of recorded speech paired with the text that was read. Many of them follow three broad steps. This is the reverse of speech recognition.
- Text"Are you coming tonight?"
- Text analysisExpands numbers, picks pronunciations
- Acoustic modelPlans a spectrogram with timing and pitch
- VocoderTurns the spectrogram into a sound wave
Step 1: Understand the text. The system turns the text into something speakable. "Dr. Lee lives at 12 Oak Dr." needs "Doctor" the first time and "Drive" the second. "2026" might be "twenty twenty-six." It also works out how each word sounds.
Step 2: Plan the sound. An acoustic model predicts what the speech should look like as a spectrogram. This is where prosody happens. The model decides how long each sound lasts, where the pitch goes up, and where to pause. It learned these patterns from the recordings it was trained on.
Step 3: Make the sound wave. A vocoder turns that planned spectrogram into an actual sound wave you can play. Neural vocoders made a big jump in quality, because they can fill in the fine detail that makes a voice sound real.
Some newer systems merge these steps into one model. Others work more like a chatbot. They turn audio into small units called audio tokens and predict the next audio token, the way a language model predicts the next word. The goal is the same in every case: go from text to a natural sound wave.
Why context makes speech sound right
A neural TTS model reads the whole sentence, and often nearby sentences, before it speaks. That context helps it:
- Raise its pitch at the end of a question.
- Stress the new or important word.
- Pause at commas and between ideas.
- Pick the right sound for words spelled the same, like "read" (now) and "read" (past).
This is why a full paragraph often sounds better than a single sentence. The model has more clues about meaning and tone.
Many voices from one model
Modern TTS systems can often speak in many voices. They do this with a voice profile: a compact set of numbers that describes how a voice sounds. Pitch range, tone, accent, and speaking style all go into it.
If you took Embeddings Explained, this idea will feel familiar. A voice profile is like a location on a map of voices. Voices that sound alike sit close together. The model reads the text and the voice profile together, then speaks the text in that voice.
Some systems also let you guide the style: calm, cheerful, serious, or whispered. Others let you write instructions in plain language, such as "say this like a friendly teacher." Under the hood, these choices all shift how the model plans prosody. The next lessons build on this voice profile idea.
Where AI voices still go wrong
Even good AI voices make mistakes. Common ones:
- Names and rare words. The model guesses a pronunciation from spelling. Brand names, place names, and names from other languages often come out wrong.
- Numbers and symbols. "3/4" could be "three quarters," "March fourth," or "April third." Prices, dates, and codes need care.
- Wrong stress. The model may stress the wrong word and change the meaning, especially in short sentences with little context.
- Long reads. Over a long script, the energy can become flat or repetitive.
- Emotion mismatch. A cheerful tone for sad news sounds wrong, and the model cannot always tell from the text.
Many tools let you fix these with spelling hints, pauses, or pronunciation settings. The AI Voice & Audio course covers the practical side of making voiceovers. This course stays on how it works.
Key Takeaways
- Text-to-speech turns written text into a spoken sound wave.
- Prosody, the rhythm, stress, and pitch of speech, is what makes a voice sound human, and it can change meaning.
- Many neural TTS systems understand the text, plan a spectrogram with an acoustic model, then make sound with a vocoder.
- Newer systems may merge steps or predict audio tokens, like a chatbot predicts words.
- A voice profile is a set of numbers describing a voice, which lets one model speak in many voices.
- AI voices still trip on names, numbers, stress, and emotion, so listen before you publish.
Quiz
Up next ยท Lesson 3 of 5
Real-Time Voice Assistants and Why Speed Matters
5 min read
2 of 5 lessons done

