pyoko-web

WebAssembly AudioWorklet and CPU-only PCM-driven lip-sync and character performance engine for Mandarin, Japanese, and English.
Installation
npm install pyoko-web
Quick Start
import { createPyoko } from "pyoko-web";
const pyoko = await createPyoko(audioCtx, { profile: "live2d" });
pyoko.connect(source, audioCtx.destination);
function render() {
pyoko.applyProfile((id, value) => setParam(id, value));
requestAnimationFrame(render);
}
requestAnimationFrame(render);
Uses SharedArrayBuffer when cross-origin isolated (COOP/COEP) and falls back to MessagePort automatically. Batch AudioBuffer analysis is also available via createOfflineAnalyzer.
See the pyoko repository for Live2D / VRM profile details, custom weights, and Rust/Bevy/C bindings.
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.