Abstract
MelFlow is a generative Mel vocoder designed for high-quality, real-time speech synthesis. By leveraging generative flow matching and a novel frame-wise caching scheme, MelFlow achieves a total latency of 48ms, outperforming traditional baselines like HiFi-GAN in perceptual quality. This approach bridges the gap between the high-fidelity generation of flow-based models and the strict low-latency requirements of interactive text-to-speech (TTS) applications.
Introduction
In modern TTS systems, the vocoder is responsible for converting Mel spectrograms into listenable waveforms. While generative models like diffusion have achieved state-of-the-art audio quality, their iterative nature often leads to high latency, making them unsuitable for real-time applications such as voice assistants. Most existing diffusion-based vocoders suffer from algorithmic latencies in the hundreds of milliseconds. MelFlow addresses this by introducing a streaming-capable architecture that processes audio frame-by-frame with minimal delay.
Methodology
MelFlow is built upon three core technical innovations:
- Generative Flow Matching: Unlike standard diffusion models, MelFlow utilizes flow matching to learn a transformation from a simple noise distribution to complex audio via an Ordinary Differential Equation (ODE). This method is computationally more efficient for audio synthesis tasks.
- Pseudoinverse Initialization: The model is initialized using the Moore-Penrose pseudoinverse of the Mel filterbank. This provides a "rough draft" of the Short-Time Fourier Transform (STFT) magnitude, allowing the model to focus its capacity on refining spectral details and reconstructing missing phase information.
- Efficient Streaming Caching: To enable true frame-by-frame processing, the authors modified a standard U-Net architecture to be frame-causal. By implementing a rolling buffer system that caches internal activations of every convolutional layer, the model avoids redundant calculations for past frames.
Experimental Setup
The model was trained on the EARS-WHAM v2 dataset, which contains 87 hours of clean speech at 16 kHz. For zero-shot evaluation, the authors used LibriTTS to test generalization across unseen speakers and recording environments. Performance was measured on consumer-grade hardware (NVIDIA RTX 4080 Laptop GPU) to ensure practical real-time viability.
Results and Discussion
MelFlow demonstrates significant improvements over established baselines in both quality and latency. It achieves an algorithmic latency of 32ms and a total latency of 48ms. On the EARS-WHAM dataset, MelFlow reached a PESQ score of 4.12, vastly outperforming HiFi-GAN (2.99). Furthermore, its Signal-to-Distortion Ratio (SI-SDR) of -8.8 dB indicates superior structural reconstruction compared to HiFi-GAN's -29.9 dB.
Key Insights
- Latency Reduction: By moving away from the "diffusion buffer" sliding window approach (which typically requires ~340ms latency), MelFlow's causal architecture reduces latency to 48ms without sacrificing quality.
- Joint Optimization: MelFlow operates in the complex STFT domain, simultaneously refining magnitude and reconstructing phase, leading to higher signal integrity.
- Hardware Efficiency: The model maintains a Real-Time Factor (RTF) < 1 on consumer hardware, with 5 inference steps taking approximately 13.5ms, well within the 16ms window required for 16 kHz streaming.
Limitations and Future Work
While the 5-step streaming version is highly efficient, it loses some fine spectral detail compared to a 25-step version. Additionally, MelFlow slightly lags behind some baselines in Mel-Cepstral Distance (MCD), suggesting it prioritizes perceptual quality over exact spectral envelope matching. Future research will explore distillation techniques to achieve 25-step quality in fewer inference steps, further optimizing the speed-to-quality ratio.
Summary updated