Introduction
Modern Text-to-Speech (TTS) systems have reached high levels of intelligibility, yet they often struggle with natural prosodic flow. Most architectures process sentences in isolation, ignoring the broader linguistic context. This leads to a lack of "prosodic continuity"—the natural shifts in pitch, rhythm, and tone that humans use to connect ideas across a discourse. This issue is particularly prominent in Speech Editing (SE) tasks, where inserting or modifying words can create jarring acoustic discontinuities.
To address these challenges, we present the Cross-Utterance Conditioned VAE (CUC-VAE S2) framework. By conditioning a Variational Autoencoder (VAE) on the semantic context of surrounding sentences, the system generates more expressive and contextually appropriate speech for both standard TTS and seamless text-based speech editing.
Architecture and Methodology
The CUC-VAE S2 architecture extends the FastSpeech 2 backbone by incorporating cross-utterance information. The core innovation lies in the CU-Embedding (Cross-Utterance Embedding) module and the use of an Utterance-Specific Prior.
Cross-Utterance Embedding
The CU-Embedding module leverages a pre-trained BERT model to capture semantic features from a window of $L$ preceding and succeeding sentences relative to the target utterance. As illustrated in Figure 1, these contextual features are integrated with the current phoneme sequence through a multi-head attention mechanism. This allows the model to "understand" the emotional and linguistic trajectory of the paragraph, informing the prosodic generation of the current sentence.
Utterance-Specific Prior
Traditional VAE-based TTS models often sample from a standard Gaussian distribution during inference, which can introduce unwanted randomness in prosody. CUC-VAE replaces this with a conditional prior learned from the cross-utterance context. This "Utterance-Specific Prior" constrains the latent space, guiding the model toward pitch and rhythm patterns that are semantically consistent with the surrounding text.
Speech Editing with CUC-VAE
Beyond standard TTS, the framework is optimized for Speech Editing (SE). In SE, users may need to delete, insert, or replace segments of audio. To ensure seamless transitions, the authors employ a masking strategy during training. By masking specific regions of the input audio and requiring the model to reconstruct them using both the remaining audio and the cross-utterance text context, the model learns to "smooth" edit boundaries. A biased training approach, utilizing a weighted loss function, further ensures high fidelity in the edited regions while maintaining the original speaker's characteristics.
Experimental Results
The system was evaluated on the LibriTTS dataset, which consists of English audiobooks—a genre where cross-sentence prosody is vital. The dataset was reprocessed using a sliding window to provide the necessary contextual pairs.
As shown in Table 1, CUC-VAE-TTS demonstrates superior performance across both subjective and objective metrics. It achieved a Mean Opinion Score (MOS) of 3.63, significantly outperforming the FastSpeech 2 baseline (3.53). Objective improvements were also noted in Mel-cepstral distortion (MCD), which dropped to 6.04 from the baseline's 6.32, and Word Error Rate (WER), suggesting that context-aware prosody enhances intelligibility for automated systems.
In speech editing benchmarks, CUC-VAE outperformed existing solutions like EditSpeech, particularly in complex "replacement" operations. The model's ability to leverage surrounding audio and text features allowed it to maintain higher speaker similarity and naturalness at the edit points.
Conclusion and Future Work
The CUC-VAE S2 framework demonstrates that discourse-level context is a critical component of natural speech synthesis. By moving beyond single-sentence processing, the model achieves better prosodic flow and more robust speech editing capabilities.
Future research directions include fine-tuning the BERT embeddings specifically for prosodic tasks rather than keeping them fixed, and exploring end-to-end integration with neural vocoders to improve efficiency. Additionally, extending this context-aware approach to tonal languages or different discourse structures remains an important area for investigation.
Summary updated