Prosodic Representation Learning and Contextual Sampling for Neural Text-to-Speech

Sri Karlapati, Ammar Abbas, Zack Hodari, Alexis Moinet, Arnaud Joly, Penny Karanasou, Thomas Drugman

TL;DR

The authors introduce Kathaka, a neural text-to-speech (TTS) model that bridges the gap between learning expressive prosody from audio and predicting it from text. By combining semantic information from BERT with syntactic structures from graph-attention networks, Kathaka achieves a 13.2% relative improvement in speech naturalness over strong baselines.

What Problem Does This Paper Address?

In neural text-to-speech (NTTS), "prosody"—the rhythm, stress, and intonation of speech—is notoriously difficult to get right. While modern models can learn rich prosodic representations from actual human recordings (using reference encoders), they face a "sampling problem" during inference.

When you actually use the model to speak new text, you don't have a reference recording to guide the prosody. If the model samples randomly from its learned prosodic space, the resulting speech might sound expressive but contextually "wrong" (e.g., an excited tone for a somber sentence). The challenge is to predict the correct prosodic "latent vector" using only the input text.

Methods

The researchers propose a two-stage training framework called Kathaka:

  1. Stage I: Learning the Prosodic Space. They add a Variational Reference Encoder (VAE) to a baseline TTS model (a modified version of DurIAN). This encoder learns to compress the prosody of a ground-truth mel-spectrogram into a latent distribution.
  2. Stage II: Contextual Sampling. This is the core innovation. They train "samplers" to predict the latent prosodic vector from Stage I using only textual features. They explore three architectures:
  3. BERT Sampler: Uses a pre-trained BERT model to capture the semantics (meaning) of the sentence.
  4. Graph Sampler: Uses a Graph Attention Network (GAT) to process constituency parse trees, capturing the syntax (grammatical structure) of the sentence.
  5. BERT+Graph Sampler: A hybrid approach that concatenates features from both to predict the prosodic distribution.

Additionally, they modify the duration model to be "prosody-dependent," meaning the length of each phoneme is influenced by the predicted prosodic style, not just the phoneme itself.

Datasets

The model was trained and evaluated on an internal dataset:

  • Source: 38.5 hours of long-form US English speech.
  • Speaker: A single professional female narrator.
  • Split: 33 hours for training, with the remainder used for testing and evaluation.

Key Insights and Ideas

  • Prosody is Multi-Faceted: The authors argue that prosody is driven by both what a sentence means (semantics) and how it is built (syntax). By using both BERT and Graph Networks, they provide the model with a holistic view of the text.
  • The "Subtractive" Approach: The paper treats prosody as the information left over in speech after you account for the basic phonemes. By encoding the sentence-level mel-spectrogram, the VAE captures this "extra" information (pitch, energy, duration).
  • Distribution Matching: Instead of predicting a single point, the samplers are trained to match the distribution (mean and variance) of the VAE's latent space using KL Divergence. This allows the model to handle the inherent ambiguity of prosody—the fact that one sentence can often be read naturally in several different ways.

Key Results

The authors used MUSHRA (Multiple Stimuli with Hidden Reference and Anchor) tests, where human listeners rate the naturalness of audio samples on a scale of 0 to 100.

  • Naturalness Boost: Kathaka (using the BERT+Graph sampler) achieved a 13.2% relative improvement in naturalness over the baseline.
  • Ablation Success: Both the BERT-only and Graph-only samplers significantly outperformed the baseline, proving that both semantics and syntax are viable predictors for prosody.
  • Oracle Comparison: The "Kathaka-Oracle" (which uses the actual recording to get the prosody) still outperformed the text-based version, reducing the gap to original recordings by 29.19%. This indicates that while the text-based samplers are good, they haven't yet captured 100% of the nuance found in human speech.

Limitations and Future Work

The primary limitation identified is the sentence-level scope. The current samplers only look at one sentence at a time. However, in long-form speech (like audiobooks), the prosody of a sentence is often dictated by the sentences that came before it.

The authors suggest that the remaining gap between their model and human recordings could be closed by exploiting cross-sentence context, allowing the model to understand the broader narrative flow rather than treating every sentence as an isolated island.

Summary updated

BibTeX
@inproceedings{karlapati2021prosodic,
  author = {Sri Karlapati and Ammar Abbas and Zack Hodari and Alexis Moinet and Arnaud Joly and Penny Karanasou and Thomas Drugman},
  title = {{Prosodic Representation Learning and Contextual Sampling for Neural Text-to-Speech}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2021},
  url = {https://openreview.net/forum?id=FF6_efpNVAn},
}
Figure