packethush
Try it yourselfGet Model and SDKGet access
Blog

5 min read

Inworld Voice Isolator on a phone call

We ran Inworld's open-source voice isolator and packethush on two test calls, with the same speech engine and on the same CPU core.

Inworld has released Voice Isolator, two open-source models (Apache 2.0) that clean speech at 48 kHz: one for recordings, one for live audio. A voice agent on a phone call has a narrower job. It needs the caller's words and nothing else, from 8 kHz audio, on servers that carry many calls at once.

So we tried it on two of the test calls from our site, each with a second voice and street noise. We ran each call through Inworld's realtime model and through packethush, and asked Deepgram nova-3 what it heard.

“Oh, just cancel it.”

A woman calls about her order. A man across the room, 5 dB quieter than her, says “Oh, just cancel it. We don't need it anymore.” The voices are synthetic (Deepgram Aura-2) and the street noise is a real recording. The call goes through a G.711 phone line at 8 kHz.

0:00 / 0:08
original

Itstillsaysprocessing.Canyoucheckwhat'sgoingon?Justcancelit.Wedon'tneeditanymore.Ijustneedtoknowwhenitwillship.

Inworld realtime

Itstillsaysprocessing.Canyoucheckwhat'sgoingon?Justcancelit.Wedon'tneeditanymore.Ijustneedtoknowwhenitwillship.

packethush

Itstillsaysprocessing.Canyoucheckwhat'sgoingon?Ijustneedtoknowwhenitwillship.

Whole callOriginalInworldpackethush
Words the caller never said12124
Word error rate0.4120.4120.147
Street noise·−9.9 dB−18.6 dB
The caller's level·−0.13 dB−0.33 dB
Figure 1. The English test call. The player has 8.1 s of the 15 s call. Struck-out words are not in Deepgram nova-3's transcript of the caller alone. The table is for the whole call: street noise where no one speaks, the caller's level where only the caller speaks.

Inworld lowered the street noise by 10 dB. It left the man's words where they were: Deepgram wrote “Just cancel it. We don't need it anymore.” as if the caller had said it, and a voice agent would act on it. With packethush those words are gone, and the street noise is 19 dB lower.

“एक एक किलो”

A man books a hotel room. A woman beside him, 10 dB quieter, talks about a delivery. The voices are recorded (IndicVoices by AI4Bharat), with a street recording behind them, through the same phone line.

0:00 / 0:05
original

आपमुझेroomकेबारेमेंजानकारीदेसकतेहैं?सबवहएकएककिलोतकहोगा.

Inworld realtime

आपमुझेroomकेबारेमेंजानकारीदेसकतेहैं?सबवहएकएककिलोसबहोगया.

packethush

आपमुझेroomकेबारेमेंजानकारीदेसकतेहैं?

Whole callOriginalInworldpackethush
Words the caller never said12150
Word error rate0.3260.3720.070
Street noise·−19.3 dB−22.1 dB
The caller's level·−0.15 dB−0.02 dB
Figure 2. The Hindi test call. The player has 4.9 s of the 20 s call. Struck-out words are not in Deepgram nova-3's transcript of the caller alone. The table is for the whole call: street noise where no one speaks, the caller's level where only the caller speaks.

Here Inworld lowered the street noise by 19 dB, close to packethush's 22, and again kept the second voice: Deepgram wrote 15 words the caller never said, against 12 in the untouched call. With packethush it wrote none.

On a CPU

Inworld's model works at 48 kHz, so a phone call is resampled up six times on the way in and back down on the way out. On one core of an Apple M5, the realtime model needs 85 ms of compute for every 20 ms of audio, so one core cannot keep up with a single live call. More threads made it slower on this machine (4 threads: 266 ms, 10 threads: 729 ms). On the Mac's GPU it took 17 ms on average, and 25 ms for the slowest 1% of frames: about one call in real time.

packethush needs 0.2 ms for the same 20 ms on the same core, 400 times less. On servers, one 8-vCPU machine runs 320 calls with every frame on time (CPU per call).

Delay matters on a call too. Inworld's realtime model adds 63 ms: a 2,048-sample window at 48 kHz plus its 20 ms look-ahead. packethush adds 12 ms.

What it means

Inworld built a strong 48 kHz denoiser. Its model card says it keeps the louder voice, removes a voice a few dB quieter, and usually keeps both when two voices are about as loud. On these two phone calls the second voice was 5 and 10 dB quieter than the caller, and its words stayed in the transcript.

A voice agent acts on every word it gets. On a phone call it needs the caller's words, and only the caller's. That is what packethush does: it keeps the caller and removes other voices and noise, 20 ms at a time, on a CPU.

How we measured

  • Inworld Voice Isolator v1, realtime model: Inworld's Python package (inworld-voice-isolation 1.0.0, weights at revision 9b0285b), look-ahead 2 frames (20 ms), Inworld's own resampler from 8 kHz to 48 kHz and back. Audio pushed 20 ms at a time on one CPU thread, as on a live call.
  • packethush SDK 0.6.3: 8 kHz, 20 ms frames, its fixed 12 ms delay removed so the output lines up with the call.
  • Transcripts: Deepgram nova-3, language set to English (US) or Hindi, punctuation on, smart formatting off.
  • Words the caller never said: words in a transcript that are not in Deepgram's transcript of the caller alone, through the same phone line. Word error rate is against that transcript too.
  • Levels: from the recordings each call was mixed from. Street noise where neither voice speaks; the caller where only the caller speaks.
  • CPU: one thread of an Apple M5, lowest of 5 alternating runs each. Inworld: process time over its 20 ms pushes, after a warm-up. packethush: the SDK's command-line tool over 9 minutes of calls, less a 1 s run.
  • Inworld's offline model needs the whole recording, so it is not for live calls. It left 8 and 14 words the caller never said on the two calls.

Voices: IndicVoices by AI4Bharat (CC BY 4.0) and Deepgram Aura-2 (synthetic). Street recordings: Freesound (CC0). Inworld Voice Isolator: Apache 2.0.

Try it on your calls.

Run your own recordings through packethush, on your own machine.