CoDiff-VC: A Codec-Assisted Diffusion Model for Zero-shot Voice Conversion

Yuke Li, Xinfa Zhu, Hanzhao Li, Jixun Yao, Wenjie Tian, XiPeng Yang, YunLin Chen, Zhifei Li, Lei XiearXiv 2024 · DOI

Abstract

Zero-shot voice conversion (VC) aims to transform a source speaker's identity into a target speaker's using only a brief reference clip. Traditional methods often struggle with imperfect disentanglement of content and timbre, leading to "timbre residue," or suffer from quality degradation in two-stage (spectrogram-to-vocoder) pipelines. We propose CoDiff-VC, an end-to-end framework that leverages a single-codebook speech codec for robust content extraction and a multi-scale diffusion model for high-fidelity waveform generation. By incorporating Mix-Style Layer Normalization (MSLN) and a dual classifier-free guidance strategy, CoDiff-VC achieves superior speaker similarity and naturalness compared to existing state-of-the-art models.

Introduction

Zero-shot voice conversion is a critical task in speech synthesis, requiring models to generalize to unseen speakers without additional fine-tuning. Current mainstream approaches face three primary hurdles:

  1. Imperfect Disentanglement: Failure to separate linguistic content from timbre often results in the source speaker's characteristics leaking into the output.
  2. The Two-Stage Gap: The common practice of predicting mel-spectrograms before using a separate vocoder introduces artifacts and limits overall audio quality.
  3. Multi-scale Timbre Representation: Global embeddings often miss subtle nuances, while fine-grained attention-based methods can be unstable with short references.

CoDiff-VC addresses these issues through a unified architecture that processes content and timbre at multiple scales, generating high-fidelity waveforms directly.

Methods

CoDiff-VC introduces an end-to-end architecture consisting of three main components designed to maximize disentanglement and generative quality.

CoDiff-VC Architecture Overview

Linguistic Content Extraction

The framework utilizes a pre-trained single-codebook codec as an information bottleneck. By restricting the bandwidth of the content representation, the model is forced to prioritize linguistic information over acoustic details. To further "scrub" the source speaker's identity, Mix-Style Layer Normalization (MSLN) is introduced to perturb timbre information within the discrete tokens.

Multi-scale Speaker Timbre Modeling

Instead of a single global embedding, the model extracts both coarse-grained (global) and fine-grained (frame-level) representations. The coarse features are injected into the diffusion model's timestep embedding, while fine-grained features are integrated via cross-attention layers within the residual blocks.

Dual Classifier-Free Guidance (CFG)

During inference, the model employs a dual guidance strategy: annealing the content guidance (decreasing it over time) while hardening the timbre guidance (increasing it). This allows the model to establish global linguistic structure early in the diffusion process and refine speaker-specific details toward the end.

Experimental Results

The model was trained on the LibriTTS dataset (~580 hours from 2,390 speakers) and evaluated on unseen speakers to test zero-shot capability. CoDiff-VC outperformed several strong baselines, including YourTTS and SEF-VC, across both subjective and objective metrics.

Performance Comparison of CoDiff-VC against Baselines

As shown in the results table, CoDiff-VC achieved a Speaker Similarity (MOS) of 3.94 and a Naturalness (MOS) of 4.07, significantly outperforming the best baselines. It also recorded the lowest Word Error Rate (WER: 3.12%), proving that the conversion process maintains high intelligibility. The high Speaker Cosine Similarity (SCOS: 0.839) indicates that the converted voice is mathematically very close to the target reference.

Conclusion

CoDiff-VC demonstrates that combining codec-based content extraction with multi-scale diffusion modeling effectively solves the disentanglement and quality issues in zero-shot VC. While the iterative nature of diffusion models currently limits inference speed, the high fidelity and similarity achieved represent a significant step forward. Future work will explore fast-sampling techniques like consistency models to enable real-time performance.

Summary updated

BibTeX
@misc{li2024codiff,
  author = {Yuke Li and Xinfa Zhu and Hanzhao Li and Jixun Yao and Wenjie Tian and XiPeng Yang and YunLin Chen and Zhifei Li and Lei Xie},
  title = {{CoDiff-VC: A Codec-Assisted Diffusion Model for Zero-shot Voice Conversion}},
  year = {2024},
  eprint = {2411.18918},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.18918},
}
Figure