Abstract
Neural speech codecs have recently emerged as a focal point in the fields of speech compression and generation. Despite this progress, achieving high-quality speech reconstruction under low-bitrate scenarios remains a significant challenge. In this paper, we propose PSCodec, a series of neural speech codecs based on prompt encoders, comprising PSCodec-Base, PSCodec-DRL-ICT, and PSCodec-CasAN, which are capable of delivering high-performance speech reconstruction with low bandwidths. Specifically, we first introduce PSCodec-Base, which leverages a pretrained speaker verification model-based prompt encoder (VPP-Enc) and a learnable Mel-spectrogram-based prompt encoder (MelP-Enc) to effectively disentangle and integrate voiceprint and Mel-related features in utterances. To further enhance feature utilization efficiency, we propose PSCodec-DRL-ICT, incorporating a structural similarity (SSIM) based disentangled representation loss (DRL) and an incremental continuous training (ICT) strategy. To circumvent the limitations of multi-stage training, we propose PSCodec-CasAN, utilizing an advanced cascaded attention network (CasAN) to enhance representational capacity. Extensive experiments show that our proposed models significantly outperform several state-of-the-art neural codecs, exhibiting substantial improvements in both speech reconstruction quality and speaker similarity under low-bitrate conditions.
Introduction
In digital communication and AI-generated content, compressing speech into low-bitrate bitstreams is essential for efficient transmission. However, traditional neural codecs often struggle when bitrates drop below 1.5 kbps, resulting in robotic-sounding speech, loss of the original speaker's unique "voiceprint," or acoustic artifacts.
The core challenge lies in the attempt of a single encoder-decoder pipeline to pack linguistic content, tone, emotion, and speaker identity into a very small number of discrete tokens. PSCodec addresses this by disentangling "static" information (who is speaking) from "dynamic" information (what is being said), offloading speaker identity and acoustic nuances to specialized prompt encoders.
Methodology
The PSCodec family builds upon the HiFiCodec architecture through three iterative improvements:
PSCodec-Base
This baseline model introduces two specialized "Prompt Encoders" to handle distinct speech features:
- VPP-Enc: Utilizes a pre-trained speaker verification model (CAM++) to extract a fixed voiceprint.
- MelP-Enc: A learnable encoder designed to capture Mel-spectrogram features such as intonation and emotion.
These prompts are summed with the quantized features from the main encoder before being passed to the decoder, allowing the main bitstream to focus primarily on linguistic content.
PSCodec-DRL-ICT
To improve feature utilization and reduce redundancy, this version introduces:
- Disentangled Representation Loss (DRL): Employs Structural Similarity (SSIM) metrics to force different encoders to focus on unique information.
- Incremental Continuous Training (ICT): A two-stage training strategy that ensures stability by training a base model first before fine-tuning with specialized disentanglement losses.
PSCodec-CasAN
PSCodec-CasAN replaces simple summation with a Cascaded Attention Network (CasAN). This module uses six blocks of multi-head self-attention and cross-attention to adaptively fuse prompt features with speech tokens, significantly increasing the system's representational capacity.
Experimental Setup
The models were trained and evaluated using the following datasets:
- LibriTTS: Primary dataset for training and In-Domain (ID) evaluation, containing ~585 hours of English speech from over 2,400 speakers.
- LJSpeech: Used for Out-of-Domain (OOD) evaluation to test generalization to unseen speakers and recording conditions.
Key Results
PSCodec consistently outperformed state-of-the-art baselines across multiple metrics, including PESQ (quality), STOI (intelligibility), and SECS (speaker similarity).
- Ultra-low Bitrate Performance: At 675 bps, PSCodec-DRL-ICT achieved an 18.1% improvement in PESQ and a 225.5% improvement in SiSNR compared to HiFiCodec.
- Speaker Similarity: The model maintained high SECS scores even at low bitrates, ensuring the reconstructed voice sounds like the original speaker rather than a generic substitute.
- Generalization: OOD tests on LJSpeech confirmed that the model generalizes well to unseen speakers and does not rely on memorization.
Conclusion
PSCodec demonstrates that disentangling voice characteristics from speech content via prompt encoders is a highly effective strategy for low-bitrate speech compression. While the system introduces additional complexity and requires a prompt utterance during inference, the gains in reconstruction quality and speaker similarity are substantial. Future work will explore more advanced attention mechanisms and robustness to environmental noise.
Summary updated