Making Things with AILesson 50 of 84

Module 6 · Voice and speech

From text to a waveform

In this lesson

  • 8 min read
  • 5 reading sections
  • Knowledge check
  • Lesson 2 of 9 in this chapter

This chapter’s goalDescribe the path from text to a waveform through tokens, an acoustic model and a vocoder, judge what a voice-cloning claim requires in consent and disclosure, and specify a verification control that defeats voice-impersonation fraud without relying on detection.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
From text to a waveform, as it is done nowTextEverything aboutdelivery (thestress, thephrasing, wherethe breath goes)has to beinferred,because none ofit is in thewords.A languagemodel overaudio tokensA neural codecgives audio avocabulary:fifty toseventy-fivetokens a secondper codebook,severalcodebooksstacked, so asecond of soundis a few hundredintegers.It samplesrather thanaveragesThis is whatremoved theflatness. Themodel commits toone deliveryinstead ofblending everycorrect one, andthat is also whyit can skip aword or invent anoise.Codec decoderTokens back intoa waveform.A personlistens toevery lineGenerate line byline, re-rollthe failures,assemble inAudacity. Nobodygenerates tenminutes in onepass and shipsit.The old pipeline predicted a spectrogram from phonemes, which is an averaging problem: many deliveriesof a sentence are correct and the average of them is the flat one. Sampling is the whole difference,and it brings the whole failure family with it.
The old pipeline predicted a spectrogram from phonemes, which is an averaging problem: many deliveries of a sentence are correct and the average of them is the flat one. Sampling is the whole difference, and it brings the whole failure family with it.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 6Free · no account needed
Lesson steps

The old pipeline, and why it sounded like that

For decades, text-to-speech had three stages. Convert text to phonemes with pronunciation rules and a dictionary. Predict a spectrogram (a picture of the sound’s frequency content over time) from those phonemes. Convert the spectrogram to a waveform with a vocoder.

Each stage was separately engineered, and the joins were audible. Concatenative systems stitched together recorded fragments, which is why announcements at railway stations have that particular seam between words. Parametric systems produced the flat, buzzy voice everyone associates with a computer.

The quality ceiling came from the middle stage. Predicting a spectrogram from phonemes is an averaging problem: many real deliveries of a sentence are correct, and a model trained to minimise error over all of them produces the average of them, which is the flat one.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Stuck on something?Ask Yetunde, your AI tutor

How to cite: Addaly (2026) ‘From text to a waveform’, in Making Things with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/making-things-with-ai/how-speech-is-made (Accessed: 29 November 2026).