Introduction
FastPitch is a high-performance, parallel text-to-speech (TTS) model designed to achieve state-of-the-art synthesis quality by explicitly predicting and conditioning on the fundamental frequency (pitch) of speech. Unlike traditional autoregressive models, FastPitch generates mel-spectrograms over 900x faster than real-time while providing intuitive, interactive control over the prosody of the generated voice.
The Challenge of Parallel TTS
Traditional high-quality TTS models, such as Tacotron 2, are autoregressive, generating speech one frame at a time. While this produces high-quality audio, it is computationally expensive and slow for real-time deployment. Parallel models like FastSpeech addressed the speed bottleneck but introduced a "one-to-many" mapping problem: a single text sequence can be spoken with various pitches and rhythms. Without explicit guidance, these models often produce "averaged," blurry, or robotic-sounding speech. Additionally, previous parallel models required complex knowledge distillation from a teacher model.
Methodology: Architecture and Pitch Prediction
FastPitch is built upon the Feed-Forward Transformer (FFTr) architecture, consisting of two primary Transformer stacks.
The pipeline operates as follows:
- Encoder Stack: Transforms input text into a hidden representation.
- Predictor Modules: Two 1-D CNN-based modules branch from the hidden representation:
- Duration Predictor: Estimates the number of frames for each input character.
- Pitch Predictor: Estimates the average fundamental frequency ($F_0$) for every input character.
- Conditioning: During training, ground-truth pitch values are used; during inference, predicted values are converted into embeddings and added to the hidden representation.
- Regulation & Decoder Stack: The representation is expanded based on predicted durations and processed by the second Transformer stack to generate the final mel-spectrogram.
FastPitch simplifies the training process by learning directly from ground-truth mel-spectrograms, eliminating the need for teacher-student distillation.
Key Insights: Pitch as a Latent Resolver
A core innovation of FastPitch is using pitch as a "hint" to resolve the ambiguity in how text is pronounced. This explicit modeling significantly improves the sharpness and clarity of the synthesized audio.
The researchers discovered that low-resolution pitch—predicting just one pitch value per character rather than per frame—is sufficient for high-quality speech. This discretization makes it easier for users to manually edit pitch contours for creative or emotional adjustments. Furthermore, global pitch shifting in FastPitch maintains the speaker's identity, mimicking the physical behavior of vocal cords more accurately than simple digital frequency shifts.
Experimental Results
The model was evaluated on the LJSpeech 1.1 dataset (24 hours of single-speaker data) and proprietary multi-speaker data.
- Quality: In Mean Opinion Score (MOS) evaluations, FastPitch achieved a score of 4.08, outperforming Tacotron 2 (3.94) and matching the quality of top-tier autoregressive models.
- Performance: On an NVIDIA A100 GPU, FastPitch generates mel-spectrograms at 911x real-time. Combined with a WaveGlow vocoder, the full synthesis pipeline operates at 60x real-time.
- Controllability: The architecture allows for real-time prosody manipulation, such as scaling or inverting pitch to change a statement into a question without retraining.
Conclusion and Future Work
FastPitch demonstrates that explicit pitch conditioning is a powerful tool for parallel TTS. While it currently relies on external alignments for training, future iterations could integrate self-contained alignment mechanisms. Additionally, extending the model to include other prosodic features like energy or spectral tilt could further enhance expressiveness.
Summary updated