feat: extend accuracy report to cover wavekat-zh backend#21
Merged
Conversation
Reference probabilities are now keyed by `(backend, file)` so multiple Smart Turn variants can coexist. `make accuracy` builds with `wavekat-smart-turn` and emits one row per pair, covering upstream Pipecat on both English and Mandarin fixtures plus the WaveKat zh fine-tune on the Mandarin fixtures. All 9 rows pass within the 0.02 tolerance; pipecat-only and no-feature builds remain green. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Merged
wavekat-eason
pushed a commit
that referenced
this pull request
May 11, 2026
## 🤖 New release * `wavekat-turn`: 0.0.8 -> 0.0.9 (✓ API compatible changes) <details><summary><i><b>Changelog</b></i></summary><p> <blockquote> ## [0.0.9](v0.0.8...v0.0.9) - 2026-05-11 ### Added - extend accuracy report to cover wavekat-zh backend ([#21](#21)) </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/release-plz/release-plz/). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tests/fixtures/reference.jsonare now keyed by(backend, file), so multiple Smart Turn variants can share one fixture file. Older flat entries still load —backenddefaults topipecatvia serde.scripts/gen_reference.pyscores both upstream Pipecat v3.2 and the WaveKat zh fine-tune (wavekat/smart-turn-ONNX, zh subfolder) and writes one entry per(backend, clip)pair.crates/wavekat-turn/tests/accuracy.rsgains awavekatmodule gated onwavekat-smart-turnthat loads the zh variant once and contributes rows for thezh_*.wavfixtures. Sharedload_wav_f32/raw_probhelpers lifted out of the pipecat module.make accuracynow builds with--features wavekat-smart-turn; the zh weights are pulled from HuggingFace on first run and cached under$HF_HOME/hub/.Result
make accuracy(v0.0.8):silence_2s.wavspeech_finished.wavspeech_mid.wavzh_speech_finished.wavzh_speech_finished_short.wavzh_speech_mid.wavzh_speech_finished.wavzh_speech_finished_short.wavzh_speech_mid.wavAll rows within the existing 0.02 tolerance (max Δ = 0.0162).
Test plan
make accuracy— 9/9 PASScargo test -p wavekat-turn --no-default-features --features ""— cleancargo test -p wavekat-turn --no-default-features --features pipecat --test accuracy— 3 pipecat regression tests pass against the new schemacargo fmt --check,cargo clippy --features wavekat-smart-turn -- -D warnings— clean🤖 Generated with Claude Code