Log inStart free
LESSON 25.12 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Text-to-speech

Watch a typed word become phonemes, then mel frames, then a sound wave.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 25.12 · SPEECH BAYYES · 3 LETTERS · 3 PHONEMES
01
Stage 1 of 6 · Text to phonemes
"yes" has 3 letters. The pronunciation dictionary gives 3 phonemes: y, e, s (Y EH S).
Explain it simply

Spelling and sound do not always match. So the model starts with a pronunciation dictionary, a list of words and how to say them. Each phoneme, one sound of speech, becomes one chip. Try know to see silent letters.

The letters of yes, then 3 phoneme chips: y, e, s.

text, phonemesdurationsmel, spectrum, wavephase error
text to phonemestextphonemesyesyesdictionary entry: YES → Y EH Stext to phonemestextphonemesyesyesdictionary entry: YES → Y EH S
Toy: the 25.C2 words at 8000 samples per second; a least-squares fit, not a trained network
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
text  →  [ p1,…,pn ]\sy{txt}{data}{\text{text}} \;\to\; [\,\sy{ph}{data}{p_1, \dots, p_n}\,]
yes→[ Y, EH, S ]\text{yes} \to [\,\text{Y},\ \text{EH},\ \text{S}\,]

The dictionary maps a word to its list of phonemes.

Common mix-ups

MYTHEach letter of the text makes one sound.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01For yes at duration ×1.5, how many frames does the e get?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.