DiffRENT: A Diffusion Model for Recording Environment Transfer of Speech

Jaekwon Im, Juhan Nam

TL;DR

DiffRENT (Diffusion model for Recording ENvironment Transfer) is a novel generative framework that can "re-record" a speech clip into a new environment. By utilizing a diffusion-based architecture, it can faithfully transfer the specific microphone characteristics, room acoustics, and ambient noise of a reference recording to a target speech signal while perfectly preserving the original spoken content.

What Problem Does This Paper Address?

In audio production, the "vibe" of a recording is dictated by the environment: the specific microphone used, its distance from the speaker, the room's echo (reverberation), and the background hum. Matching these conditions is crucial for tasks like Automated Dialogue Replacement (ADR) in film, where studio-recorded lines must blend seamlessly with location-recorded audio.

Existing solutions usually tackle these problems in isolation—either focusing only on denoising (speech enhancement) or only on adding reverb. Previous "acoustic matching" models often struggle with generalization, frequently overfitting to training data or failing to replicate realistic, non-stationary background noises. The authors of this paper sought a unified, holistic model that can handle any recording environment transfer, whether it's cleaning up a noisy clip or making a clean clip sound like it was recorded in a specific messy living room.

Methods

The authors propose Diff-R-EN-T, which consists of three specialized modules:

  1. Recording Environment Encoder: Based on the ECAPA-TDNN architecture (originally designed for speaker verification), this module extracts a "style" embedding from a reference audio clip. It captures the static acoustic features of the environment (mic type, room size) while ignoring the actual words being said.
  2. Content Enhancer: A ResUNet-based module that acts as a pre-filter. It processes the input speech to remove its original environment, providing the generative model with a "cleaner" representation of the speech content to work with.
  3. Diffusion Decoder: The heart of the system. This is a conditional diffusion probabilistic model (using either a WaveNet or U-Net backbone) that generates the final mel-spectrogram. It takes the "cleaned" content and the "environment embedding" as inputs and iteratively refines Gaussian noise into the target speech.

The model is trained to disentangle content from environment, allowing it to swap the "acoustic container" of a speech signal without changing the "message."

Datasets

The researchers used a mix of real-world and synthetic data to ensure robustness:

  • DDS (Device-Degraded Speech) Dataset: Contains 12 hours of clean speech paired with versions re-recorded across various microphones and rooms.
  • Data Augmentation: To improve generalization, they convolved clean speech with over 1,200 impulse responses from the DetmoldSRIR and MIT Impulse Response datasets and added noise from the REVERB Challenge database.
  • LibriSpeech: Used primarily to train a robust, speaker-independent HiFi-GAN vocoder, ensuring the final audio quality remains high even when generating noisy or reverberant speech.

Key Insights and Ideas

  • Disentanglement via Enhancement: One of the cleverest moves is the "Content Enhancer." By trying to clean the input speech before passing it to the diffusion model, the authors make it much easier for the decoder to apply a new environment without getting "confused" by the original one.
  • Repurposing Speaker ID Models: The use of ECAPA-TDNN for environment encoding is insightful. By removing the classification layers (AAM-softmax) used for identifying people, the architecture becomes excellent at capturing the "static" spectral signatures of hardware and room acoustics.
  • Holistic Transfer: Unlike previous models that might just add a reverb tail, DiffRENT treats noise, EQ, and reverb as a single, inseparable "environment," leading to much more realistic results in "Clean-to-Env" scenarios.

Key Results

The authors evaluated the model across three tasks: Env-to-Clean (enhancement), Clean-to-Env (matching), and Env-to-Env (full transfer).

  • Objective Performance: In speech enhancement (Env-to-Clean), DiffRENT achieved a PESQ score of 1.7, outperforming the state-of-the-art VoiceFixer (1.6). In acoustic matching, it significantly outperformed previous baselines in Log-Spectral Distance (LSD) and SSIM.
  • Subjective Quality: In listening tests, participants rated DiffRENT higher than VoiceFixer and traditional acoustic matching models for both content preservation and environment similarity.
  • Visual Evidence: t-SNE visualizations of the environment embeddings showed clear, distinct clusters for different recording setups, proving the encoder successfully learned to "fingerprint" specific environments regardless of who was speaking.

Limitations and Future Work

While impressive, the authors note a few areas for improvement:

  • Inference Speed: Like most diffusion models, DiffRENT requires multiple refinement steps, making it slower than "one-shot" GAN-based models. The authors plan to investigate techniques to reduce the number of steps required for high-quality synthesis.
  • Vocoder Dependencies: The final audio quality is still somewhat capped by the neural vocoder. Future work may involve integrating the vocoder more deeply into the diffusion process or improving its ability to handle extreme noise.
  • Fine-grained Control: While the model transfers an environment from a reference, giving users "knobs" to manually adjust reverb time or noise floor without a reference clip remains a future goal.

Summary updated

BibTeX
@inproceedings{im2024diffrent,
  author = {Jaekwon Im and Juhan Nam},
  title = {{DiffRENT: A Diffusion Model for Recording Environment Transfer of Speech}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  doi = {10.1109/icassp48485.2024.10447818},
}
Figure