Introduction
Training state-of-the-art "end-to-end" Automatic Speech Recognition (ASR) systems requires thousands of hours of transcribed audio. Traditionally, creating these datasets is a Herculean task involving expensive manual transcription and tedious alignment of audio segments with specific text. While the internet is saturated with video content, much of it is unsuitable for training due to background noise, poor audio quality, or inaccurate captions.
KT-Speech-Crawler is an open-source tool designed to autonomously "mine" the vast library of YouTube to find high-quality, well-aligned speech-text pairs. By applying a pipeline of heuristic filters and forced alignment, the system can collect 150 hours of high-quality transcribed speech in a single day, leading to significant reductions in error rates when used to augment standard benchmarks.
System Architecture and Methods
The authors developed a multi-stage pipeline to ensure the quality of the crawled data, moving from broad candidate selection to fine-grained post-processing.
1. Candidate Selection
The crawler utilizes the YouTube Search API to identify videos using the top 100 most common English words as keywords. To maintain high baseline quality, it specifically targets videos with manually uploaded closed captions, avoiding lower-quality auto-generated transcripts.
2. Filtering Pipeline
To ensure data integrity, several "sanity checks" are applied:
- Content Cleaning: Removal of non-ASCII characters, URLs, and speaker tags (e.g., "Speaker 1:").
- Music/Noise Filter: Segments flagged as containing music or overlapping captions are discarded.
- Text Normalization: Numbers (1-100) are spelled out to ensure the text matches the phonetic spoken word.
- Commercial ASR Verification: To verify alignment, the system sends a random sample of the video to the Google ASR API. If the similarity between the user's caption and Google's transcription is below 70%, the entire video is discarded. This "teacher" approach allows for high-quality gating without the cost of transcribing the entire dataset.
3. Post-processing
Audio is segmented into chunks between 1 and 10 seconds. Using the Kaldi toolkit (specifically the Gentle aligner), the system performs forced alignment to fine-tune the start and end times of captions, ensuring words are not truncated at segment boundaries.
Experimental Evaluation
Datasets
The researchers evaluated the crawler by augmenting two classic ASR benchmarks:
- Wall Street Journal (WSJ): Read news speech (approx. 81 hours).
- TED-LIUM v2: Spontaneous speech from TED talks (approx. 200 hours).
- The Crawled Dataset: Hundreds of hours of new data were collected from YouTube. The authors estimated the Word Error Rate (WER) of these crawled transcriptions to be a remarkably low 3.5%.
Model Architecture and Results
The authors trained a DeepSpeech 2-style architecture consisting of convolutional layers followed by Gated Recurrent Units (GRUs).
Adding the crawled data yielded significant performance gains:
- WSJ Improvement: Adding 200 hours of YouTube data to the WSJ training set reduced the WER from 27.4% to 15.8% (a ~42% relative improvement).
- TED-LIUM Improvement: Adding 300 hours of YouTube data reduced the WER from 32.6% to 28.1%.
Key Insights
- The Power of Diversity: Unlike the "clean" audio in the WSJ dataset, YouTube data includes background noise, various accents, and different recording conditions. This natural variance helps the neural network become more robust to real-world conditions.
- Quantity vs. Domain: While adding YouTube data helped significantly, models trained only on YouTube data performed worse on the WSJ test set than models trained on the original (smaller) WSJ set. This confirms that while volume is helpful, domain-specific data remains vital for specialized tasks.
Limitations and Future Work
While efficient—gathering 150 hours of usable speech in 24 hours on a single core—the system has limitations. It currently focuses strictly on English and occasionally struggles with overlapping speech or synthetic (TTS) audio. Future iterations may include "human-vs-bot" audio classifiers and more sophisticated source separation models to handle complex acoustic environments.
Summary updated