At a glance
| Model | ConvTasNet (Libri2Mix, clean 2-speaker, 16 kHz) |
|---|---|
| Task | audio-to-audio — 2-speaker separation, run via raw ONNX Runtime Web (see note below) |
| Runtime | onnxruntime-web 1.21 (transformers.js has no speech-separation task) |
| Input | mixture [1, samples] float32 (fp32) — mono at 16 kHz |
| Output | sources [1, 2, samples] — two separated speaker waveforms |
| Architecture | time-domain (learned encoder → masking → decoder, no STFT) — light + fast |
| Download | ~20 MB, cached after first load (auto-inits on return) |
| License | CC BY-SA 4.0 (JorisCos / Libri2Mix) — used unmodified with attribution |
| Web APIs | WebAssembly, Web Workers, Web Audio (decode + WAV) — all Baseline widely available |
Separate your recording
Choose a local audio file containing two voices that overlap. The first 6 seconds are processed at 16 kHz mono. This page does not request camera or microphone permission, so file upload remains available when either permission is absent or denied. No example recording is bundled.
Your mixture (two voices at once)
Speaker 1
Speaker 2
No audio selected. Choose a local file above; separation starts only when you press “Separate audio”.
Why raw ONNX Runtime Web?
transformers.js has no speech-separation task, so we run ConvTasNet's ONNX graph directly with onnxruntime-web. Unlike spectrogram methods, ConvTasNet works in the time domain: a learned encoder turns the waveform into features, a mask network splits them into two streams, and a decoder turns each back into audio. It's small and fast, and your recording stays on your device.
Use-case ladder
Basics · Two-Track Mixer & Permutation-Invariant Unmixer Lab
Mix two tracks at configurable SNR and overlap offset, run ConvTasNet, solve speaker permutation ambiguity automatically, and inspect real correlation & SI-SDRi improvement.
Practical · Podcast & Interview Cross-Talk Splitter
Isolate overlapping speakers from a mono interview, control live synchronized Solo, Mute, and Gain faders over a dual-color waveform timeline, and export Mono or Stereo L/R .wav stems.
Wild · Spatial 3D Cocktail-Party Panner
Pull two overlapping voices apart in 3D space on an interactive room canvas wired to live Web Audio HRTF panning, listener head orientation, and spotlight focus.
Multi-model · Cocktail-Party Transcriber (ConvTasNet → Moonshine ASR)
Chain ConvTasNet (~20 MB) with Moonshine Base ASR (~65 MB) in isolated Web Workers to compare transcripts of the tangled raw mix against each cleanly separated speaker.