Context-Aware Prosody Correction for Text-Based Speech Editing

Max Morrison, Lucas Rencker, Zeyu Jin, Nicholas J. Bryan, Juan Pablo Cáceres, Bryan Pardo

Introduction

Text-based speech editing allows users to modify audio by simply editing its transcript. While intuitive, this "cut-and-paste" approach often leads to prosodic mismatches—discrepancies in rhythm and intonation. For instance, a word recorded at the end of a sentence (with a falling pitch) sounds unnatural when moved to the middle of a sentence. This paper presents a system that automatically corrects the prosody of edited speech to ensure it fits seamlessly into its new context.

Methodology

The proposed system employs a four-stage pipeline to bridge the gap between edited segments and their surrounding audio. Unlike traditional Text-to-Speech (TTS) systems that generate audio from scratch, this approach modifies existing audio to preserve the original speaker's identity and nuances.

  1. Phoneme Duration Generation: A sequence-to-sequence neural network predicts phoneme durations. It utilizes "subsequence prediction," conditioning the output on the durations of surrounding words to maintain temporal continuity.
  2. Pitch Generation: A Controllable DAR model generates a pitch contour based on the predicted durations and the pitch of the preceding and following speech.
  3. Prosody Imposition: The system uses Time-Domain Pitch-Synchronous Overlap and Add (TD-PSOLA), a classic digital signal processing (DSP) technique, to stretch the original audio and shift its pitch to match the generated targets.
  4. Artifact Removal: To mitigate the robotic artifacts often introduced by DSP, the authors use HiFi-GAN as a neural denoiser to restore natural audio quality.
The four-stage pipeline for context-aware prosody correction, moving from phonemes to high-quality speech.

Key Results

The system was evaluated using Mean Opinion Scores (MOS) and pairwise comparisons on single-speaker datasets (LJSpeech and a LibriVox dataset). The researchers found that context-awareness is the most critical factor in achieving natural-sounding edits.

Subjective evaluation results comparing the proposed method against naive baselines and state-of-the-art TTS models.

As shown in the results table, the proposed method achieved a MOS of 3.00, outperforming the "Naive" copy-paste approach (2.87) and a Tacotron 2-based baseline (2.89). A critical finding was the impact of context: removing context-awareness caused the MOS to drop to 2.59, highlighting that matching the surrounding "flow" is essential for naturalness. Furthermore, using HiFi-GAN as a post-processor effectively removed the "phasiness" typical of DSP manipulation.

Discussion and Conclusion

A significant insight from this work is that modifying existing audio via DSP and neural denoising is more effective for editing than synthesizing speech from scratch. While the system significantly improves naturalness, a gap remains compared to original recordings (4.56 MOS). Future work may address formant errors introduced by TD-PSOLA and explore multi-speaker models to create more universal, production-ready editing tools.

Summary updated

BibTeX
@inproceedings{morrison2021context,
  author = {Max Morrison and Lucas Rencker and Zeyu Jin and Nicholas J. Bryan and Juan Pablo Cáceres and Bryan Pardo},
  title = {{Context-Aware Prosody Correction for Text-Based Speech Editing}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2021},
  doi = {10.1109/icassp39728.2021.9414633},
}
Figure