use case · multi-model · Wav2Vec2 SUPERB KS (95.89 MB q8 · Apache-2.0) → Whisper-Tiny EN (40.85 MB q8 · Apache-2.0) · 136.7 MB total

Voice-Command Gate + Whisper Transcription Router: 136.7 MB Total

Stage 1 (Xenova/wav2vec2-base-superb-ks, 95.89 MB q8 WASM, Apache-2.0) performs fast 12-class spoken command triage. Confident commands fast-path directly, pure _silence_ is suppressed, and _unknown_ or low-confidence speech escalates to Stage 2 (Xenova/whisper-tiny.en, 40.85 MB q8 WASM, Apache-2.0, reusing ../../whisper-tiny-en/worker.js) for full punctuated English transcription.

1 · Two isolated speech-gating & ASR workers (136.7 MB combined)

Stage 1 · Wav2Vec2 SUPERB KS (95.89 MB q8 · Apache-2.0)

Xenova/wav2vec2-base-superb-ks · 12-class command gate (../worker.js).

Stage 2 · Whisper-Tiny EN ASR (40.85 MB q8 · Apache-2.0)

Xenova/whisper-tiny.en · Full transcription fallback (../../whisper-tiny-en/worker.js).

2 · Spoken audio → Stage 1 command gate → Stage 2 Whisper fallback

Initialise both workers above (136.7 MB total) to gate spoken commands and transcribe _unknown_ speech locally.

Loading sample…
Combined size136.7 MB
Stage 1 KS ms–
Stage 2 Whisper ms–
Router decision–
NaN (S1 / S2)–

Stage 1 · 12-Class Keyword Gate

Run Stage 1 to inspect the command triage decision.

Run Stage 1 to inspect top keyword probabilities.

Stage 2 · Whisper-Tiny EN Transcript Fallback

Stage 2 runs automatically when Stage 1 routes _unknown_ / low-confidence speech (or click Run Stage 2 only).

Timestamps: –

3 · Inspect Stage 2 worker reuse & conditional router logic

Show the code · wav2vec2-base-superb-ks.js — WhisperStage2Client (reusing ../whisper-tiny-en/worker.js)
Show the code · wav2vec2-base-superb-ks-core.mjs — routeMultiModelDecision() (fast-path vs Whisper escalation)