Abstract
Packet loss is a major cause of voice quality degradation in VoIP transmissions with serious impact on intelligibility and user experience. This paper describes a system based on a generative adversarial approach, which aims to repair the lost fragments during the transmission of audio streams. Inspired by the powerful image-to-image translation capability of Generative Adversarial Networks (GANs), we propose bin2bin, an improved pix2pix framework to achieve the translation task from magnitude spectrograms of audio frames with lost packets, to noncorrupted speech spectrograms. In order to better maintain the structural information after spectrogram translation, this paper introduces the combination of two STFT-based loss functions, mixed with the traditional GAN objective. Furthermore, we employ a modified PatchGAN structure as discriminator and we lower the concealment time by a proper initialization of the phase reconstruction algorithm. Experimental results show that the proposed method has obvious advantages when compared with the current state-of-the-art methods, as it can better handle both high packet loss rates and large gaps.
Introduction
In Voice over IP (VoIP) and digital communications, audio data is transmitted as discrete packets over often-unreliable networks. When packets are delayed or lost, the resulting audio stream suffers from "holes," leading to robotic artifacts, clicking sounds, and significantly decreased intelligibility. Packet Loss Concealment (PLC) is the process of filling these missing segments. While traditional methods like waveform substitution or linear prediction work for isolated packet losses, they struggle with "bursty" losses where multiple consecutive packets are missing. This work introduces a deep learning approach to reconstruct speech that remains perceptually natural even when gaps reach up to 120 milliseconds.
The bin2bin Framework
The researchers treat audio repair as an image inpainting task by converting audio into 2D magnitude spectrograms. The proposed bin2bin framework is based on the pix2pix architecture, optimized for the unique characteristics of audio signals.
Architecture and Loss Functions
The system utilizes a U-Net generator to predict missing values in the spectrogram. A key innovation is the modification of the PatchGAN discriminator. While standard image GANs use square filters, audio packet loss typically wipes out all frequencies for a short duration, creating vertical "slices" of missing data. To address this, the authors customized the discriminator with rectangular 8x2 kernels to better capture these vertical structures.
To ensure high-quality reconstruction, the model uses a multi-part loss function:
- Traditional GAN Objective: To ensure the output looks "real" to the discriminator.
- Log-STFT Magnitude Loss: To capture fine-grained amplitude variations.
- Spectral Convergence Loss: To prioritize the reconstruction of large spectral peaks, which are critical for speech intelligibility.
Phase Reconstruction
Since the network processes magnitude spectrograms, the phase must be reconstructed to convert the image back into a waveform. The authors employ a modified Griffin-Lim algorithm initialized with the phase of the original (lossy) signal. This "warm-start" approach allows for high-quality reconstruction in fewer than 10 iterations, significantly reducing latency.
Experimental Setup
The model was trained on the VCTK Corpus, containing 44 hours of clean speech from 109 speakers. To evaluate robustness, packet loss was simulated at rates from 10% to 40%, with gap sizes reaching 120ms (equivalent to 6 consecutive lost packets).
Results and Discussion
The bin2bin method was compared against industry standards (Opus, WebRTC, EVS) and other deep learning models (PLCNet, PLAAE).
- Perceptual Quality: bin2bin achieved a PESQ score of 2.72, outperforming PLCNet (2.36) and the EVS codec (1.89). The performance advantage became even more pronounced at higher loss rates; at 40% loss, bin2bin improved PESQ scores by 27.5% over PLCNet.
- Real-Time Performance: The system is highly efficient, achieving a Real-Time Factor (RTF) of 0.17 on a standard CPU. This means it can process audio nearly six times faster than real-time playback, making it suitable for live VoIP applications.
Conclusion
The bin2bin framework demonstrates that treating audio packet loss as a specialized image inpainting task is highly effective. By tailoring the discriminator kernels to audio structures and using a combination of spectral loss functions, the model achieves state-of-the-art results in both quality and robustness. Future work will explore moving to complex-valued spectrograms to learn phase directly, potentially further improving quality and reducing computational overhead.
Summary updated