Abstract
Speech Bandwidth Extension (BWE) improves clarity and intelligibility by restoring or inferring appropriate high-frequency content for low-bandwidth speech. Existing methods often rely on spectrogram or waveform modeling, which can incur higher computational costs and have limited high-frequency fidelity. Neural audio codecs offer compact latent representations that better preserve acoustic detail, yet accurately recovering high-resolution latent information remains challenging due to representation mismatch. We present CodecFlow, a neural codec-based BWE framework that performs efficient speech reconstruction in a compact latent space. CodecFlow employs a voicing-aware conditional flow converter on continuous codec embeddings and a structure-constrained residual vector quantizer to improve latent alignment stability. Optimized end-to-end, CodecFlow achieves strong spectral fidelity and enhanced perceptual quality on 8 kHz to 16 kHz and 44.1 kHz speech BWE tasks.
Introduction
Speech Bandwidth Extension (BWE) is the process of reconstructing missing high-frequency components from low-bandwidth audio signals. This task is essential for enhancing the quality of legacy recordings and improving speech intelligibility in telecommunication systems. While traditional methods have explored waveform and spectrogram modeling, they often face a trade-off between computational efficiency and perceptual fidelity. Waveform models are typically expensive to run, while spectrogram-based approaches can suffer from phase loss or muffled outputs.
Neural audio codecs, such as the Descript Audio Codec (DAC), provide a promising alternative by offering compact, high-fidelity latent representations. However, mapping low-resolution (LR) latents to high-resolution (HR) latents is non-trivial due to "representation mismatch," where subtle signal variations cause significant instability in the discrete latent space.
The CodecFlow Framework
CodecFlow addresses these challenges by operating directly on continuous codec embeddings using a generative approach. The framework integrates three core components to ensure stable and high-fidelity reconstruction:
- Voicing Extractor: This module classifies input frames as silence, voiced, or unvoiced. These labels serve as a structural prior, allowing the model to distinguish between harmonic (voiced) and noise-like (unvoiced) components.
- Flow Embedding Converter (FEC): Utilizing Conditional Flow Matching (CFM), the FEC learns a velocity field that transforms a simple base distribution into the complex distribution of HR codec latents. This process is conditioned on the LR input and the extracted voicing information.
- Structure-Constrained Residual Vector Quantization (SC-RVQ): To stabilize the mapping between continuous embeddings and discrete tokens, CodecFlow introduces a margin loss to sharpen decision boundaries and a monotonic constraint to ensure predictable energy decay across quantization layers.
The entire pipeline is optimized end-to-end, fine-tuning the codec's encoder and decoder alongside the flow-matching converter to maximize acoustic coherence.
Key Insights: Voicing and Latent Stability
A central finding of this work is that continuous codec embeddings are more stable targets for generative modeling than raw waveforms. While waveforms can vary significantly across resolutions, their latent embeddings remain relatively aligned.
Furthermore, the authors identified a "voicing gap": LR and HR embeddings are highly similar in voiced regions but diverge significantly in unvoiced segments. By explicitly conditioning the model on voicing labels, CodecFlow can focus its generative capacity on the regions where the representation mismatch is most pronounced.
By employing Flow Matching instead of traditional Diffusion, CodecFlow also achieves high-quality results with significantly fewer inference steps (e.g., 25 steps with an Euler solver), making it suitable for efficient, real-time applications.
Experimental Results
CodecFlow was evaluated on standard speech corpora, including LibriTTS, VCTK, and TIMIT, across 8kHz to 16kHz and 8kHz to 44.1kHz tasks.
- Spectral Fidelity: CodecFlow achieved the lowest Log-Spectral Distance (LSD) across all tasks, indicating superior frequency magnitude reconstruction.
- Perceptual Quality: The model outperformed baselines in VISQOL and NISQA (MOS and Coloration) scores, effectively eliminating common artifacts like "metallic" noise or muffling.
- Visual Consistency: Spectrogram analysis confirmed that CodecFlow reconstructs clear, continuous harmonic structures up to 22kHz, avoiding the fragmented textures often seen in competing models.
Conclusion
CodecFlow demonstrates that performing bandwidth extension in the latent space of neural audio codecs is both efficient and effective. By leveraging Conditional Flow Matching and explicit voicing information, the framework overcomes the instabilities of discrete latent mapping. Future work will explore scaling this approach to even higher sampling rates and testing its robustness against environmental noise and non-speech audio.
Summary updated