What is FastSpeech? Controlling pronunciation duration for faster TTS
FastSpeech is a non-autoregressive TTS model that generates mel spectrograms in parallel from phoneme durations. Learn how its teacher model and length regulator work, how FastSpeech 2 adds prosody conditions, and where the reported speedups apply.
What is FastSpeech? Controlling pronunciation duration for faster TTS
FastSpeech is a non-autoregressive text-to-speech (TTS) model that generates mel spectrograms in parallel from a phoneme representation of text. Unlike autoregressive models that wait for each previous acoustic frame, it predicts many frames at once. Its duration labels and waveform vocoder are still important parts of the pipeline.
What the length regulator does
The original FastSpeech takes phonemes produced by a text frontend, not raw characters alone. It extracts phoneme durations from an autoregressive teacher’s attention alignments. A Length Regulator repeats each phoneme representation for its duration so the expanded sequence matches the target mel-frame length. A feed-forward Transformer then predicts the frames in parallel.
Illustration: if phonemes A, B, C last 2, 3, and 1 frames, expansion yields A,A,B,B,B,C. This is a conceptual example, not a model output or measurement. Incorrect durations affect speaking rate, boundaries, and prosody.
| Stage | Role | Check |
|---|---|---|
| Text frontend | Normalize text and convert it to phonemes | Language, script, pronunciation rules and lexicon coverage |
| Duration extraction | Estimate frames per phoneme from teacher alignment | Whether alignment errors become duration-label errors |
| Length regulator | Expand phoneme representations to frame count | Whether controls produce the expected speaking rate |
| Acoustic model | Predict mel frames in parallel | Compatibility with vocoder input settings |
| Vocoder | Convert mel spectrogram to waveform | Added latency, memory and audio quality |
The original paper evaluated on LJSpeech and reported 270× faster mel generation and 38× faster end-to-end synthesis than its autoregressive Transformer TTS comparison. These are results for the paper’s data, hardware, implementation, and baseline, not guarantees for other languages or systems. It also reported fewer skips/repeats in difficult cases and speed control from 0.5× to 1.5×; actual quality still depends on the frontend and duration accuracy.
FastSpeech vs. FastSpeech 2
FastSpeech’s teacher-student training uses teacher alignments and simplified mel targets, making preparation more complex and potentially losing pitch and energy variation. FastSpeech 2 trains directly on ground-truth mel targets and adds duration, pitch, and energy conditions. Its paper uses forced-alignment durations. FastSpeech 2s is a separate follow-up that attempts parallel text-to-waveform generation without a mel output stage.
Check the version when choosing an implementation: FastSpeech and FastSpeech 2 have different conditions and data preparation. Public community implementations may add a Post-Net absent from the original paper. Review the README/configuration and pin phoneme lexicon, aligner, data, mel settings, and vocoder.
Selection and validation
Measure full inference time across frontend, acoustic model, and vocoder; model-only speedups may not reflect deployment latency.
Test phonemization and durations for names, numbers, punctuation, and long sentences.
Adjust duration, pitch, or energy only after listening for naturalness and intelligibility.
Split training, validation, and test data by speaker or recording to prevent leakage.
Review pronunciation, skipped/repeated words, prosody, artifacts, and sentence-level intelligibility; record latency and memory on target hardware.
For vocoder-based systems, match mel bins, sample rate, normalization, and vocoder training configuration.
Compare with Tacotron, which generates acoustic frames autoregressively, and WaveNet, which may serve as a waveform vocoder.
Sources
Ren et al., [FastSpeech: Fast, Robust and Controllable Text to Speech](https://arxiv.org/abs/1905.09263), NeurIPS 2019.
Ren et al., [FastSpeech 2](https://arxiv.org/abs/2006.04558), ICLR 2021.
Microsoft Research, [FastSpeech 2 overview and links](https://www.microsoft.com/en-us/research/articles/fastspeech-2-fast-and-high-quality-end-to-end-text-to-speech/).
[FastSpeech project](https://speechresearch.github.io/fastspeech/) and [FastSpeech 2 project](https://speechresearch.github.io/fastspeech2/).