PL-TTS: A Generalizable Prompt-based Diffusion TTS Augmented by Large Language Model

Shuhua Li, Qirong Mao, Jiatong ShiInterspeech 2024

Abstract

PL-TTS is a novel speech synthesis framework that integrates the generative capabilities of diffusion models with the deep semantic understanding of Large Language Models (LLMs). By replacing traditional BERT-based encoders with a fine-tuned Llama 2 model and introducing a hybrid multi-task loss function, the system achieves superior naturalness and generalizes effectively to creative, unseen style prompts.

Introduction

While Text-to-Speech (TTS) technology has achieved high levels of realism, precise style control—such as conveying excitement or specific pitch—remains a significant challenge. Traditional methods often rely on reference audio or rigid tags, which lack flexibility. Prompt-based TTS allows users to describe styles in natural language. However, existing models typically use BERT for prompt processing, which often fails on "unseen" descriptions and can degrade speech naturalness when complex conditions are introduced.

Methodology

The PL-TTS framework introduces two primary innovations to address these limitations:

1. LLM-Enhanced Style Encoding

Instead of BERT, PL-TTS utilizes Llama2-7b-chat as a style encoder. The model is fine-tuned using LoRA (Low-Rank Adaptation) on an auxiliary task to predict gender, pitch, speed, and volume from text prompts. Research indicated that the embedding of the last token in the sequence provides a richer style representation compared to averaging tokens, which can lead to context confusion.

2. Multi-task Diffusion Framework

PL-TTS augments the standard gradient-based diffusion process (e.g., GradTTS) with a generator-based component. The training objective incorporates:

  • $L_1$ Loss: Minimizes the direct difference between generated and ground-truth spectrograms.
  • SSIM (Structural Similarity Index) Loss: Borrowed from computer vision, this loss maintains the structural and textural consistency of the mel-spectrogram, resulting in clearer audio.
Overview of the PL-TTS architecture, featuring the Style Encoder (Llama2-based) and the Content Encoder within a diffusion framework.

Experimental Setup

The model was trained and evaluated using the following datasets:

  • LibriTTS-R: A restored version of the LibriTTS corpus for high-quality multi-speaker speech.
  • PromptSpeech: Pairs audio with natural language style descriptions.
  • GPT-4 Generated Prompts: Used to evaluate zero-shot generalization on 20 entirely new style descriptions not present in the training data.

Results and Analysis

PL-TTS demonstrates significant improvements in both naturalness and style consistency.

Naturalness and Consistency

As shown in the comparative analysis, PL-TTS achieved a Mean Opinion Score (MOS) of 3.75, surpassing both the diffusion-based PromptTTS baseline (3.52) and standard GradTTS (3.67). It also showed superior performance in matching prompt attributes like gender, speed, and pitch.

Comparison of PL-TTS against baseline models across Naturalness (MOS) and Prompt-to-speech consistency metrics.

Zero-Shot Generalization

On unseen prompts generated by GPT-4, PL-TTS maintained high accuracy (e.g., 79% for pitch and speed), whereas BERT-based baselines saw significant performance drops. This highlights the LLM's ability to map creative phrasing to acoustic styles based on its extensive pre-training.

Discussion and Future Work

Despite its successes, volume control remains a challenge, with accuracy hovering around 60% across all models. This may be due to the complex interaction of volume with other acoustic factors. Additionally, the use of a 7-billion parameter LLM introduces computational overhead. Future research will focus on distilling the LLM's knowledge into more efficient, lightweight encoders to reduce inference costs without sacrificing quality.

Summary updated

BibTeX
@inproceedings{li2024pl,
  author = {Shuhua Li and Qirong Mao and Jiatong Shi},
  title = {{PL-TTS: A Generalizable Prompt-based Diffusion TTS Augmented by Large Language Model}},
  booktitle = {Interspeech},
  year = {2024},
  doi = {10.21437/interspeech.2024-1429},
}
Figure