DiffVoice: Text-to-Speech with Latent Diffusion

Zhijun Liu, Yiwei Guo, Kai Yu

Abstract

In this work, we present DiffVoice, a novel text-to-speech model based on latent diffusion. We propose to first encode speech signals into a phoneme-rate latent representation with a variational autoencoder enhanced by adversarial training, and then jointly model the duration and the latent representation with a diffusion model. Subjective evaluations on LJSpeech and LibriTTS datasets demonstrate that our method beats the best publicly available systems in naturalness. By adopting recent generative inverse problem solving algorithms for diffusion models, DiffVoice achieves the state-of-the-art performance in text-based speech editing, and zero-shot adaptation.

Introduction

While Diffusion Models (DMs) have revolutionized image generation, applying them to text-to-speech (TTS) synthesis presents unique challenges. Most existing diffusion-based TTS models operate directly on high-resolution Mel-spectrograms. This approach is computationally expensive and often forces the model to expend its capacity on imperceptible acoustic details rather than the core linguistic and prosodic structure of speech. Furthermore, standard models usually treat duration prediction—the timing of each sound—as a separate, external task, which can lead to a lack of coherence between the rhythm and the actual sound of the generated voice.

DiffVoice addresses these efficiency and modeling gaps by moving the diffusion process into a compressed "latent" space. By encoding audio into a compact, phoneme-aligned representation, the framework jointly models speech duration and content, achieving state-of-the-art naturalness and enabling powerful downstream applications like zero-shot voice cloning and text-based speech editing.

Methodology

The DiffVoice architecture is comprised of three primary components designed to streamline the generative process:

1. Variational Autoencoder (VAE-GAN)

Instead of diffusing raw spectrograms, DiffVoice uses a VAE to compress speech into a lower-dimensional latent space. A critical innovation here is the use of Dynamic Down-sampling via a CTC-based aligner. This ensures the latent representation is at the "phoneme rate" (one vector per phoneme) rather than the standard "frame rate." The VAE is further enhanced with adversarial training (a GAN loss) to ensure that high-frequency details and audio fidelity are preserved during reconstruction.

2. Latent Diffusion Model (LDM)

The LDM serves as the generative core of the system. It jointly models a vector containing both the phoneme duration and the latent speech representation. By diffusing these elements together, the model learns the intrinsic relationship between how a phoneme sounds and how long it should last, leading to more natural prosody.

3. Inverse Problem Solving

Because the model is built on a diffusion process, it can leverage generic inverse solvers for specialized tasks. This allows the researchers to treat text-based speech editing as an inpainting problem—masking a section of audio and allowing the model to fill it in based on new text—and zero-shot adaptation as a continuation problem, using a short reference clip as a "prompt" for the model to follow.

Experimental Results

The researchers evaluated DiffVoice on two standard benchmarks: LJSpeech (single-speaker) and LibriTTS (multi-speaker, ~245 hours).

Naturalness and Quality

On the LJSpeech dataset, DiffVoice achieved a Mean Opinion Score (MOS) of 4.66, significantly outperforming popular models like VITS (4.54) and GradTTS (4.01). In multi-speaker tests on LibriTTS, DiffVoice also surpassed VITS and FastSpeech 2 in both naturalness and speaker similarity (measured by SECS).

Zero-Shot Adaptation and Editing

The "Prompt-based" version of DiffVoice achieved a high similarity score (4.61 Sim-MOS), demonstrating its ability to clone voices it never encountered during training without requiring fine-tuning. In text-based editing tasks, DiffVoice outperformed RetrieverTTS, maintaining superior coherence and naturalness when replacing specific words within a pre-recorded sentence.

Key Insights

  • Phoneme-Rate Latents: Aligning the latent space to phonemes rather than time frames makes the model significantly more efficient. The model generates timing and sound simultaneously rather than relying on a separate duration predictor.
  • Joint Modeling: Treating duration as a dimension within the diffusion space is an elegant shift away from the decoupled modules found in models like FastSpeech.
  • Generative Versatility: By framing speech editing as inpainting, DiffVoice applies the mathematical strengths of image diffusion to the audio domain, allowing for seamless audio manipulation.

Limitations and Future Work

The primary trade-off for DiffVoice's high quality is sampling speed. Like most diffusion models, it requires multiple iterations (neural function evaluations) to generate audio, making it slower than "one-shot" models like VITS. Future research will focus on implementing acceleration methods, such as improved SDE samplers, and exploring alternative intermediate representations to further enhance efficiency and waveform generation 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},
}
Figure