How does modern TTS work, and what makes speech generation hard in a real-time product?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Two generations of architecture. Classic two-stage: an acoustic model converts text (usually phonemes) to a mel spectrogram - Tacotron 2 autoregressively, FastSpeech 2 in parallel with explicit duration/pitch prediction - and a neural vocoder (HiFi-GAN class) converts spectrogram to waveform. Robust and fast, still widely deployed, but speaker identity is baked in at training and expressiveness is limited.
Full worked answer
Two generations of architecture. Classic two-stage: an acoustic model converts text (usually phonemes) to a mel spectrogram - Tacotron 2 autoregressively, FastSpeech 2 in parallel with explicit duration/pitch prediction - and a neural vocoder (HiFi-GAN class) converts spectrogram to waveform. Robust and fast, still widely deployed, but speaker identity is baked in at training and expressiveness is limited.
Codec language models are the modern paradigm: a neural audio codec (EnCodec/SoundStream) compresses waveforms into discrete token streams at a few hundred tokens/second; an autoregressive transformer then generates audio tokens conditioned on text - VALL-E established the pattern. Because it's just a language model over audio tokens, you get in-context learning: condition on a few seconds of reference audio and it continues in that voice - zero-shot voice cloning, which is simultaneously the headline feature and the headline safety problem. Diffusion/flow-based TTS is the other strong family, generally winning on stability, with codec-LMs winning on expressiveness and cloning.
What's actually hard:
- Prosody depends on meaning: emphasis, phrasing, and intonation require understanding the sentence - "I never said she stole it" has seven readings. LLM-adjacent TTS is closing this gap; it's why omni-models speaking natively can sound better than pipeline TTS.
- Text normalization: "Dr.", "3/4", "$1,024", "2026-07-12" - classic, unglamorous, still a top source of production bugs.
- Streaming and latency: a voice agent needs time-to-first-audio ~100-300ms, so you synthesise incrementally as LLM text streams in. The trap: prosody is a function of the whole sentence - chunk mid-clause and you get unnatural contours or pitch discontinuities at boundaries. Practical fixes: chunk at clause/sentence punctuation, small lookahead buffer, overlap-fade at joins.
- Long-form stability: AR audio models can loop, skip words, or drift in energy over paragraphs - guard with alignment checks (run ASR over the output and compare WER against the input text as an automatic regression signal).
- Cloning abuse: consent verification for voice enrolment and watermarking of synthetic audio are table stakes for any cloning feature.
What a good answer covers
- Classic two-stage: an acoustic model converts text (usually phonemes) to a mel spectrogram - Tacotron 2…
- Robust and fast, still widely deployed, but speaker identity is baked in at training and expressiveness…
- Codec language models are the modern paradigm
- Because it's just a language model over audio tokens, you get in-context learning
- Diffusion/flow-based TTS is the other strong family, generally winning on stability, with codec-LMs…
Key terms: Classic two-stage · neural vocoder · Codec language models · zero-shot voice cloning · Prosody depends on meaning · Text normalization · Streaming and latency · time-to-first-audio ~100-300ms · Long-form stability · Cloning abuse
In the glossary: In-context learning · Zero-shot · Diffusion · TTS · Alignment · WER
Interviewer follow-ups to expect
Why does sentence-chunked streaming TTS sound choppy and how do you fix it?
How would you automatically regression-test TTS quality in CI?
What changes when TTS moves inside a speech-to-speech omni-model?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep