use case · multi-model · Kitten TTS 2 Pico (13.46 MB int8 · Apache-2.0) → Moonshine Tiny ASR (28.18 MB q8 · MIT) · 41.6 MB total

Live TTS → ASR Round-Trip Speech Verification: 41.6 MB Total

Stage 1 (KittenML/kitten-tts-2-pico, 13.46 MB int8 CPU WASM) synthesizes 24 kHz English speech off the main thread, then linear resampling downsamples the live waveform to 16 kHz for Stage 2 (onnx-community/moonshine-tiny-ONNX, 28.18 MB q8 CPU WASM, reusing ../../moonshine-tiny/worker.js) to transcribe it back and compute real Word Error Rate.

1 · Two isolated speech workers (41.6 MB combined)

Stage 1 · Kitten TTS 2 Pico (13.46 MB int8 · Apache-2.0)

KittenML/kitten-tts-2-pico · 24 kHz neural TTS (../worker.js).

Stage 2 · Moonshine Tiny ASR (28.18 MB q8 · MIT)

onnx-community/moonshine-tiny-ONNX · 16 kHz RoPE ASR (../../moonshine-tiny/worker.js).

2 · Synthesize → 24→16 kHz Resample → Transcribe & Diff

Round-trip verification presets

Initialise the 2-stage TTS → ASR Pack above (41.6 MB total) to verify synthesized speech locally.

Combined size41.6 MB
Stage 1 TTS ms / RTF–
Stage 2 ASR ms–
Word match %–
Word Error Rate–
NaN (S1 / S2)–

Stage 1 · Synthesized 24 kHz Audio

Run Stage 1 to synthesize 24 kHz PCM and resample to 16 kHz.

Stage 2 · Moonshine Tiny ASR Transcript & Diff

ASR hypothesis transcript

Run the 2-stage round-trip (or Stage 2 on synthesized audio) to transcribe speech back into text.

Word alignment: –

3 · Inspect Stage 2 worker reuse & WER diff code

Show the code · pico.js — MoonshineStage2Client (reusing ../moonshine-tiny/worker.js)
Show the code · pico-core.mjs — computeWerAndDiff() (Levenshtein WER & word diff)