FluentEditor2: Text-Based Speech Editing by Modeling Multi-Scale Acoustic and Prosody Consistency

Rui Liu, Jiatian Xi, Ziyue Jiang, Haizhou Li

TL;DR

This paper introduces FluentEditor2, a novel text-based speech editing (TSE) system that significantly improves the naturalness and fluency of edited speech. It achieves this by introducing two new training criteria: Hierarchical Local Acoustic Smoothness Consistency (LHLAC) and Contrastive Global Prosody Consistency (LCGPC), which model multi-scale acoustic and prosodic coherence.

What Problem Does This Paper Address?

Text-based speech editing (TSE) allows users to modify audio by editing the transcript, offering a more intuitive workflow than direct audio manipulation. However, a major challenge in TSE is ensuring that the edited speech segments blend seamlessly with the original audio, maintaining both acoustic and prosodic consistency. Existing methods often focus on local discrepancies, neglecting the crucial need for smooth transitions at the boundaries between edited and unedited regions, and for preserving the overall prosodic style of the original utterance. This can lead to audible artifacts and unnatural-sounding speech. FluentEditor2 aims to address this by explicitly modeling multi-scale acoustic and prosodic consistency.

Methods

FluentEditor2 builds upon a mask-prediction-based diffusion network architecture, similar to previous state-of-the-art TSE models. The core innovations lie in its novel training criteria:

  • Hierarchical Local Acoustic Smoothness Consistency (LHLAC): This loss function ensures smooth transitions at the boundaries of edited speech across multiple granularities:
  • Frame-level: Aligns acoustic features of adjacent speech frames.
  • Phoneme-level: Ensures smooth transitions between phonemes.
  • Word-level: Guarantees coherence between words. This is achieved by calculating "concatenation costs" inspired by unit selection TTS systems. A key enabler for LHLAC is a new Word-level Masking (WLM) Strategy, which masks entire word spans instead of random frames, preserving structural integrity and facilitating multi-granularity alignment.

  • Contrastive Global Prosody Consistency (LCGPC): This loss leverages contrastive learning to ensure that the prosody of the edited speech segment aligns with the overall prosody of the original utterance. It pulls the prosody features of the edited region closer to the original utterance's prosody (positive sample) while pushing them away from prosody features of other utterances in the batch (negative samples). This helps maintain a consistent speaking style and intonation.

The overall loss function for FluentEditor2 is a combination of the standard reconstruction loss (MAE and SSIM) and these two new consistency losses.

Datasets

The paper evaluates FluentEditor2 on two publicly available datasets:

  • VCTK: A dataset of speech from 110 English speakers, featuring various accents, sampled at 22050 Hz.
  • LibriTTS: A large-scale dataset of high-quality English speech from 2,456 speakers, derived from audiobooks, sampled at 24 kHz.

The Montreal Forced Aligner (MFA) was used for accurate text-speech alignment on both datasets.

Key Insights and Ideas

  • Multi-scale consistency is key for fluency: The paper strongly argues that simply ensuring local acoustic similarity within edited regions is insufficient. True fluency requires consistency across different linguistic levels (frames, phonemes, words) and maintaining global prosodic coherence.
  • Word-level masking is superior to frame-level masking: The introduction of a Word-level Masking strategy significantly improves the integrity of edited regions and enables more effective hierarchical acoustic smoothness modeling.
  • Contrastive learning for prosody is powerful: Applying contrastive learning to prosody features effectively enforces global consistency, preventing the edited speech from deviating from the original utterance's style.
  • The proposed losses are complementary: LHLAC focuses on local acoustic smoothness, while LCGPC addresses global prosodic style. Together, they create a more holistic approach to fluent speech editing.

Key Results

  • Superior performance: FluentEditor2 consistently outperformed existing state-of-the-art TSE methods (EditSpeech, CampNet, A³T, FluentSpeech, and its predecessor FluentEditor) in both objective (MCD, STOI, PESQ) and subjective (MOS, FMOS, IMOS) evaluations on both VCTK and LibriTTS datasets.
  • Objective metrics: FluentEditor2 achieved the lowest MCD (indicating less distortion) and highest STOI/PESQ (indicating better speech quality and intelligibility). For example, on VCTK, it achieved an MCD of 5.836 and on LibriTTS, 4.537.
  • Subjective metrics: FluentEditor2 achieved competitive FMOS (fluency) scores, approaching ground truth values. For instance, it achieved FMOS scores of 4.314 for insertion and 4.286 for replacement on VCTK.
  • Ablation studies: Removing either LHLAC or LCGPC led to a decrease in performance, highlighting the crucial contribution of each proposed loss function. The word-level component of LHLAC was found to be particularly important.
  • Word-level masking effectiveness: Applying WLM to baseline models also showed improvements, demonstrating its general utility.
  • Mask ratio optimization: An 80% mask ratio was found to be optimal for word-level masking, balancing performance and fluency.

Limitations and Future Work

  • Generalization: While FluentEditor2 shows strong performance, the paper notes a noticeable drop in performance across all models when evaluated on cross-domain datasets (e.g., LJSpeech vs. VCTK). This highlights the challenge of generalizing TSE models to unseen domains.
  • Future work: The authors suggest further exploration into improving cross-domain generalization and potentially incorporating more sophisticated acoustic and prosodic modeling techniques. The paper also points to the availability of speech demos and code for further investigation.

Summary updated

BibTeX
@article{liu2025fluenteditor,
  author = {Rui Liu and Jiatian Xi and Ziyue Jiang and Haizhou Li},
  title = {{FluentEditor2: Text-Based Speech Editing by Modeling Multi-Scale Acoustic and Prosody Consistency}},
  journal = {IEEE Transactions on Audio, Speech and Language Processing},
  year = {2025},
  url = {https://openreview.net/forum?id=OSovtO3BYF},
}
Figure