nnSpeech: Speaker-Guided Conditional Variational Autoencoder for Zero-shot Multi-speaker Text-to-Speech

Botao Zhao, Xulong Zhang, Jianzong Wang, Ning Cheng, Jing Xiao

Introduction

Zero-shot multi-speaker text-to-speech (TTS) aims to synthesize high-quality speech for unseen speakers using only a brief reference utterance. Traditional approaches often rely on computationally expensive fine-tuning or struggle to capture nuanced speaker characteristics from limited data. This paper introduces nnSpeech, a framework designed to overcome these limitations by employing a "speaker-guided" Conditional Variational Autoencoder (sgCVAE).

Methodology: The sgCVAE Framework

The core innovation of nnSpeech lies in its modification of the standard CVAE architecture. In typical TTS CVAEs, the latent variable $Z$ is conditioned primarily on linguistic content (phonemes). However, for multi-speaker tasks, $Z$ must also encapsulate speaker-specific traits to ensure accurate reconstruction.

Comparison of standard CAVE (a) and the proposed Speaker-guided CAVE (b) graphical models.

Speaker-Guided Innovation

The Speaker-Guided CVAE (sgCVAE) introduces three key components:

  1. Recognition Network: During training, this network processes both the target mel-spectrogram ($X$) and phonemes ($C$) to derive the latent variable $Z$.
  2. Prior Network: This network predicts $Z$ using only phonemes ($C$) and a speaker embedding ($S$).
  3. Speaker Predictor: To ensure the latent space is rich with speaker identity, this module predicts the speaker embedding directly from $Z$.

By minimizing the KL divergence between the recognition and prior networks, nnSpeech learns a joint latent space where linguistic content and speaker style are intrinsically fused.

System Architecture

The overall architecture utilizes FastSpeech 2 as the backbone and HiFi-GAN as the vocoder. The training process involves balancing reconstruction loss with a down-weighted KL loss (using a hyperparameter $\gamma \approx 0.0005$) to maintain high synthesis quality.

The training and inference pipelines of the nnSpeech framework.

Experimental Setup

The model was evaluated on three distinct datasets to test its versatility:

  • LibriTTS: An English corpus with 903 speakers (~191 hours).
  • AISHELL-3: A Mandarin Chinese corpus with 218 speakers (85 hours).
  • LJSpeech: A single-speaker English dataset used specifically for cross-dataset evaluation to see how well the model generalizes to entirely new recording environments.

Results and Discussion

nnSpeech demonstrates superior performance compared to existing zero-shot methods like x-vector and StyleSpeech.

  • Subjective Metrics: In Mean Opinion Score (MOS) evaluations, nnSpeech achieved 3.42 on LibriTTS and 4.13 on AISHELL-3, outperforming baselines.
  • Speaker Similarity: The Voice Similarity Score (VSS) on AISHELL-3 reached 4.17, significantly higher than the 3.86 achieved by x-vector models.
  • Efficiency: Unlike fine-tuning methods that require nearly 30 minutes of adaptation time, nnSpeech provides instantaneous zero-shot synthesis.

Generalization Challenges

While highly effective within known data distributions, the model faces challenges in cross-dataset generalization. Performance on the LJSpeech dataset (unseen during training) was lower than StyleSpeech, suggesting that variations in recording conditions impact the latent representation. The authors suggest that incorporating adaptive layer normalization into the decoder could bridge this gap.

Conclusion

nnSpeech presents a robust solution for zero-shot TTS by integrating speaker guidance directly into the CVAE latent space. This approach eliminates the need for per-speaker fine-tuning while maintaining high acoustic accuracy and speaker similarity. Future work will focus on improving cross-dataset robustness to handle diverse recording environments.

Summary updated

BibTeX
@inproceedings{zhao2022nnspeech,
  author = {Botao Zhao and Xulong Zhang and Jianzong Wang and Ning Cheng and Jing Xiao},
  title = {{nnSpeech: Speaker-Guided Conditional Variational Autoencoder for Zero-shot Multi-speaker Text-to-Speech}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2022},
  doi = {10.1109/icassp43922.2022.9746875},
}
Figure