HomeRoadmapsVoice AI Day 1
Voice & Conversational Audio AI Agents Testing Β· Day 1 Β· 20 min

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.

⚑ Runtime: Python 3.10+ Β· Zero External Dependencies (unittest + wave)πŸŽ™οΈ Voice & Conversational Audio AI QE Lead
ASRWER & CEREntity RecallTranscript NormalizationPython unittest
About this lab

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.

πŸ“¦Sample Codebase & Working Solution (Day 1)Available Now
View on GitHub

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 β€” 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.py
🏭Production Context & Contact-Center Implementation
πŸ’‘ Why We Are Doing This: Enterprise voice agents processing claims intake, dispute verification, and order support fail silently when overall WER is low but critical slots like reference codes, dollar amounts, or dates are corrupted.
🏒 Real-World Production Usecase: Automated ASR regression suite validating normalized WER/CER thresholds alongside 100% structured entity recall.
βš™οΈ How Implemented in Production: compute_wer, compute_cer, extract_entities, and evaluate_asr_sample in voicelab/asr.py.
Phase 1

Run & Inspect ASR WER and Entity Recall Tests

Clone the companion repository and execute the Day 1 ASR quality test suite.

Step 1.1: Clone and Run Day 1 Tests
Terminal β€” Setup Day 1 Lab
git clone https://github.com/777abhi/voice-ai-testing-roadmap.git
cd voice-ai-testing-roadmap
npm run test:day1
Step 1.2: Catch Low-WER Masked Entity Corruption
voicelab/asr.py
res = 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
Day 1 Key Learnings
  • 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?