Generates tests/fixtures/reference.json — the Python-side reference probabilities
used by the Rust accuracy test (make accuracy).
python3 -m venv scripts/.venv
scripts/.venv/bin/pip install transformers onnxruntime numpy soundfilescripts/.venv/bin/python3 scripts/gen_reference.py- A fixture WAV changes (
tests/fixtures/*.wav) - The model version changes (bump
MODEL_VERSIONinbuild.rsat the same time)
| File | Description |
|---|---|
tests/fixtures/silence_2s.wav |
2 s of zeros at 16 kHz (generated if missing) |
tests/fixtures/reference.json |
P(complete) for each fixture clip |
Commit both files after re-running.