Voice isolation guide

A voice isolator reduces background sound so you can hear the speech more clearly.

This process is called speech denoising. The model estimates which sounds belong to the foreground voice. Subtract that voice from the original audio to hear the removed background.

Inworld made the models and wrote the code. mrfakename published the browser demo as a Hugging Face Space.

If people speak at similar levels, both voices usually remain. The models cannot pick a particular speaker on request or recover sound the recording lost, such as missing frequencies.

Compare the models

Both models take 48 kHz mono audio, meaning one audio channel. Inworld releases the code and weights under the Apache 2.0 licence.

Offline and streaming checkpoints
Detail voice-isolator-v1 voice-isolator-v1-realtime
Use Clean a saved recording in eight-second chunks Process live audio as it arrives
Parameters 64.0 million 58.2 million
Safetensors file denoiser.safetensors denoiser_realtime.safetensors
Listed download 256 MB 233 MB

Look-ahead is how much future audio the streaming model uses when it processes the current moment. Inworld reports 63 ms of algorithmic latency with 20 ms of look-ahead.

See the model card for model details and the Files tab for weight download sizes.

Try it in your browser

  1. Open the hosted demo on Hugging Face and choose File.
  2. Upload a recording or pick one under Examples.
  3. Choose Isolate voice.
  4. Play Isolated voice to hear the speech and Removed background to hear what the model took out.

For live audio, choose the Live tab and use Microphone. This mode uses the realtime checkpoint.

Clean a recording on your computer

If you want to run the offline model locally, open a terminal and run these commands. They install the package, download a sample recording, and isolate its voice.

pip install inworld-voice-isolation
curl -LO https://raw.githubusercontent.com/inworld-ai/voice-isolator/main/demo/examples/sample_14.wav
voice-isolate sample_14.wav sample_14_clean.wav

The first run downloads the offline model weights. The command saves two 48 kHz float32 WAVs in the same folder.

To add live voice isolation to your own app, follow Inworld’s streaming instructions.

Sources