Introduction
Traditional spoken dialogue systems (SDS) typically operate through a cascaded pipeline: a Speech-to-Text (STT) module transcribes audio, a Natural Language Processing (NLP) module generates a text response, and a Text-to-Speech (TTS) module converts that text back into audio. While functional, this architecture creates a disconnect between the "content" of the response and the "expression" of the speech. This paper proposes a paradigm shift toward a unified Large Language Model (LLM) framework that jointly models dialogue response and fine-grained linguistic features, mimicking the parallel nature of human speech production.
The Problem: Semantic Blindness in Cascaded Systems
Current TTS modules often rely on small-scale models like BERT for linguistic feature extraction. These models, while efficient, possess limited semantic understanding compared to modern LLMs. More importantly, the TTS module is typically "blind" to the broader dialogue context. It receives only the final text string from the chatbot, losing the intent, emotion, and conversational nuances that should dictate prosody and intonation. This results in speech that, while clear, often feels robotic or contextually inappropriate.
Methodology
The researchers investigate how LLMs can be leveraged to bridge the gap between text generation and speech synthesis through two primary strategies: Prosodic Structure Prediction and Unified Joint Modeling.
1. Prosodic Structure Prediction (PSP)
Prosody—the rhythm, stress, and intonation of speech—is crucial for naturalness. The authors treated PSP as a sequence-to-sequence task, exploring two paths:
- Prompting-based LLMs: Using ChatGPT, the researchers employed complex system prompts that included formal linguistic definitions of prosodic levels and few-shot examples. This tested the model's ability to "reason" through linguistic rules without weight updates.
- Fine-tuning LLMs: The team fine-tuned ChatGLM2-6B using P-tuning v2. The model was trained to predict prosodic boundaries, including word-level, phrase-level, and intonation-phrase markers.
2. Joint Modeling via Unified Encoding
To achieve true integration, the researchers developed a unified encoding format. Instead of outputting plain text, the LLM generates a structured JSON-style string. This string interleaves the dialogue response with a comprehensive set of linguistic features:
- Pinyin: Phonetic transcriptions for Mandarin.
- Duration: Temporal information for each character.
- D-Values: Logarithmic representations of pitch range (highest and lowest) for each syllable.
- Prosody Hierarchy: Structural markers defining the rhythmic flow.
This approach forces the model to perform "grammatical encoding" and "phonological encoding" in a single auto-regressive process, similar to the human "formulation" stage of speech.
Experimental Setup
The study utilized the DataBaker corpus, a 10-hour Chinese Standard Mandarin dataset featuring 10,000 high-quality sentences from a single female speaker. To adapt this isolated-sentence dataset for dialogue, the authors used ChatGPT to generate synthetic "user prompts" for each sentence, creating a single-turn dialogue context.
Key Results
The experiments demonstrated that LLMs significantly outperform traditional specialized models in linguistic feature prediction:
- Superior Accuracy: The fine-tuned ChatGLM2-6B achieved an F-score of 82.38% on prosodic prediction, notably higher than the BERT-based SpanPSP baseline (77.11%).
- The Power of Context: For ChatGPT, the inclusion of linguistic definitions and few-shot examples improved the F-score from 41.3% (zero-shot) to 80.12%, rivaling fine-tuned models.
- Feasibility of Joint Output: The unified framework successfully generated parsable JSON strings for 89.7% of unseen test samples. Within these samples, the model achieved 86.29% accuracy for Pinyin and 77.7% for prosodic structures.
Discussion and Limitations
While the results prove the feasibility of joint modeling, several challenges remain:
- Inference Latency: The auto-regressive generation of long, structured JSON strings is computationally expensive. Currently, processing a single sentence takes between 15 and 40 seconds, which is prohibitive for real-time interaction.
- Generalization: A performance gap between training and testing sets suggests overfitting, likely due to the relatively small size of the DataBaker corpus (10,000 samples) relative to the 6B-parameter model.
- Acoustic Integration: This research focuses on linguistic features (the "blueprint" for speech). The "last mile"—integrating an acoustic model and vocoder directly into the LLM to produce raw audio waveforms—remains a subject for future work.
Conclusion
By treating speech synthesis as a linguistic reasoning task, this paper demonstrates that LLMs can effectively unify the "what" and "how" of spoken dialogue. This joint modeling approach moves AI closer to human-like speech production, where meaning and melody are inextricably linked.
Summary updated