DiffVoice: Text-to-Speech with Latent Diffusion

Zhijun Liu, Yiwei Guo, Kai Yu

TL;DR

DiffVoice is a novel text-to-speech (TTS) framework that applies Latent Diffusion Models (LDMs) to speech synthesis. By encoding audio into a compact, phoneme-aligned latent space, it jointly models speech duration and content, achieving state-of-the-art naturalness and enabling powerful "zero-shot" voice cloning and text-based speech editing.

What Problem Does This Paper Address?

While Diffusion Models (DMs) have revolutionized image generation, applying them to speech (TTS) presents unique hurdles. Most existing diffusion-based TTS models operate directly on high-resolution Mel-spectrograms. This is computationally expensive and often forces the model to waste "modeling capacity" on imperceptible acoustic details rather than the core structure of speech.

Furthermore, standard models usually treat duration prediction (how long each sound lasts) as a separate, external task. This decoupling can lead to a lack of coherence between the rhythm and the actual sound of the generated voice. DiffVoice aims to solve these efficiency and modeling gaps by moving the diffusion process into a compressed "latent" space.

Methods

The DiffVoice architecture consists of three main components:

  1. Variational Autoencoder (VAE-GAN): Instead of diffusing raw spectrograms, the authors use a VAE to compress speech into a lower-dimensional latent space. Crucially, they use Dynamic Down-sampling via a CTC-based aligner to ensure the latent representation is at the "phoneme rate" (one vector per phoneme) rather than the "frame rate." They enhance this with adversarial training (a GAN loss) to ensure high-frequency details are preserved.
  2. Latent Diffusion Model (LDM): This is the "brain" of the system. It jointly models a vector containing both the phoneme duration and the latent speech representation. By diffusing these together, the model learns the relationship between how a phoneme sounds and how long it should last.
  3. Inverse Problem Solving: Because the model is a diffusion process, the authors can use generic "inverse solvers." This allows them to treat tasks like speech editing as an inpainting problem (masking a section of audio and letting the model fill it in) and zero-shot adaptation as a continuation problem (using a short reference clip as a "prompt" for the model to follow).

Datasets

The researchers evaluated DiffVoice on two standard benchmarks:

  • LJSpeech: A single-speaker dataset used to measure basic synthesis quality and naturalness.
  • LibriTTS: A large-scale multi-speaker dataset (approx. 245 hours from 1,151 speakers) used to test multi-speaker modeling and zero-shot voice cloning.

Key Insights and Ideas

  • Phoneme-Rate Latents: By aligning the latent space to phonemes rather than time frames, the model becomes significantly more efficient. It doesn't have to "guess" the timing first; it generates the timing and the sound simultaneously.
  • Joint Modeling of Duration: Treating duration as just another dimension in the diffusion space is a elegant shift away from the "duration predictor" modules found in models like FastSpeech.
  • Speech Editing as Inpainting: One of the most "aha" moments is realizing that text-based speech editing (e.g., changing one word in a recorded sentence) can be solved using the same math used to remove a person from a photo in image diffusion models.
  • Zero-Shot via Prompting: By treating voice cloning as a speech continuation task, the model can mimic a new speaker's voice using only a few seconds of reference audio without any fine-tuning.

Key Results

  • Naturalness: On the LJSpeech dataset, DiffVoice achieved a Mean Opinion Score (MOS) of 4.66, outperforming popular models like VITS (4.54) and GradTTS (4.01).
  • Multi-Speaker Performance: In multi-speaker tests on LibriTTS, DiffVoice beat VITS and FastSpeech 2 in both naturalness and speaker similarity (measured by SECS).
  • Zero-Shot Adaptation: The "Prompt-based" version of DiffVoice achieved a high similarity score (4.61 Sim-MOS), showing it can effectively clone voices it has never heard during training.
  • Speech Editing: In text-based editing tasks, DiffVoice significantly outperformed RetrieverTTS, maintaining better coherence and naturalness when replacing words within a sentence.

Limitations and Future Work

The primary limitation acknowledged is sampling speed. Like most diffusion models, DiffVoice requires hundreds of iterations (neural function evaluations) to generate audio, making it slower than "one-shot" models like VITS.

The authors suggest that future work will focus on:

  • Implementing acceleration methods (like better SDE samplers) to speed up inference.
  • Exploring alternative intermediate representations that might be even more efficient than log Mel-spectrograms.
  • Improving the waveform generation (vocoder) stage to further enhance final audio fidelity.

Summary updated

BibTeX
@inproceedings{liu2023diffvoice,
  author = {Zhijun Liu and Yiwei Guo and Kai Yu},
  title = {{DiffVoice: Text-to-Speech with Latent Diffusion}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10095100},
}

Loading related content...

Figure