← All models

speech separation · audio · WASM · ~20 MB

Speech separation (cocktail party)

The built speech enhancement demo cleans noise off one voice. This one solves the harder cocktail-party problem: given a recording of two people talking at once, it pulls them apart into two clean single-speaker tracks. It's ConvTasNet, a lightweight time-domain separator. Choose your own recording of two overlapping voices and separate it — entirely on your device, without uploading the audio.

At a glance

ModelConvTasNet (Libri2Mix, clean 2-speaker, 16 kHz)
Taskaudio-to-audio — 2-speaker separation, run via raw ONNX Runtime Web (see note below)
Runtimeonnxruntime-web 1.21 (transformers.js has no speech-separation task)
Inputmixture [1, samples] float32 (fp32) — mono at 16 kHz
Outputsources [1, 2, samples] — two separated speaker waveforms
Architecturetime-domain (learned encoder → masking → decoder, no STFT) — light + fast
Download~20 MB, cached after first load (auto-inits on return)
LicenseCC BY-SA 4.0 (JorisCos / Libri2Mix) — used unmodified with attribution
Web APIsWebAssembly, 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.

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