Abstract
AlignTTS is a non-autoregressive text-to-speech (TTS) model designed to achieve high-quality speech synthesis and rapid inference without relying on a pre-trained "teacher" model for alignment. By integrating a novel alignment loss based on the Baum-Welch algorithm, AlignTTS learns to map text to mel-spectrograms directly. Experimental results on the LJSpeech dataset demonstrate that AlignTTS outperforms existing models like FastSpeech and Transformer TTS in terms of speech quality while maintaining an inference speed over 50 times faster than real-time.
Introduction
The development of Text-to-Speech (TTS) systems involves a trade-off between audio quality and generation speed. Autoregressive models, such as Tacotron 2, produce high-fidelity audio but are computationally expensive due to their frame-by-frame generation process. Conversely, non-autoregressive models like FastSpeech offer significant speedups through parallel generation but typically require external duration labels from a pre-trained teacher model. This dependency can limit the student model's performance to the quality of the teacher's alignment.
AlignTTS addresses this "alignment problem" by proposing a parallel architecture that learns its own alignment from scratch. This approach eliminates the need for a teacher model, potentially avoiding the propagation of errors or "smearing" often observed in traditional attention-based alignments.
Methodology
The AlignTTS architecture is built upon three primary components: the Feed-Forward Transformer (FFT), the Duration Predictor, and the Mix Density Network (MDN).
Feed-Forward Transformer (FFT)
The FFT serves as the backbone of the system, converting text embeddings into mel-spectrograms. It incorporates a "length regulator" that expands the hidden states of the text sequence according to predicted durations, ensuring the output matches the target audio length.
Mix Density Network (MDN) and Alignment Loss
The core innovation of AlignTTS is the use of an MDN to model the mel-spectrum distribution of each character as a multi-dimensional Gaussian. During training, the model employs a novel Alignment Loss inspired by the Baum-Welch algorithm. By utilizing dynamic programming to consider all possible alignments between text and audio, the model calculates the total probability of the mel-spectrum sequence. This allows AlignTTS to automatically converge on an optimal alignment without explicit external guidance.
Duration Predictor
During the inference phase, the Duration Predictor estimates the pronunciation length of each character, which is then used by the length regulator to generate the final mel-spectrogram.
Experiments
The researchers evaluated AlignTTS using the LJSpeech dataset, which contains approximately 24 hours of audio from a single speaker. The model was trained on 12,600 samples and tested on a held-out set of 500 samples.
Results and Discussion
AlignTTS demonstrates superior performance in both quality and efficiency compared to baseline models.
Speech Quality
In Mean Opinion Score (MOS) evaluations, AlignTTS achieved a score of 4.05 ± 0.12, surpassing both the autoregressive Transformer TTS (4.02) and the non-autoregressive FastSpeech (3.88). This suggests that the learned alignment is more precise than standard attention mechanisms, leading to more accurate mel-spectrogram generation.
Inference Efficiency
AlignTTS is highly optimized for production, capable of synthesizing 10 seconds of speech in just 0.18 seconds. This performance is over 50 times faster than real-time, significantly outperforming autoregressive alternatives.
Key Insights
The success of AlignTTS highlights the effectiveness of adapting classical statistical algorithms, like Baum-Welch, to modern deep learning architectures. By removing the "teacher bottleneck," the system achieves higher robustness and sharper character-to-frame mappings.
Conclusion
AlignTTS provides a robust and efficient framework for parallel TTS without the need for explicit alignment labels. While the training process involves multiple phases, the resulting model offers a compelling balance of high audio quality and exceptional inference speed. Future research may explore extending this alignment strategy to multi-speaker datasets and more expressive speech synthesis.
Summary updated