Building speech corpus with diverse voice characteristics for its prompt-based representation

Aya Watanabe, Shinnosuke Takamichi, Yuki Saito, Wataru Nakata, Detai Xin, Hiroshi SaruwatariarXiv 2024 · DOI

Abstract

This paper introduces Coco-Nut, a large-scale Japanese speech corpus designed to advance prompt-based text-to-speech (TTS) systems. By harvesting diverse voice characteristics from the internet and pairing them with free-form text descriptions, the researchers address the limitations of traditional studio-recorded datasets. Furthermore, they propose a retrieval model based on Contrastive Language-Audio Pretraining (CLAP) enhanced with Feature Prediction Learning. This approach grounds text prompts in physical acoustic properties—such as pitch and tempo—significantly improving the alignment between natural language descriptions and vocal styles. Experimental results demonstrate near-perfect zero-shot classification accuracy and improved subjective quality in voice retrieval.

Introduction

In the field of Text-to-Speech (TTS), achieving human-like prosody is a solved problem, but providing machines with specific "character" remains a challenge. Most current systems rely on rigid controls like speaker IDs or a limited set of emotion tags. To enable a system to synthesize a voice based on a prompt like "a middle-aged man speaking hurriedly with a slightly flustered demeanor," two components are required: a dataset containing such varied voices and a robust mapping between text prompts and acoustic features.

The Coco-Nut Corpus Pipeline

To capture a wide array of "impressive" and diverse voices, the researchers developed a pipeline to harvest data from YouTube. Unlike random sampling, this method uses social signals to identify unique vocal characteristics.

The Coco-Nut corpus construction pipeline, illustrating the journey from YouTube comment filtering to final crowdsourced annotation.
  1. Filtering by Reaction: A BERT-based classifier scans YouTube comments for feedback on voice quality (e.g., "What a cool voice!") to flag candidate videos.
  2. Quality Assurance: The pipeline employs Voice Activity Detection (VAD), Demucs for denoising, and NISQA to ensure high-quality audio suitable for TTS training.
  3. Diversity via Clustering: To ensure a broad representation, x-vector clustering is used to group similar voices, followed by representative sampling from each group.
  4. Crowdsourced Annotation: Human listeners provide free-form descriptions of age, gender, tone, and style for each segment.

Retrieval Model with Feature Prediction

The proposed retrieval model utilizes a CLAP (Contrastive Language-Audio Pretraining) framework, which aligns audio and text in a shared embedding space using RoBERTa and HuBERT encoders.

The CLAP-based retrieval model architecture, which maps audio and text into a shared embedding space for cross-modal retrieval.

To prevent the model from becoming "lazy"—matching pairs based on background noise rather than vocal traits—the authors introduced Feature Prediction Learning. During training, the model is required to predict three quantitative physical features from the embeddings:

  • Mean $F_0$ (Pitch)
  • Standard deviation of energy (Dynamics)
  • Speaking rate (Tempo)

By forcing the model to encode these physical attributes, the resulting embeddings become more grounded in the actual characteristics that define a human voice.

Key Results and Insights

  • Zero-Shot Capability: The model demonstrated exceptional generalizability, achieving up to 100% accuracy for gender and 99.7% for speaking rate classification on the JVS (Japanese Versatile Speech) benchmark, despite not being trained on that specific dataset.
  • Subjective Improvement: Listening tests revealed that users rated retrieval results significantly higher when Feature Prediction was utilized. This auxiliary loss reduced "discordant" matches where the retrieved voice contradicted the text prompt.
  • The Wisdom of Crowds: Using YouTube comments as a proxy for "voice interestingness" proved to be an effective automated strategy for discovering diverse data that studio environments cannot replicate.

Conclusion and Future Work

While the Coco-Nut corpus and the enhanced retrieval model represent a significant step forward, a gap remains between the top-ranked retrieved voices and the ground truth in subjective tests. Future research will focus on integrating this retrieval mechanism into full generative TTS systems to synthesize entirely new speech based on these diverse prompts, as well as expanding the methodology to other languages beyond Japanese.

Summary updated

Abstract

In text-to-speech synthesis, the ability to control voice characteristics is vital for various applications. By leveraging thriving text prompt-based generation techniques, it should be possible to enhance the nuanced control of voice characteristics. While previous research has explored the prompt-based manipulation of voice characteristics, most studies have used pre-recorded speech, which limits the diversity of voice characteristics available. Thus, we aim to address this gap by creating a novel corpus and developing a model for prompt-based manipulation of voice characteristics in text-to-speech synthesis, facilitating a broader range of voice characteristics. Specifically, we propose a method to build a sizable corpus pairing voice characteristics descriptions with corresponding speech samples. This involves automatically gathering voice-related speech data from the Internet, ensuring its quality, and manually annotating it using crowdsourcing. We implement this method with Japanese language data and analyze the results to validate its effectiveness. Subsequently, we propose a construction method of the model to retrieve speech from voice characteristics descriptions based on a contrastive learning method. We train the model using not only conservative contrastive learning but also feature prediction learning to predict quantitative speech features corresponding to voice characteristics. We evaluate the model performance via experiments with the corpus we constructed above.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
JVS parallel100 set, zero-shot speech classificationCoco-Nut-trained CLAP-style model without feature-prediction loss (α=0.0)Accuracy — male classification0.9980-shot
Source quote
L425: \multirow{2}{*}{Male / Female} │ 0.0 │ 0.998 / 0.941
JVS parallel100 set, zero-shot speech classificationCoco-Nut-trained CLAP-style model with feature-prediction loss (α=1.0)Accuracy — male classification0.9860-shot
Source quote
L426: 1.0 │ 0.986 / 1.000
JVS parallel100 set, zero-shot speech classificationCoco-Nut-trained CLAP-style model without feature-prediction loss (α=0.0)Accuracy — female classification0.9410-shot
Source quote
L425: \multirow{2}{*}{Male / Female} │ 0.0 │ 0.998 / 0.941
JVS parallel100 set, zero-shot speech classificationCoco-Nut-trained CLAP-style model with feature-prediction loss (α=1.0)Accuracy — female classification1.0000-shot
Source quote
L426: 1.0 │ 0.986 / 1.000
JVS parallel100 set, zero-shot speech classificationCoco-Nut-trained CLAP-style model with feature-prediction loss (α=1.0)Accuracy — fast-speaking classification0.9900-shot
Source quote
L428: 1.0 │ 0.990 / 1.000
JVS parallel100 set, zero-shot speech classificationCoco-Nut-trained CLAP-style model with feature-prediction loss (α=1.0)Accuracy — slow-speaking classification1.0000-shot
Source quote
L428: 1.0 │ 0.990 / 1.000
BibTeX
@misc{watanabe2024building,
  author = {Aya Watanabe and Shinnosuke Takamichi and Yuki Saito and Wataru Nakata and Detai Xin and Hiroshi Saruwatari},
  title = {{Building speech corpus with diverse voice characteristics for its prompt-based representation}},
  year = {2024},
  eprint = {2403.13353},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.13353},
}
Figure