use case · basics · ConvTasNet 16 kHz · WASM · ~20 MB

Two-Track Mixer & Permutation-Invariant Unmixer Lab

Because ConvTasNet has no notion of who is “Speaker 1” or “Speaker 2”, its two output slots [1, 2, N] arrive in arbitrary order — a core problem in source separation called permutation ambiguity. Mix two known tracks below at any SNR and overlap offset, separate the mixture on-device, and watch permutation-invariant matching (PIT) pair s1 / s2 back to Track A / Track B while measuring real correlation and SI-SDR improvement against the raw mix.

1 · Model & two-track mixture builder

Prepare ConvTasNet above to separate the two-track mixture on-device.

0 dB
0.0 s
4.0 s

Client-side mixed clips (zero bundled media in speech-separation): Track A: JFK Inaugural Address excerpt (20 Jan 1961, Public Domain — U.S. government work). 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).

2 · Clean references & mono cocktail-party mixture

Track A · JFK (1961)

– dBFS

Track B · LibriSpeech

– dBFS

Mono Mixture (A + B)

–

3 · Separated outputs & permutation-invariant evaluation

Permutation solved –
Track A · SI-SDR / |r| –
Track B · SI-SDR / |r| –
Mean SI-SDRi vs mix –
Losing permutation –
Latency / RTF –

ConvTasNet Output s1

Waiting for inference

ConvTasNet Output s2

Waiting for inference

4 · Inside the ONNX worker & permutation-invariant scorer

Inspect the exact raw ONNX Runtime Web inference path and the pure SI-SDR / permutation matcher driving the live numbers above.

Show the code — ConvTasNet inference in worker.js
Show the code — SI-SDR & permutation-invariant matcher