ASR WER, CER & Domain Entity Recall
Voice & Conversational Audio AI Agents Testing β Day 1
Measure Levenshtein WER and CER with transcript normalization, and enforce 100% domain-critical entity recall so low overall WER never masks corrupted policy codes, currency amounts, or dates.
A 5% Word Error Rate looks healthy on a dashboard, yet a single misheard character in an alphanumeric claim or order reference (POL-8842X vs. POL-8849Z) breaks downstream account lookup. Today you will test normalized Levenshtein WER/CER alongside strict domain entity recall gates.
The official reference codebase for Day 1 is hosted in the repository. Clone the repository and navigate to day-1-asr-wer-entities/test_day1.py to run the working solution.
git clone https://github.com/777abhi/voice-ai-testing-roadmap.git
cd voice-ai-testing-roadmap/day-1-asr-wer-entities/test_day1.pyRun & Inspect ASR WER and Entity Recall Tests
Clone the companion repository and execute the Day 1 ASR quality test suite.
git clone https://github.com/777abhi/voice-ai-testing-roadmap.git
cd voice-ai-testing-roadmap
npm run test:day1res = evaluate_asr_sample(
reference="Confirm claim POL-8842X for $450.00 filed on 2026-05-14.",
hypothesis="Confirm claim POL-8849Z for $450.00 filed on 2026-05-14.",
max_wer=0.08,
min_entity_recall=1.0,
)
assert res.low_wer_masks_entity_error and not res.passed- Implemented deterministic transcript normalization and exact Levenshtein WER/CER scoring.
- Extracted domain-critical slots (alphanumeric reference codes, currency amounts, and dates).
- Proved why low aggregate WER can still mask catastrophic entity transcription errors.
π§ Knowledge Check
Why is overall Word Error Rate (WER) alone insufficient for testing enterprise voice AI agents?