Abstract
Modern text-to-speech (TTS) systems often lack the natural prosody of human speech, resulting in a "robotic" delivery. This paper presents a novel cascaded pipeline using fine-tuned Large Language Models (LLMs) to automatically generate Speech Synthesis Markup Language (SSML) tags for French text. By disentangling structural break prediction from numerical prosodic parameter estimation, the system significantly improves the perceived naturalness of synthetic voices, achieving a 20% increase in Mean Opinion Score (MOS) over commercial baselines.
Introduction
While modern AI voices are highly intelligible, they frequently suffer from "robotic monotony." Commercial TTS systems prioritize clarity but often miss the subtle prosodic cues—rhythm, stress, and intonation—that make human speech expressive. This is particularly challenging for French, a language with complex prosodic features like liaisons and specific phrasing patterns.
The industry standard for controlling these features is SSML (Speech Synthesis Markup Language). However, manually adding SSML tags is labor-intensive and unscalable. While LLMs are a natural fit for automation, they often struggle with "hallucinating" invalid XML syntax or failing to provide precise numerical control. This work introduces an end-to-end pipeline to solve these issues.
Methods
The proposed system consists of two primary components: an annotation pipeline for data preparation and a cascaded LLM architecture for inference.
The Annotation Pipeline
To train the models, researchers first aligned 14 hours of natural French speech with its transcript. They then synthesized the same text using a "neutral" baseline voice (Microsoft Azure’s "Henri"). By comparing the natural audio to the robotic baseline, they extracted "prosodic deltas"—numerical values representing how much a human varies their pitch, volume, and speed compared to the machine.
Cascaded LLM Architecture
Instead of asking one model to perform all tasks, the system uses two fine-tuned Qwen 2.5-7B models in a cascaded sequence. This disentanglement ensures the output is always syntactically valid SSML while maintaining high precision in prosodic control.
- QwenA (Structure): This model focuses solely on "break prediction," identifying linguistically appropriate junctures to insert
<break>tags. - QwenB (Regression): This model takes the "skeleton" from QwenA and fills in specific numerical attributes for pitch, rate, and volume based on the learned prosodic deltas.
Datasets
- Primary Dataset: A proprietary 14-hour corpus of high-quality French podcasts featuring 14 distinct speakers. This dataset was chosen for its expressive, conversational nature compared to standard read-speech datasets.
- Evaluation Benchmarks: The models were also benchmarked against the FLEURS dataset to ensure robustness across different types of French speech.
Key Results
- Structural Accuracy: The cascaded model achieved a near-perfect 99.2% F1 score for break placement, vastly outperforming zero-shot or few-shot prompting of state-of-the-art LLMs like GPT-4 or Llama 3.
- Error Reduction: The system reduced the Mean Absolute Error (MAE) for pitch, rate, and volume by 25–40% compared to traditional BiLSTM and prompting-only baselines.
- Human Preference: In a perceptual study with 18 participants, the SSML-enhanced speech saw a Mean Opinion Score (MOS) jump from 3.20 to 3.87. Remarkably, 83% of listeners preferred the AI-enhanced version over the standard commercial output.
Conclusion and Future Work
The "aha moment" of this research is that LLMs are much more reliable when the logic of placement is separated from the logic of measurement. While the current pipeline is optimized for French, the methodology is language-agnostic. Future work will focus on scaling the dataset to improve "acting" capabilities and distilling the 7B-parameter models into smaller, faster versions for real-time applications.
Summary updated