Skip to content

Packs / voice-models-public

measure-asr-wer

Measure speech-to-text accuracy as word error rate: score transcripts against references, with a free local smoke test (macOS say -> whisper-cli -> WER under 0.2).

Install

logicpacks pack use voice-models-public/measure-asr-wer
get_pack voice-models-public/measure-asr-wer

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: whisper-cli-macpython-stdlib
  • Checks: 3 in outcome/checks.yaml
  • Code: asr_smoke.shwer.py
  • Tools: python3

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

A WER number for a speech recogniser on our audio, comparable before and after a change.

Steps

  1. Collect 20+ held-out clips with correct transcripts (refpath or refhyp after transcription).
  2. Transcribe with the model under test (whisper-cli, faster-whisper, an API).
  3. python3 code/wer.py --pairs pairs.tsv for the corpus WER.
  4. Repeat for the fine-tuned model; keep both numbers in the project note.

Edge cases

  • Roman Urdu has no standard spelling: normalise both sides (or use CER) before comparing.
  • Numbers: normalise '42' vs 'forty two'.

Don'ts

  • Don't compare WER across different normalisation rules.