Abstract
Modeling expressive prosody—the rhythm, stress, and intonation of speech—remains a significant challenge in Text-to-Speech (TTS) synthesis. Traditional methods often struggle to capture the fine-grained prosodic variations dictated by linguistic context. We present CLAPSpeech, a cross-modal contrastive pre-training framework that explicitly aligns text context with its corresponding prosody. By utilizing a dual-encoder architecture inspired by CLIP, CLAPSpeech learns to map linguistic features to a prosodic space. Experimental results demonstrate that CLAPSpeech significantly improves the naturalness and expressiveness of existing TTS systems while remaining more parameter-efficient than traditional language model baselines.
Introduction
In human speech, the same word can exhibit vastly different prosodic patterns depending on its surrounding context. For instance, the word "higher" carries different intonations in "higher up" compared to "slightly higher." Current TTS models typically attempt to learn these nuances implicitly through masked token reconstruction. However, this approach often conflates pronunciation and prosody, leading to inefficient learning and a failure to capture subtle prosodic variances.
Methodology: Contrastive Language-Audio Pre-training
CLAPSpeech addresses these limitations by explicitly decoupling prosody from phonetic content through a contrastive learning objective. The framework consists of two primary components: a Text Encoder and a Prosody Encoder.
The Text Encoder processes phonemes and Byte Pair Encodings (BPE) to extract context-rich linguistic features. Simultaneously, the Prosody Encoder extracts ground-truth pitch and duration information from actual speech segments, specifically designed to filter out speaker-specific timbre. During pre-training, the model maximizes the similarity between a text token's context encoding and its corresponding prosody encoding while pushing away incorrect prosody patterns. This multi-scale approach operates at both the phoneme and word levels to capture both fine-grained and coarse-grained prosodic patterns.
System Integration and Architecture
A key advantage of CLAPSpeech is its "plug-and-play" design. The pre-trained text encoder can be integrated into existing TTS architectures, such as FastSpeech 2 or PortaSpeech, as an auxiliary input to guide the prosody predictor.
As shown in the architecture above, the word-level and phoneme-level CLAPSpeech encodings are combined and fed into a word-to-phoneme attention mechanism. This allows the variational generator to leverage the pre-trained context-prosody correlations to produce more human-like intonation. The prosody encoder is specifically designed to disentangle prosody from speaker identity, allowing the model to generalize across different voices.
Experimental Evaluation
The model was pre-trained on large-scale Automatic Speech Recognition (ASR) datasets, including LibriSpeech (~982 hours) and WenetSpeech (~10,000 hours). Evaluation was conducted on standard TTS benchmarks: LJSpeech (single-speaker English), Biaobei (single-speaker Chinese), and LibriTTS (multi-speaker English).
Key Results
- Subjective Naturalness: In Mean Opinion Score (MOS) tests, CLAPSpeech-enhanced models consistently outperformed baselines. On LJSpeech, the MOS improved from 3.77 (standard prediction-based baseline) to 4.11.
- Objective Metrics: The system achieved significantly lower Duration Error (DE) and improved Pitch Dynamic Time Warping (DTW) scores, indicating a closer match to human timing and intonation.
- Efficiency: Despite its performance, CLAPSpeech is more parameter-efficient than large-scale language models like BERT, demonstrating that targeted prosodic pre-training is more effective for TTS than general-purpose linguistic modeling.
Conclusion and Future Work
CLAPSpeech successfully bridges the gap between linguistic context and acoustic prosody through contrastive pre-training. While the current model focuses on intra-sentence context, future research will explore inter-sentence dependencies to improve long-form narration, such as audiobooks. Additionally, integrating explicit emotional intent and optimizing for real-time edge deployment remain key areas for further development.
Summary updated