Automated Audio Cleaning for Text-to-Speech Corpora

High-quality Text-to-Speech (TTS) synthesis depends heavily on dry, pristine acoustic data free of room acoustics and physiological mouth noise. This article examines the automated pipelines used in modern machine learning workflows to systematically eliminate room reverberation, mouth clicks, and breath noises from large-scale voice datasets.

The Standard Audio Cleaning Pipeline Architecture

Building a production-ready TTS dataset from raw recordings involves an automated, sequential pipeline. Applying cleaning algorithms in the wrong order can cause artifacts; for instance, dereverberating an audio file after dynamic compression will amplify room reflections. The standard processing sequence typically follows this order:

  1. Blind Dereverberation: Strips early reflections and late reverberation tails to create an anechoic baseline.
  2. De-Clicking and Transient Repair: Identifies and interpolates over micro-transients caused by saliva and tongue movement.
  3. Forced Alignment and Segmentation: Splits the audio into short utterances and aligns text tokens with phonemes.
  4. Breath Detection and Attenuation: Attenuates or removes non-phonetic intake and exhale sounds during inter-word or sentence boundaries.
  5. Loudness Normalization: Standardizes integrated loudness (e.g., -24 LKFS/LUFS) and true-peak levels across the corpus.

Automated Dereverberation Techniques

Room impulse response (RIR) introduces phase distortion and temporal smearing, which degrades the vocoder’s ability to generate crisp high-frequency details. Automated pipelines employ two primary classes of dereverberation:

Removing Mouth Clicks and Saliva Artifacts

Mouth clicks are short, high-frequency transients (typically 2 to 10 milliseconds in duration, concentrated above 4 kHz) caused by the separation of the tongue, lips, and palate. Automated removal relies on digital signal processing (DSP) rather than heavy neural networks to avoid altering underlying formant structures:

Breath Detection and Gating

While natural breathing can sometimes improve conversational TTS models, training standard acoustic models (such as FastSpeech 2 or VITS) requires precise control over non-speech sounds. Unintended loud inhalations create alignment errors and phoneme confusion.

Integrated End-to-End Solutions

Engineering teams often wrap these steps into continuous integration workflows using tools like Resemble Enhance, custom Python orchestrations (combining librosa, scipy, and torchaudio), or automated batch processing via headless sound engines. By combining statistical DSP for transient repair with deep learning models for acoustic dereverberation, these pipelines clean hundreds of hours of raw speech into studio-grade training corpora with minimal manual QA.