Content-Dependent Fine-Grained Speaker Embedding for Zero-Shot Speaker Adaptation in Text-to-Speech Synthesis

Yixuan Zhou, Changhe Song, Xiang Li, Luwen Zhang, Zhiyong Wu, Yanyao Bian, Dan Su, Helen Meng

Abstract

Zero-shot speaker adaptation in text-to-speech (TTS) aims to clone a target speaker's voice using only a short reference audio clip, without requiring model fine-tuning. Traditional methods typically rely on global speaker embeddings, which capture a speaker's general timbre but often overlook fine-grained, content-dependent pronunciation habits. This paper introduces Content-Dependent Fine-Grained Speaker Embedding (CDFSE), a method that extracts speaker characteristics at a "quasi-phoneme" level. By utilizing a reference attention mechanism and a novel temporal shuffling training strategy, CDFSE allows the model to dynamically match input text with specific speaker traits. Experimental results on the AISHELL-3 dataset show that CDFSE significantly improves speaker similarity for unseen speakers while maintaining high synthesis stability.

Introduction

Zero-shot speaker adaptation is a critical challenge in voice cloning. The goal is to provide a system with a few seconds of reference audio from a new speaker and have it immediately synthesize speech in that specific voice. Most current systems address this by using a global speaker embedding—a single, fixed-length vector (such as an x-vector) that represents the speaker's overall identity.

While global embeddings are effective at capturing general timbre, they struggle to replicate a speaker's unique "flavor"—the specific way an individual articulates certain sounds. For example, two speakers might have similar vocal ranges but differ significantly in how they pronounce specific vowels or consonants. By compressing a speaker's identity into a single static vector, these nuances are lost. This paper proposes CDFSE to bridge this gap by capturing speaker characteristics that vary according to the phonetic content being spoken.

Methodology

The CDFSE framework is built upon the FastSpeech 2 architecture, modified to incorporate fine-grained speaker information through several key innovations:

1. Dual Encoder Architecture

Instead of a single speaker encoder, the system employs two distinct encoders:

  • Local Content Encoder: Extracts the phonetic content of the reference speech.
  • Local Speaker Encoder: Extracts the stylistic and identity-based characteristics of the reference speech.

Both encoders downsample the audio to a "quasi-phoneme" level (approximately 1/16th of the original frame rate). This granularity is fine enough to capture phoneme-specific traits but coarse enough to avoid the noise and instability associated with frame-level embeddings.

2. Reference Attention Module

To synthesize speech, the model must determine which parts of the reference audio are most relevant to the text being generated. This is achieved through a scaled dot-product attention mechanism:

  • Query: Phonemes from the input text.
  • Keys: Content embeddings from the reference speech.
  • Values: Speaker embeddings from the reference speech.

This allows the model to "look up" how the target speaker specifically pronounces a sound similar to the one currently being synthesized.

3. The Temporal Shuffling Strategy

A common pitfall in training attention-based reference models is that the model may simply learn to follow the temporal order of the reference clip rather than learning content relevance. To prevent this, the authors introduced a shuffling trick: during training, fragments of the reference speech are randomly shuffled. This forces the attention module to ignore the time sequence and instead focus on matching the phoneme content to the speaker’s style.

4. Multi-Task Supervision

To ensure the encoders perform their intended roles, the model is trained with auxiliary tasks. A phoneme classifier ensures the content encoder captures speech content, while a speaker classifier ensures the speaker encoder captures identity.

Experimental Setup

The models were trained and evaluated using AISHELL-3, a large-scale Mandarin speech corpus. The training set included approximately 85 hours of audio from 210 speakers. To test zero-shot performance, the evaluation was conducted on 8 speakers (4 male, 4 female) who were not included in the training set. A pre-trained HiFi-GAN vocoder was used to convert the predicted mel-spectrograms into the final audio waveforms.

Results and Analysis

CDFSE was compared against standard global speaker embeddings (GSE) and a variable-length baseline (Attentron*).

  • Speaker Similarity: CDFSE achieved a Similarity Mean Opinion Score (SMOS) of 3.51, significantly higher than Attentron* (3.29) and global methods (~3.10). Objective tests using a speaker verification system confirmed this, with CDFSE showing the highest cosine similarity (0.756) to ground-truth audio.
  • Stability: The "quasi-phoneme" granularity (CDFSE-16) proved highly stable, yielding a mispronunciation rate of only 0.58%. This suggests that the fine-grained approach does not compromise the intelligibility of the speech.
  • Embedding Visualization: t-SNE plots of the learned embeddings revealed that while embeddings for a single speaker cluster together, they form distinct sub-clusters based on phoneme content. This provides empirical evidence that the model successfully learned content-dependent variations in speaker identity.

Discussion and Conclusion

While CDFSE represents a significant step forward in speaker similarity, the authors noted a slight trade-off in naturalness (MOS) compared to some baselines. This suggests that while the model is excellent at mimicking a specific voice, there is still room to improve the overall prosody and flow of the synthesized speech.

Furthermore, as the study was conducted on Mandarin, future research is needed to determine how well these content-dependent habits transfer to other languages with different phonological structures. In conclusion, CDFSE demonstrates that speaker identity is not a static attribute but a dynamic, content-dependent behavior. By capturing these fine-grained details, TTS systems can move closer to truly authentic voice cloning.

Summary updated

BibTeX
@inproceedings{zhou2022content,
  author = {Yixuan Zhou and Changhe Song and Xiang Li and Luwen Zhang and Zhiyong Wu and Yanyao Bian and Dan Su and Helen Meng},
  title = {{Content-Dependent Fine-Grained Speaker Embedding for Zero-Shot Speaker Adaptation in Text-to-Speech Synthesis}},
  booktitle = {Interspeech},
  year = {2022},
  doi = {10.21437/interspeech.2022-10054},
}
Figure