Use AIUnderstand AIBuild with AI
Build with AI·Model deep dive·· 4 min read

Clean Noisy Speech with Inworld Voice Isolator, Offline or Live

Inworld's Apache-2.0 voice isolator removes noise, music and background voices from 48 kHz speech, with an offline model and a realtime streaming one.

The code in this post comes from the model's docs and hasn't been run in our CI yet. If something breaks, let us know.

Inworld Voice Isolator v1 is an open-license (Apache-2.0, code and weights) model that takes a noisy speech recording and returns the voice, with the background removed. It ships as two models that share one architecture: an offline one for recorded audio and a realtime one for live streams. Both work at 48 kHz.

What sets it apart is the pair of modes and its stated goal: return the voice as it was recorded, remove everything that isn’t the speaker, and invent nothing.

Key specs

voice-isolator-v1 voice-isolator-v1-realtime
Made for recorded audio, best quality live audio, as a stream
How it runs offline: every frame sees its whole 8 s chunk causal stream with 20 ms of look-ahead
Parameters 64M 58M
  • Input is one channel at 48 kHz.
  • The realtime model was trained with a look-ahead of 0, 20 or 40 ms. Its algorithmic latency is 63 ms at 20 ms of look-ahead.
  • Long offline inputs are rendered in 8 s chunks that overlap by 2 s.
  • Trained on approximately 10,000 hours of unique audio, per the card.
  • Hardware: tested on NVIDIA A100, H100, B200 and B300 GPUs and on CPU. Smaller GPUs are not tested yet.

What it does and doesn’t do

According to the card, version 1 does denoising: it removes what surrounds the voice. It does not restore anything the recording lost, such as missing bandwidth. Restoration is planned for version 2.

It also isn’t a speaker selector. Both models keep the foreground voice: when two people speak at once, the louder voice is kept and one a few dB quieter is removed, while voices at similar levels are usually both kept.

Install

Terminal window
pip install inworld-voice-isolation

The card also shows installing from a clone of the GitHub repository (inworld-ai/voice-isolator) with pip install -e .. Weights download on first use and their checksums are verified.

Run it from the command line

Terminal window
# a noisy example from the repository
curl -LO https://raw.githubusercontent.com/inworld-ai/voice-isolator/main/demo/examples/sample_14.wav
# offline isolation (downloads the offline model on first use)
voice-isolate sample_14.wav sample_14_clean.wav

This writes the voice to sample_14_clean.wav and the removed background to sample_14_clean_background.wav, next to it. Both are float32 WAVs at 48 kHz with their original levels preserved, and together they reconstruct the aligned mono input.

Flags the card documents:

  • --output-sr 0 keeps the input sample rate.
  • --background noise.wav chooses the background path for one file.
  • --no-background saves only the voice.
  • --device picks the device. CUDA is used when available, Apple’s mps backend on an Apple-silicon Mac with PyTorch 2.6 or later, and the CPU otherwise.

Isolate a recording in Python

isolate.py
from inworld import voice_isolation
# isolate a recording offline
offline = voice_isolation.VoiceIsolator("inworld/voice-isolator")
wav, sample_rate = voice_isolation.load_audio("sample_14.wav")
voice = offline.isolate(wav, sample_rate)
voice_isolation.save_audio("sample_14_clean.wav", voice, sample_rate, subtype="FLOAT")
voice_isolation.save_audio("sample_14_clean_background.wav", wav - voice, sample_rate, subtype="FLOAT") # what was removed

Subtracting the isolated voice from the input gives you the removed background. The card suggests this for extracting background noise, or a backing-track residual for vocals/music separation.

Stream it live

The realtime model isolates the voice as audio arrives, with 20 ms of look-ahead:

stream.py
import torch
from inworld import voice_isolation
live = voice_isolation.VoiceIsolator("inworld/voice-isolator",
mode="streaming", lookahead_frames=2)
session = live.stream() # takes 48 kHz mono, in pieces of any size
wav, sample_rate = voice_isolation.load_audio("sample_14.wav") # 48 kHz mono, standing in for a live source
voice = []
for start in range(0, len(wav), 960): # 20 ms at a time, as a microphone delivers it
voice.append(session.push(wav[start:start + 960])) # the samples that are final: play or send them
voice.append(session.flush()) # the rest, once the source ends
voice_isolation.save_audio("sample_14_streamed.wav", torch.cat(voice), sample_rate)

push returns the samples that are final, so you can play or send them straight away. Call flush once the source ends to get the rest.

There is also a streaming CLI. It writes only the isolated voice, after the whole file has gone through:

Terminal window
voice-isolate sample_14.wav sample_14_streamed.wav --mode streaming --lookahead 2

The mode picks the checkpoint: voice-isolator-v1 for offline, voice-isolator-v1-realtime for streaming.

Gotchas

  • Denoising only. Don’t expect it to repair a bandwidth-limited or damaged recording. The card says restoration is planned for v2.
  • Not a speaker picker. It keeps the foreground voice. Similar-level voices are usually both kept, so it won’t isolate one person from a conversation.
  • 48 kHz mono. Input is one channel at 48 kHz, and the streaming session takes 48 kHz mono.
  • Small-GPU performance is unknown. The card says smaller GPUs are untested.
  • Benchmark caveat. The card’s VIBE benchmark scores systems on Inworld’s own internal evaluation set, which is not distributed, so you can’t reproduce those numbers yourself.
  • Latency. 63 ms at 20 ms of look-ahead is algorithmic latency; real end-to-end latency in your pipeline will add to it.

When to pick it

Pick it if you want an Apache-2.0 model for cleaning recordings before playback or publication, for curating speech datasets and voice pipelines where the speaker’s identity must survive, or for live calls and streams with the realtime checkpoint. The offline/realtime pairing under one API is convenient.

Skip it if you need to separate one speaker from several at similar volume, or to restore degraded audio. In those cases it isn’t designed for the job. Because the code here hasn’t been run by us, test a few of your own recordings before building on it.

Related