Abstract
Recently, the utilization of extensive open-sourced text data has significantly advanced the performance of text-based large language models (LLMs). However, the use of in-the-wild large-scale speech data in the speech technology community remains constrained. One reason for this limitation is that a considerable amount of the publicly available speech data is compromised by background noise, speech overlapping, lack of speech segmentation information, missing speaker labels, and incomplete transcriptions, which can largely hinder their usefulness. On the other hand, human annotation of speech data is both time-consuming and costly. To address this issue, we introduce an automatic in-the-wild speech data preprocessing framework (AutoPrep) in this paper, which is designed to enhance speech quality, generate speaker labels, and produce transcriptions automatically. The proposed AutoPrep framework comprises six components: speech enhancement, speech segmentation, speaker clustering, target speech extraction, quality filtering and automatic speech recognition. Experiments conducted on the open-sourced WenetSpeech and our self-collected AutoPrepWild corpora demonstrate that the proposed AutoPrep framework can generate preprocessed data with similar DNSMOS and PDNSMOS scores compared to several open-sourced TTS datasets. The corresponding TTS system can achieve up to 0.68 in-domain speaker similarity.
Introduction
While Large Language Models (LLMs) have scaled massively thanks to the abundance of web-text, Speech AI has historically lagged behind. The "in-the-wild" audio available on the internet—such as podcasts and YouTube videos—is a potential goldmine, but it is notoriously difficult to use. It is often riddled with background noise, overlapping speakers, and reverberation. Furthermore, it lacks the essential labels necessary for supervised training: speaker identities, precise timestamps, and accurate transcriptions.
Manually annotating thousands of hours of such data is prohibitively expensive. AutoPrep aims to bridge this gap by automating the entire cleaning and labeling lifecycle, transforming messy raw audio into high-quality datasets that rival human-curated benchmarks.
The AutoPrep Framework
The AutoPrep framework integrates several state-of-the-art models into a cohesive six-stage pipeline designed to handle the complexities of unconstrained audio.
- Speech Enhancement: Employs a Band-Split RNN (BSRNN) to remove background noise and dereverberate audio, which is critical for the accuracy of subsequent stages.
- Segmentation: Uses a TDNN-based Voice Activity Detection (VAD) model to divide long recordings into manageable, speech-only segments.
- Speaker Clustering: Utilizes the Wespeaker ResNet293 model to extract speaker embeddings, followed by Spectral Clustering to group segments by individual speakers.
- Target Speech Extraction (TSE): To resolve overlapping voices, a personalized BSRNN (pBSRNN) uses the speaker's cluster center as a reference to isolate the target voice from interference.
- Quality Filtering: The system applies DNSMOS and PDNSMOS (neural metrics predicting human quality scores) to automatically discard clips that fall below a specific quality threshold.
- Automatic Speech Recognition (ASR): Finally, a Conformer-based RNN-Transducer generates the text transcriptions.
The Impact of Speech Enhancement
A key insight from this research is that speech enhancement acts as a force multiplier for speaker identification. Noise often masks the unique characteristics of a speaker's voice, leading to poor clustering results.
As shown in the visualization above, the clustering model identified only 5 speakers in the raw audio (A). After denoising with BSRNN (B), the model correctly identified 12 distinct speakers. This demonstrates that cleaning the audio is not just about aesthetic quality but is fundamental to accurate data labeling.
Experimental Results
The framework was evaluated on the 10,000-hour WenetSpeech corpus and a self-collected 498-hour AutoPrepWild dataset.
- Competitive Quality: Audio processed by AutoPrep from the "wild" achieved a DNSMOS of 3.24, which is nearly identical to the highly-regarded LibriTTS dataset (3.25).
- TTS Performance: A Text-to-Speech (TTS) model trained on AutoPrep-processed data achieved an in-domain speaker similarity (SS) score of 0.68, validating the accuracy of the generated speaker labels.
- Speaker Verification: Training a speaker verification system on AutoPrep-processed data resulted in an Equal Error Rate (EER) of 15.03%, outperforming models trained on the original, unprocessed WenetSpeech data (15.40%).
Conclusion
AutoPrep demonstrates that it is possible to automatically curate high-quality speech datasets from unannotated, noisy sources. By prioritizing precision over recall—discarding lower-quality segments to ensure a pristine training set—the framework enables the training of high-performance TTS and recognition models without the need for expensive human intervention. Future work will focus on improving ASR literal accuracy and scaling the clustering components to handle even longer continuous audio streams.
Summary updated