use case · multi-model · ConvTasNet (~20 MB) → Moonshine Base ASR (~65 MB) · ~85 MB total

Cocktail-Party Transcriber

Standard speech-to-text models choke when two people speak at once. Here we chain two isolated on-device Web Workers: Stage 1 (ConvTasNet) separates the overlapping mixture into Speaker 1 and Speaker 2, then Stage 2 (Moonshine Base ASR) — reusing the existing Moonshine worker with zero weight duplication — transcribes the unseparated raw mix side-by-side against both separated speakers.

1 · Two chained on-device models (isolated Web Workers)

Stage 1 · ConvTasNet 2-speaker separator (~20 MB)

Time-domain separator (welcomyou/convtasnet-libri2mix-16k-onnx, fp32 WASM) splitting one mono mixture into s1 and s2.

Stage 2 · Moonshine Base ASR (~65 MB)

Fast edge speech-to-text (onnx-community/moonshine-base-ONNX, q8) via the shared moonshine-asr/worker.js.

Prepare both models above to separate and transcribe overlapping voices on-device.

2 · Overlapping audio source & 2-stage pipeline

Client-side mixed clips (zero bundled media here): Track A: JFK Inaugural Address (20 Jan 1961, Public Domain) — “And so, my fellow Americans, ask not…”. Track B: LibriSpeech test-clean 61-70968-0000 (Paul-Gabriel Wiener reading Robin Hood ch. 4; Panayotov et al., OpenSLR SLR12, CC BY 4.0) — “He began a confused complaint against the wizard, who had vanished behind the curtain on the left.”

Stage 1 · ConvTasNet–
Stage 2 · Moonshine (3 passes)–
Moonshine backend–
Words (Raw vs S1 + S2)–

3 · Side-by-side transcripts: Raw mix vs separated speakers

Before separation · Unseparated raw mixture (ASR baseline)

Waiting for pipeline

Run the 2-stage pipeline above to see how Moonshine ASR transcribes the tangled raw mix.

After ConvTasNet · Speaker 1 (s1)

Waiting for pipeline

Separated Speaker 1 transcript will appear here.

After ConvTasNet · Speaker 2 (s2)

Waiting for pipeline

Separated Speaker 2 transcript will appear here.

Preview formatted Markdown export
Run the pipeline above to generate an exportable two-speaker transcript.