Kokoro-82M adapter (q8/WASM first, WebGPU experimental) #16
Labels
No labels
NaNs
area/audio
area/build
area/docs
area/dsh
area/engine
area/security
area/ui
needs-operator
priority/later
priority/next
priority/now
type/bug
type/task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
dsh-plugins/dsh-whale-noises#16
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
The quality tier: Kokoro-82M in the same worker/queue architecture, without the 325 MB WebGPU trap.
Scope
kokoro-js@1.2.1(Apache-2.0), pinned exactly (it pinstransformers ^3.5.1; do not float). Modelonnx-community/Kokoro-82M-v1.0-ONNX,dtype: 'q8',device: 'wasm'only.list_voices()(55 voices); show language + grade where available; defaultaf_heart.stream()optional behind a flag.navigator.gpu, and never auto-download fp32 (325.5 MB). Documenthexgrad/kokoro#275as the reason.performance.memory/DevTools numbers on a 2 GB-class client.Acceptance
Notes
docs/research/tts-engines.md§4.Implemented in
a47bc6f— awaiting browser proof.src/worker/kokoro-entry.js) bundlingkokoro-js1.2.1 (transformers.js + ORT), isolated from Piper's ORT;numThreads = 1so no COOP/COEP is needed.src/engines/kokoro.js: eight curated voices (af_heartdefault,af_bella,af_nicole,am_michael,am_fenrir,bf_emma,bm_george,bm_fable), q8 model (~92.4 MB) + per-voice style (~0.5 MB), download only through explicitprepare().setEnginetears down the old worker/queue/context.Manual test needed: Settings → Kokoro → Enable audio & preview (one 92 MB download), then auto-read/read-aloud. Report first-utterance latency and any worker/CORS error.
Kokoro load failure fixed in
32304d7. Root cause:scripts/build-client.mjsmarkedfs/pathas external for both workers (Piper needs the shim for its Node branches). The Kokoro worker then keptrequire("path")from kokoro-js and our banner shim threwnode builtin path is unavailable in the browser workerbefore any model download.external: ['fs','path']+ shim.require(...)in the emitted kokoro worker).Also moved the mascot 1 px closer (4 px overlap) per the operator's last visual pass.
Dropped: Kokoro was removed on 2026-11-04 in favour of LibriTTS (904 voices) and Phonon; adapter, worker, dependency and tests deleted.