Towards Error-Resilient Neural Speech Coding

Huaying Xue, Xiulian Peng, Xue Jiang, Yan Lu

Abstract

Neural audio coding has shown very promising results recently in the literature to largely outperform traditional codecs but limited attention has been paid on its error resilience. Neural codecs trained considering only source coding tend to be extremely sensitive to channel noises, especially in wireless channels with high error rate. In this paper, we investigate how to elevate the error resilience of neural audio codecs for packet losses that often occur during real-time communications. We propose a feature-domain packet loss concealment algorithm (FD-PLC) for real-time neural speech coding. Specifically, we introduce a self-attention-based module on the received latent features to recover lost frames in the feature domain before the decoder. A hybrid segment-level and frame-level frequency-domain discriminator is employed to guide the network to focus on both the generative quality of lost frames and the continuity with neighbouring frames. Experimental results on several error patterns show that the proposed scheme can achieve better robustness compared with the corresponding error-free and error-resilient baselines. We also show that feature-domain concealment is superior to waveform-domain counterpart as post-processing.

Introduction

While neural speech codecs offer impressive compression, they are notoriously "brittle" when faced with packet loss in real-world networks. Traditional audio codecs, such as Opus, utilize signal processing techniques to "fill in the blanks" when data packets are lost. In contrast, modern neural codecs are often optimized solely for high compression efficiency. When a packet is lost, the resulting "hole" in the data causes the neural decoder to produce severe distortion or silence.

Existing deep-learning solutions usually treat Packet Loss Concealment (PLC) as a post-processing step, attempting to fix the "broken" audio waveform after it leaves the decoder. However, this approach is often inefficient; if the decoder receives corrupted input, it outputs poor-quality audio that a post-processor can only partially recover. This research aims to build error resilience directly into the neural coding pipeline, allowing the system to handle missing data gracefully in real-time.

Feature-Domain Packet Loss Concealment

The proposed solution is a Feature-Domain Packet Loss Concealment (FD-PLC) module. Instead of repairing the final waveform, FD-PLC fixes the "latent features" (the compressed code) inside the decoder pipeline.

The proposed neural speech coding framework with the FD-PLC module integrated into the decoder.

The FD-PLC module is positioned immediately after inverse quantization and utilizes two types of causal layers:

  • Group-wise Temporal Self-Attention (G-TSA): This allows the model to analyze past received frames to predict missing ones, adapting its attention based on speech content.
  • Dilated Temporal Convolution Module (TCM): These layers aggregate information over a wider time window to maintain long-term speech patterns.

To ensure natural-sounding recovered speech, the system employs hybrid GAN discriminators during training: a segment-level discriminator for overall quality and a frame-level discriminator for smooth transitions. Crucially, the FD-PLC module and the decoder are trained jointly, enabling the decoder to learn how to best translate repaired features back into high-quality speech.

Experimental Evaluation

The system was trained on 600 hours of 16kHz clean speech from the ICASSP 2021 Deep Noise Suppression (DNS) Challenge, with packet loss simulated using random rates (10%–50%) and WLAN-specific Markov models. Testing was conducted on the INTERSPEECH 2022 Audio Deep Packet Loss Concealment Challenge "blind" test set, featuring real-world packet loss traces from Microsoft Teams calls.

At a fixed bitrate of 6kbps, FD-PLC demonstrated superior performance:

  • Signal Fidelity: FD-PLC achieved a significantly lower Mel Cepstral Distortion (MCD) of 1.239 dB compared to 1.502 dB for waveform-domain post-processing.
  • Perceptual Quality: In NISQA-TTS scores, FD-PLC reached 3.325, outperforming all other error-resilient baselines.
  • Robustness: The model successfully recovers burst losses up to 120ms long and degrades gracefully beyond that window.

Conclusion

Repairing latent representations in the feature domain is more effective than post-processing waveforms. By fixing features before decoding, the system leverages the generative power of the neural decoder to "hallucinate" missing speech more naturally. The FD-PLC module is strictly causal, making it viable for real-time applications. Future work may explore scaling this approach to different bitrates and optimizing the computational overhead of self-attention for low-end mobile devices.

Summary updated

BibTeX
@inproceedings{xue2022towards,
  author = {Huaying Xue and Xiulian Peng and Xue Jiang and Yan Lu},
  title = {{Towards Error-Resilient Neural Speech Coding}},
  booktitle = {Interspeech},
  year = {2022},
  url = {https://openreview.net/forum?id=PWvqlquzB8b},
}
Figure