Spelling and Sound.
Chenzi Xu · chenzi.xu@ntu.edu.sg
1. “Okay lah, we'll order 2 kopi”: what did the normalizer do to “2” before scoring?
rewrote it as “two” on both sides, so a correct transcript went from 100% WER to 0%
2. What can one overall WER hide?
a gap between groups: report WER for each group, with utterance and word counts
3. Forced alignment is Viterbi with what already known?
the words: Viterbi decides only when each phone starts and ends
4. What does a forced alignment give every phone?
a start and an end time, so a duration
5. What happens to a word missing from the aligner's dictionary, like “makan”?
it gets no phones (MFA labels it spn, spoken noise); the fix is one dictionary line
A1 put a recognizer on trial; A2 does the same for a synthesizer. Everything task-specific is in the briefs on NTULearn.
This is the classical pipeline. Neural models (Week 11) learn some of these steps inside the network, but most still normalize text first.
“2 kopi” → “two kopi” on both sides
Any fixed rule works
“2 kopi” → which words?
The reading must fit the context
| written | usual reading | another reading | what decides |
| “$2.50” | two dollars fifty | two fifty | house style |
| “Dr” | Doctor (Dr Tan) | Drive (Holland Dr) | position: before a name, or after a street name |
| “23/10” | the 23rd of October | twenty-three over ten | a date or a number? |
| “Blk 210” | Block two-ten | Block two-one-zero | local habit |
| “MRT” | M R T | “murt” | an initialism, read as letters |
The surrounding words, not the token, decide the reading. An A2 example question: does the model read “S$3.50, 12/11, Blk 123” as a Singaporean would?
the desert / to desert
ˈdɛzərt dɪˈzɜrt
record (noun) / record (verb)
ˈrɛkərd rɪˈkɔrd
stress and vowels flip with the syntax
Set the source and the formants by hand; the sound is calculated.
Try it: KlattGrid in Praat
Cut one speaker’s recordings into small units and join them into new sentences.
Try it: a cost lattice
Shape a virtual vocal tract, push air through it, and physics makes the sound.
Try it: Pink Trombone
All three are pre-neural (neural models: Week 11).
Each renders the same plan from the front end: phones, durations and F0.
Formant synthesis is
source-filter theory, run as a generator.
Week 3: a vowel is a source shaped by a filter.
Here: choose the source, set the formants by hand, and a vowel comes out.
Only the filter changes; the source is the same for Week 1's /i/, /ɑ/ and /u/. The sound: Praat's KlattGrid making the same sweep.
A preview of Week 12: a voice is a person.
Which formant moved /i/ toward /ɑ/: F1, F2, or both?
Built from numbers.
Next: built from recordings.
After the break: concatenative synthesis, which joins pieces of recorded speech, then articulatory synthesis.
Sources: Abgrall et al. (2013); Harris (1953); Peterson, Wang & Sivertsen (1958); Dixon & Maxey (1968); Olive (1977); Klatt (1987); Moulines & Charpentier (1990); Hunt & Black (1996); Burdick (2003); Capes et al. (2017); van den Oord et al. (2016).
Did the vowel change, or only the pitch? (The KlattGrid /ɑ/ goes from 120 Hz to 160 Hz.)
Unit selection: the cheapest path
through real recordings.
Target cost: does this recording fit the plan? Join cost: does it join smoothly to its neighbor?
Viterbi finds the sequence with the lowest total.
V: cheapest total from the start to u (a running total)
u: a candidate in this column · p: one in the previous column
Research-grade: Birkholz's VocalTractLab.
Press start, then click once inside to begin the sound; drag the tongue control or touch the tract. Works offline; the original is at dood.al/pinktrombone.
Build the spectrum from rules. Tiny, controllable, robotic. Any sound, no data.
Join recorded speech fragments. Natural on common text, brittle on rare, and huge.
Simulate the tract. Physically realistic; slow and hard to control; rarely used in products.
A formant: hand-tune the vowels and particles yourself
B unit selection: record a Singlish speaker for many hours
C articulatory: simulate a Singaporean vocal tract
Fix the text.
Then play the tract.
Stretch (take-home): add “kopi” and “lah” to the front-end dictionary with phone strings, and synthesize “can lah” in your KlattGrid voice.
illustrative layout: F1 and F2 for /i ɑ u/ (Peterson & Barney means), as you will set them in KlattGrid
KlattGrid (notebook Part 1) was done in Lecture I; start at Part 2. The take-home is optional.
The front-end task of mapping written words to their pronunciations, by dictionary lookup with a rule-based or statistical model for unseen words and context for heteronyms.
Course wording. Taylor (2009), Text-to-Speech Synthesis, ch. “Pronunciation”, 192–224; lexicon: CMUdict.Rule-based synthesis that generates speech from an explicit source (voicing or noise) and a set of resonators at the formant frequencies: the source-filter model, run as a generator.
Klatt (1980), JASA 67(3), 971–995; Praat's KlattGrid implements Klatt & Klatt (1990).Concatenative synthesis that chooses, from a large recorded database, the unit sequence minimizing a combination of target cost (fit to the specification) and join cost (splice quality), by dynamic programming.
Hunt & Black (1996), Proc. ICASSP 1996, vol. 1, 373–376; J&M Ch 17, Historical Notes (Aug 2026 draft).Synthesis that simulates the physical vocal tract, generating sound from a model of the articulators and airflow rather than from acoustic targets or recordings.
J&M Ch 17, Historical Notes (Aug 2026 draft); tools: Thapen (2017), Pink Trombone; Birkholz (2013), PLoS ONE 8(4), e60603 (VocalTractLab).Expand for speech, and give one alternative reading each: “Dr Tan lives at 21 Jln Besar, unit 03-11, and paid $4.50.” Which expansions need context the string alone does not provide?
A dictionary lists “read” with two pronunciations. Why can G2P not choose between them by lookup alone, and what information resolves it? Name one other English heteronym.
Two target diphones, two candidates each. Target costs: col 1 [0.2, 0.6]; col 2 [0.5, 0.3]. Join cost: 0 if both come from the same recording (i = j), otherwise 0.1. Find the minimum-total path and its cost.
Match each approach (formant, unit selection, articulatory) to “models the output / reuses recordings / models the cause”. Which degrades most gracefully on a brand-new Singlish word in no database, and why?
Worked answers in the appendix at the end of this deck.
1. Synthesis is recognition reversed: the text leaves out pitch, timing and voice, so the synthesizer must supply them
2. Half of classical TTS is the front end: normalization and G2P, linguistics before acoustics
3. Three back ends: model the output, reuse recordings, model the cause
4. Unit selection is the table trick's fourth appearance: the cheapest path of target plus join costs through a lattice of recordings
Chapter numbers follow the Aug 2026 draft. For today: §17.1 and the Historical Notes (formant, concatenative and articulatory synthesis; unit selection). §§17.2–17.4 preview Week 11; §17.4 (MOS, WER, speaker similarity) is also A2 reading. web.stanford.edu/~jurafsky/slp3/17.pdf
Front end: Speech Processing, Module 5. Unit selection: Speech Synthesis, Module 2.
Skim them so the interface is familiar before the practical. fon.hum.uva.nl/praat/manual/KlattGrid.html
By the synthesizer's creator. Free copy (sail.usc.edu)
The classical text-to-speech textbook (library copy).
The models used in the Week 11 practical. huggingface.co/learn/audio-course/chapter6/introduction
§§1–2 only, then the audio samples. arxiv.org/abs/1712.05884
The blog, not the paper: listen to the embedded audio. deepmind.google/blog/wavenet-a-generative-model-for-raw-audio
Skim the discriminator design. arxiv.org/abs/2010.05646
Introduction and demo samples; the math is heavy. arxiv.org/abs/2106.06103
A voice is a
filter, a library, or a tract.
Jurafsky, D. & Martin, J. H. Speech and Language Processing, 3rd ed. (Aug 2026 draft). Ch. 17, “Text-to-Speech”: §17.1 and the Historical Notes. The reading.
Klatt, D. H. (1980). “Software for a cascade/parallel formant synthesizer.” JASA 67(3), 971–995. The formant synthesizer.
Klatt, D. H. & Klatt, L. C. (1990). “Analysis, synthesis, and perception of voice quality variations among female and male talkers.” JASA 87(2), 820–857. The version Praat's KlattGrid implements.
Klatt, D. H. (1987). “Review of text-to-speech conversion for English.” JASA 82(3), 737–793.
Liberman, A. M., Harris, K. S., Hoffman, H. S. & Griffith, B. C. (1957). “The discrimination of speech sounds within and across phoneme boundaries.” Journal of Experimental Psychology 54(5), 358–368. Categorical perception.
Peterson, G. E. & Barney, H. L. (1952). “Control methods used in a study of the vowels.” JASA 24(2), 175–184. Formant values in the vowel sweep.
Abgrall, M., Blondé, P., Lours, M., Prodhomme, M. & Dimarcq, N. (2013). “Les 80 ans de l'horloge parlante.” l'Astronomie, February, 32–37. The 1933 Paris speaking clock.
Harris, C. M. (1953). “A study of the building blocks in speech.” JASA 25(5), 962–969.
Peterson, G. E., Wang, W. S-Y. & Sivertsen, E. (1958). “Segmentation techniques in speech synthesis.” JASA 30(8), 739–742. The diphone (“dyad”).
Dixon, N. R. & Maxey, H. D. (1968). “Terminal analog synthesis of continuous speech using the diphone method of segment assembly.” IEEE Trans. Audio and Electroacoustics 16(1), 40–50.
Olive, J. P. (1977). “Rule synthesis of speech from dyadic units.” Proc. ICASSP 1977, vol. 2, 568–570.
Moulines, E. & Charpentier, F. (1990). “Pitch-synchronous waveform processing techniques for text-to-speech synthesis using diphones.” Speech Communication 9(5–6), 453–467. PSOLA.
Burdick, A. (2003). “The mathematics of artificial speech.” Discover, January. AT&T Natural Voices.
Hunt, A. J. & Black, A. W. (1996). “Unit selection in a concatenative speech synthesis system using a large speech database.” Proc. ICASSP 1996, vol. 1, 373–376. Target and join costs.
Gonzalvo, X., Tazari, S., Chan, C., Becker, M., Gutkin, A. & Silen, H. (2016). “Recent advances in Google real-time HMM-driven unit selection synthesizer.” Proc. Interspeech 2016, 2238–2242.
Capes, T., Coles, P., Conkie, A., et al. (2017). “Siri on-device deep learning-guided unit selection text-to-speech system.” Proc. Interspeech 2017, 4011–4015.
Taylor, P. (2009). Text-to-Speech Synthesis. Cambridge University Press. “Pronunciation” (192–224); “Unit-selection synthesis” (474–516).
Carnegie Mellon University. The CMU Pronouncing Dictionary (CMUdict). speech.cs.cmu.edu/cgi-bin/cmudict. The G2P lexicon.
King, S. Speech Processing (Module 5) and Speech Synthesis (Module 2) course materials. speech.zone, University of Edinburgh.
Thapen, N. (2017). Pink Trombone, v1.1. dood.al/pinktrombone. MIT License; the live demo runs from a copy inside these slides (four page-layout sizes given “px” units; the author link opens in a new tab; otherwise unchanged).
Birkholz, P. (2013). “Modeling consonant-vowel coarticulation for articulatory speech synthesis.” PLoS ONE 8(4), e60603. VocalTractLab: vocaltractlab.de.
van den Oord, A., Dieleman, S., Zen, H., et al. (2016). “WaveNet: A generative model for raw audio.” arXiv:1609.03499.
Medeiros, J. (2015). “How Intel gave Stephen Hawking a voice.” Wired, 13 January. Hawking's formant voice.
“Dr” → Doctor (before a name), not Drive; “21” → twenty-one; “Jln” → Jalan; “03-11” → oh three, eleven (a unit number), not “three minus eleven”; “$4.50” → four dollars fifty. Context decides “Dr” and “03-11”: the token alone cannot.
One spelling, two pronunciations, so lookup returns both. The choice needs the tense (present “read” /riːd/, past “read” /rɛd/), which comes from the surrounding words (yesterday, will), not from the word itself. Another heteronym: “lead” (verb /liːd/, the metal /lɛd/), where the part of speech decides; or “tear”, “bow”, “live”.
Paths (col1 → col2): 1→1 = 0.2 + 0 + 0.5 = 0.7; 1→2 = 0.2 + 0.1 + 0.3 = 0.6; 2→1 = 0.6 + 0.1 + 0.5 = 1.2; 2→2 = 0.6 + 0 + 0.3 = 0.9. Minimum is 1 → 2, cost 0.6: the cheap target in column 1 is worth a small join penalty to reach the cheap target in column 2.
Formant synthesis models the output, unit selection reuses recordings, articulatory synthesis models the cause. Most graceful on a new word: formant (or articulatory), since rules or physics need no recording of the word; unit selection can only recombine what was recorded, so a new context forces a poor join.