Encoding Speaker-Specific Latent Speech Feature for Speech Synthesis

Jungil Kong, Junmo Lee, Jeongmin Kim, Beomjeong Kim, Jihoon Park, Dohee Kong, Changheon Lee, Sangjin Kim · Submission to ICLR 2024 · Rejected

TL;DR

ELF (Encoding speaker-specific Latent speech Features) enables high-fidelity, zero-shot multi-speaker text-to-speech without retraining on target voices. By extracting dense variational latent speech features, clustering them into a speaker codebook, and fusing them via attention into text representations, ELF captures rich, content-dependent vocal characteristics. It outperforms standard zero-shot baselines and even surpasses fully trained multi-speaker models on speaker similarity for unseen voices.

What Problem Does This Paper Address?

Traditional multi-speaker text-to-speech (TTS) models require retraining or fine-tuning whenever a new speaker is added, which is computationally expensive and impractical for small amounts of target data. Conversely, popular zero-shot TTS systems rely on conditioning the synthesizer on a single speaker-embedding vector extracted from a short reference clip.

This zero-shot approach suffers from two fundamental flaws:

  1. Content-dependent variation: Human speakers naturally alter their timbre, prosody, and accent depending on what they are saying (e.g., uttering "I'm so happy!" vs. "I'm so sad!"). A single static vector from a short utterance cannot capture these multifaceted characteristics across different text contexts.
  2. Pathological latent spaces: Speaker encoders are typically trained on speaker-verification objectives, which maximize the distance between speakers. This produces a sparse, discontinuous latent space where intermediate points often lead to unnatural or distorted speech.

Methods

ELF addresses these challenges with a two-stage approach:

[Target Audio] ──► [SFEN (VAE)] ──► Latent μ ──► [k-means++] ──► [Speaker Codebook]
                                                                        │
[Text Phonemes] ──► [Text Encoder] ──────(Multi-Head Attention)◄────────┘
                           │
                           ▼
              [Conditional Prior / Flow] ──► [HiFi-GAN Decoder] ──► [Synthesized Audio]
  1. Speech Feature Encoding Network (SFEN):
  2. A variational autoencoder (VAE) trained with adversarial and feature-matching losses (using a HiFi-GAN style generator/discriminator) reconstructs raw waveforms from 80-dimensional mel-spectrograms.
  3. Enforcing a unit Gaussian prior ensures the latent space remains dense and continuous rather than fragmented.
  4. For a given speaker, frame-level latent means ($\mu$) from their available audio are clustered via $k$-means++ into a discrete codebook of 512 representative centroid vectors.
  5. TTS Model with Codebook Conditioning:
  6. Built upon the VITS end-to-end architecture, modifying both the prior encoder and duration modeling.
  7. Rather than conditioning on a single global vector, ELF combines the codebook vectors using self-attention transformer blocks (without positional embeddings) and integrates them into the text encoder's representations via multi-head cross-attention. This attention-weighted sum acts as a continuous sampling mechanism tailored to the phoneme context.
  8. Replaces the normalizing-flow duration predictor with an adversarial duration predictor for natural rhythm modeling, and inserts a transformer block into the normalizing flows to capture long-term context.
  9. Speaker Blending & Feature-to-Speech:
  10. Because the latent space is continuous, multiple speaker codebooks can be blended at arbitrary proportions by taking a weighted sum of their attention-fused intermediate representations.
  11. The authors also demonstrate a Speech Feature-to-Speech variant, where audio is synthesized directly from the codebook representations guided only by phoneme attention queries.

Datasets

  • LibriTTS: 585.8 hours across 2,456 English speakers (2,446 train, 10 test). Clean subsets were used for TTS training.
  • VCTK: 43.8 hours across 108 English speakers (97 train, 11 test).
  • KSS (Korean Single Speaker): 200 audio clips used exclusively to evaluate cross-lingual synthesis capabilities into English.
  • TAU Urban Acoustic Scenes 2021 Mobile Evaluation: Used to inject real-world background noise (15 dB SNR) to test robustness.

Key Insights and Ideas

  • Attention as continuous sampling: Human speech attributes cannot be discretely categorized. By using multi-head attention over discrete codebook centroids, the model performs a dynamic linear combination—effectively querying a continuous point in the latent space conditioned on the target phonemes.
  • Verification $\neq$ Reconstruction: Latent representations from speaker-verification models are intentionally pushed apart to create hard decision boundaries. In contrast, VAE-based reconstruction constraints preserve underlying acoustic topologies, allowing smooth interpolations and faithful timbre reproduction.
  • True linear blending: When blending two speakers (e.g., at an 8:2, 5:5, or 2:8 ratio), ELF demonstrates monotonic, predictable shifts in speaker cosine similarity, avoiding the sudden identity jumps or speaker collapse seen in traditional zero-shot models.

Key Results

Experiments evaluated unseen test speakers against a fully trained multi-speaker model (VITS, where test speakers were seen during training) and a leading zero-shot model (YourTTS, unseen):

Model Seen / Unseen SMOS ($\uparrow$) MOS ($\uparrow$) CER % ($\downarrow$) SECS ($\uparrow$)
Ground Truth — — 3.95 1.29 1.000
VITS Seen 3.73 3.95 1.80 0.919
YourTTS Unseen 3.47 3.88 5.42 0.817
ELF (# audio = 1) Unseen 3.62 3.93 2.35 0.848
ELF (# audio = 20) Unseen 3.76 3.96 1.26 0.879
ELF (all audio) Unseen 3.85 3.98 1.49 0.888

Definitions: SMOS = Similarity MOS; MOS = Naturalness MOS; CER = Character Error Rate from HuBERT-based ASR; SECS = Speaker Encoder Cosine Similarity via WavLM-TDNN.

  • Surpassing Seen Baselines: With 20 or more reference samples, ELF achieves higher subjective similarity (SMOS 3.85 vs. 3.73) and better intelligibility (CER 1.49% vs. 1.80%) than VITS trained natively on those speakers.
  • Single-Utterance Zero-Shot: Even constrained to a single reference clip without clustering, ELF comfortably beats YourTTS across all metrics (SMOS 3.62 vs. 3.47; CER 2.35% vs. 5.42%).
  • Cross-Lingual Synthesis: Conditioning on 200 Korean utterances to synthesize English achieved an MOS of 3.79 and SECS of 0.862, drastically outperforming YourTTS (MOS 3.29, SECS 0.600).
  • Noise Robustness: At 15 dB SNR background noise, ELF degraded only slightly (CER increased from 1.49% to 2.07%; SECS shifted from 0.888 to 0.865).

Limitations and Future Work

  • Data Scaling for Codebooks: While ELF operates in a true zero-shot setting with a single reference clip, reaching its best performance requires around 20 audio samples to construct an informative 512-centroid codebook.
  • Two-Stage Clustering Overhead: Building the speaker representation requires a discrete offline step ($k$-means++ clustering over latent encoder outputs) rather than an entirely end-to-end differentiable forward pass.
  • Comparison Scope: The paper compares against VITS and YourTTS, but omits direct quantitative benchmarking against large auto-regressive or diffusion-based prompt models (such as VALL-E or NaturalSpeech 2), citing fundamental paradigm differences in how prompts guide prosody.

Summary updated

BibTeX
@inproceedings{kong2024encoding,
  author = {Jungil Kong and Junmo Lee and Jeongmin Kim and Beomjeong Kim and JIHOON PARK and Dohee Kong and Changheon Lee and Sangjin Kim},
  title = {{Encoding Speaker-Specific Latent Speech Feature for Speech Synthesis}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=Ug1m4P4AKf},
}
Figure