3-Stage Closed-Loop Speech Pipeline (~592.2 MB) Stage 1: Silero VAD (2.2 MB CPU WASM) Stage 2: Chatterbox Turbo (561.81 MB WebGPU q4f16) Stage 3: Moonshine Tiny ASR (28.2 MB CPU WASM) MIT × 3

Silero VAD Auto-Trim → Chatterbox Clone → Moonshine Tiny WER Check

Build an honest, closed-loop voice-cloning QA pipeline across three isolated Web Workers: Stage 1 Silero VAD (reusing models/silero-vad/worker.js) trims leading/trailing room silence from a raw reference clip, Stage 2 Chatterbox Turbo (worker.js, Transformers.js 4.3.2 on WebGPU) clones the target prompt at 24 kHz, and Stage 3 Moonshine Tiny (reusing models/moonshine-tiny/worker.js) transcribes the synthesized PCM back to text to compute live Word Error Rate (WER) and word-by-word alignment diff.

1. Independent 3-Stage Loaders (~592.2 MB Total)

Stage 1 · Silero VAD (2.2 MB CPU WASM)

Reuses ../../silero-vad/worker.js (onnx-community/silero-vad, MIT).

Stage 2 · Chatterbox Turbo (561.81 MB WebGPU)

Uses ../worker.js (ResembleAI/chatterbox-turbo-ONNX, MIT, Transformers.js 4.3.2).

Stage 3 · Moonshine Tiny ASR (28.2 MB CPU WASM)

Reuses ../../moonshine-tiny/worker.js (onnx-community/moonshine-tiny-ONNX, MIT).

2. Run Closed-Loop VAD Trim → Clone → ASR Intelligibility Check

Loading raw reference clip…

Initialising Stage 1 (Silero VAD), Stage 2 (Chatterbox Turbo), and Stage 3 (Moonshine Tiny)…

Stage 1 VAD Trim–
Stage 1 Speech Ratio–
Stage 2 Clone / RTF–
Stage 3 ASR Latency–
Round-Trip WER–
Round-Trip CER–
Word Accuracy–
Combined NaNs–

Stage 1 · Silero VAD Reference Trim Curve

Silero VAD per-frame speech probability overlay and selected clean speaker window.

Run Stage 1 to inspect speech probability and clean trim bounds

Stage 2 · Chatterbox Turbo 24 kHz Cloned PCM

Chatterbox Turbo synthesized 24 kHz output waveform.

Run Stage 2 on WebGPU to synthesize 24 kHz audio

Stage 3 · Moonshine Tiny ASR Round-Trip Transcript & WER Diff

Target spoken text (normalized, tags stripped):

flight forty two arrives at gate seven in ten minutes

Moonshine Tiny ASR live transcript of synthesized audio:

Awaiting Stage 3 Moonshine Tiny transcription…

Word-by-Word Alignment Diff (Match / Sub / Del / Ins)

Run all 3 stages to inspect live word alignment.

Show the code

Show the code — chatterbox-core.mjs: computeRoundTripWer() (Levenshtein WER, CER & word-alignment diff)