Quality Assessment for Audio Data
Filter audio quality using transcription accuracy metrics, duration analysis, and custom quality measures to ensure high-quality speech datasets for ASR training.
How it Works
Audio quality assessment in NeMo Curator focuses on speech-specific metrics that correlate with training data quality:
- Transcription Accuracy: Word Error Rate (WER) and Character Error Rate (CER) between ground truth and ASR predictions
- Duration Analysis: Audio length validation and speech rate calculations
- Value-based Filtering: Configurable filtering using comparison operators
Quality Metrics
Word Error Rate (WER)
The primary metric for assessing transcription quality:
WER measures the percentage of words that differ between ground truth and predicted transcriptions:
- WER = 0%: Perfect transcription match
- WER = 25%: Good quality (1 in 4 words incorrect)
- WER = 50%: Moderate quality
- WER >75%: Poor quality (consider filtering)
Character Error Rate (CER)
For segment-oriented manifests, ComputeWERStage calculates CER together with WER and writes the results under the metrics object:
metrics.cer.cer and metrics.wer.wer are nonnegative ratios, where 0 means an exact match. Insertions can make either ratio exceed 1.0. GetPairwiseWerStage instead writes the ratio multiplied by 100 in the top-level wer_pct field for simple threshold filtering.
Speech Rate Metrics
The same ComputeWERStage records speaking speed from the hypothesis text and segment duration:
For a complete example of using speech rate metrics in a pipeline, refer to the Duration Filtering guide.
Filtering Strategies
WER-based Filtering
Filter audio samples based on transcription accuracy:
Duration-based Filtering
Filter by audio length to remove short or long samples:
Combined Quality Filtering
Operator Options
The PreserveByValueStage supports several comparison operators:
Complete Quality Assessment Pipeline
Here’s a complete working example that demonstrates quality assessment:
Related Topics
- WER Filtering - Detailed guide to Word Error Rate filtering
- Duration Filtering - Audio length and speech rate filtering
- Audio Analysis - Audio file analysis and validation