Pyoko Acoustic Frontend (PYKO v1)
acoustic.pyk is a ~1.17 MiB causal dilated SwiGLU-TCN for real-time lip-sync in Mandarin, Japanese, and English. It runs on CPU via the Pyoko Rust and WebAssembly runtimes with 30 ms lookahead and no ML framework dependencies.
| Property | Value |
|---|---|
| Architecture | 5-block causal SwiGLU-TCN (192 channels, 630 ms receptive field) |
| Outputs | 5 vowels (A, I, U, E, O), closure, voice, accent, breath |
| Format | PYKO v1, group-32 int8 quantized (1.17 MiB) |
| License | MIT OR Apache-2.0 |
Usage
Bundled automatically in default Rust and WASM builds, or loaded from bytes at runtime:
let micro = pyoko::Micro::from_bytes(include_bytes!("acoustic.pyk"))?;
let engine = pyoko::Engine::with_frontend(48_000, micro, pyoko::Persona::Balanced)?;
Also supported via the offline CLI (--weights), C ABI (pyoko_create_with_weights), and Web SDK ({ weights }).
Evaluation
Evaluated on speaker/persona-disjoint validation splits and zero-training google/fleurs holdouts against weak CTC-teacher and phone-span targets (Dsp is the zero-weight baseline):
| Benchmark Track | Vowel Acc (Micro / Dsp) | Macro F1 | Voice Acc |
|---|---|---|---|
| Mandarin (thchs30, aishell3_zh, csemotions_zh, cv17_zh) | 80.2β91.9% / 46.4β54.1% | 78.2β91.1% | 95.0β96.9% |
| Japanese (cv17_ja, aituber_ja) | 86.3β89.5% / 40.2β51.7% | 84.9β88.7% | 97.6β97.9% |
| English (librispeech, cv1, vctk, character) | 69.8β82.8% / 43.5β48.8% | 68.1β81.8% | 95.2β96.4% |
| FLEURS Zero-Shot (zh, ja, en) | 67.2β80.9% / 45.1β54.8% | 64.8β79.4% | 78.2β96.4% |
| Noise Negatives (musan_noise_neg) | β | β | 95.7% (4.3% FVR) |
Full per-corpus results, confusion matrices, and pinned dataset revisions are in metrics.json.
Training Data
Trained with CTC forced alignment, teacher distillation, and musan-noise mixing, using pyoko-c for Rust feature parity:
- Mandarin: thchs30-segment, AISHELL-3, CSEMOTIONS (Apache-2.0), CV 17.0 zh-CN (CC0-1.0), aligned with wav2vec2-lv-60-espeak-cv-ft and g2pW
- Japanese: CV 8.0 JA, CV 17.0 JA (CC0-1.0), AItuber-Persona-Voices-JA (CC-BY-4.0), aligned with japanese-hubert-base-phoneme-ctc-v2 and
pyopenjtalk-plus - English: LibriSpeech, VCTK, LAION Character Voices (CC-BY-4.0), CV 1.0 EN (CC0-1.0), aligned with hubert-base-phoneme-en and cmudict-espeak-ipa (BSD-2-Clause)
- Noise & Holdouts: musan-noise (Public Domain / CC-BY-3.0), Google FLEURS (CC-BY-4.0)
Limitations & License
acoustic.pyk is designed for single-speaker mono speech, not multi-speaker mixes or transcription. The weights are licensed under MIT OR Apache-2.0; upstream datasets and alignment teachers retain their respective licenses.