Abstract
EdiTTS is a "plug-and-play" speech editing framework that leverages pretrained score-based (diffusion) models to modify audio without any additional training. By applying coarse perturbations to the latent priors of a text-to-speech system, it allows for granular control over pitch and content while maintaining high-quality, natural-sounding results. This approach treats the editing process as a denoising task, where coarse user-defined modifications are refined through a reverse diffusion process to ensure acoustic consistency.
Introduction
Traditional Text-to-Speech (TTS) systems are highly effective at generating audio from scratch but are notoriously difficult to edit post-generation. Modifying specific attributes like the pitch of a single word or replacing content typically requires one of two suboptimal approaches:
- Digital Signal Processing (DSP): Methods like WORLD or TD-PSOLA can shift pitch but often introduce audible robotic artifacts.
- Specialized Models: Training a dedicated editing model is computationally expensive and requires specific, often scarce, datasets.
Speech is a complex signal where prosody, tone, and content are deeply intertwined. Simple "cut and paste" operations on spectrograms lead to unnatural transitions and audible seams. EdiTTS addresses this by using the inherent denoising power of diffusion models to smooth out user-defined edits.
Methods
EdiTTS is built upon Grad-TTS, a score-based generative model. Unlike standard image diffusion models that start from pure white noise, Grad-TTS begins with a "prior"—a rough, text-aligned mel-spectrogram predicted by a text encoder.
The core innovation of EdiTTS is Prior Perturbation. Instead of modifying the final audio, EdiTTS shifts the latent prior along the frequency axis for pitch control or "stitches" together priors from different sources for content replacement. These coarse edits are then passed through a reverse diffusion process. The model treats these edits as "noisy" versions of a realistic distribution and refines them into natural speech.
To ensure seamless transitions, EdiTTS employs gradient softening masks ($S_g$) at the boundaries of edited regions. Crucially, this method requires zero retraining; it utilizes a pretrained Grad-TTS model by simply altering the initialization of the reverse Stochastic Differential Equation (SDE) process.
Evaluation
The framework was evaluated using the LJ Speech dataset, a standard benchmark of 13,100 short audio clips. Mel-spectrograms were converted back to audio using the HiFi-GAN vocoder. The study focused on two primary metrics: naturalness (via Mean Opinion Score) and content accuracy (via Word Error Rate).
Key Results
EdiTTS demonstrates significant improvements in both pitch control and naturalness compared to existing baselines. In Mean Opinion Score (MOS) tests, EdiTTS achieved a score of 4.04 for upward pitch shifts, significantly outperforming FastPitch (3.77) and the DSP-based WORLD (2.79).
For content replacement, EdiTTS achieved a Word Error Rate (WER) of 9.11%. While slightly higher than the original Grad-TTS generation (8.22%), it represents a major improvement over naive spectrogram concatenation (11.61%), proving that the denoising process successfully "fixes" audio joins that would otherwise sound disjointed.
Discussion and Limitations
By modifying the internal representation (the prior) rather than the output, EdiTTS allows the model to "hallucinate" the necessary acoustic details to make edits sound natural. The reverse diffusion process acts as a powerful interpolator, smoothing boundaries that would otherwise be perceived as sharp cuts.
However, the method has limitations. Like most diffusion-based models, inference is slow, requiring 1,000 iterative steps. Additionally, while the model can shift pitch "up" or "down," it currently lacks the precision to target specific frequencies (e.g., "increase by 50Hz"). The system's performance is also dependent on the accuracy of the internal text-to-audio alignment; errors in alignment can cause edits to target the wrong segment of speech.
Summary updated