Introduction
Generative models, such as diffusion and flow matching, have set new benchmarks for naturalness in speech processing. However, their iterative nature—requiring multiple passes through large neural networks—has historically precluded their use in real-time communication. This paper introduces Stream.FM, a frame-causal, flow-based generative model designed for real-time speech restoration tasks, including denoising and dereverberation. Stream.FM achieves high-quality generative restoration with a total latency of just 48 ms and an algorithmic latency of 32 ms, making it suitable for live applications on consumer hardware.
Problem Statement
The field is transitioning from discriminative models, which map noisy speech directly to clean speech, to generative models that learn the underlying distribution of clean speech to refine corrupted inputs. While generative models produce superior results, they are often non-causal and computationally intensive. Existing "streaming" generative models frequently suffer from high latency or rely on "offline" speed metrics that do not reflect real-world performance. Stream.FM addresses these challenges by enabling truly streamable, low-latency generative processing for VoIP and live broadcasting.
Methodology
Stream.FM incorporates several technical innovations to meet real-time constraints:
- Flow Matching (FM): Unlike standard diffusion, Flow Matching learns a straighter transformation path from noise to clean speech, significantly improving efficiency for few-step inference.
- Buffered Streaming Inference: To eliminate redundant calculations in a causal CNN, the authors implement a rolling buffer system. This allows the model to process one frame at a time while maintaining state across multiple solver steps.
- Frame-Causal Architecture: The architecture is based on a modified NCSN++, optimized by removing time-wise downsampling and attention layers that introduce latency.
- Learned ODE Solvers: Rather than using standard numerical solvers, the authors propose learning the coefficients of Runge-Kutta solvers for specific tasks. This enables high-quality results in as few as 4 to 5 steps.
Experimental Results
Stream.FM was evaluated across six tasks: speech enhancement, dereverberation, codec post-filtering, bandwidth extension, STFT phase retrieval, and Mel vocoding. Training utilized high-quality datasets including EARS, EARS-WHAM v2, and LibriTTS.
The model was tested on actual hardware (RTX 4080 Laptop) to avoid the "offline RTF trap," where processing long utterances at once masks the overhead of frame-by-frame streaming. Stream.FM consistently outperformed streaming baselines like DEMUCS and DeepFilterNet3 in non-intrusive quality metrics such as DiMOS and NISQA.
Key findings include:
- Speech Enhancement: On the EARS-WHAM v2 dataset, Stream.FM (4 Euler steps) achieved a PESQ of 2.09 and an SI-SDR of 14.3 dB.
- Subjective Quality: MUSHRA listening tests confirmed that human listeners preferred Stream.FM over low-latency baselines for both enhancement and bandwidth extension.
- Computational Efficiency: The model operates within the 16 ms processing budget required for its 16 ms hop size on consumer GPUs.
Conclusion and Future Work
Stream.FM demonstrates that high-quality generative speech restoration is feasible for real-time applications. While it currently requires a GPU, future work will explore model compression for CPU-only deployment. Additionally, the authors aim to refine task-specific loss functions to improve metrics like Word Error Rate (WER) in codec post-filtering and to test the model's generalization across more diverse acoustic environments.
Summary updated