Local & Offline
~8 min readUpdated: November 2026

Inworld Voice Isolator: 48 kHz Real-Time Voice Agent Pipeline

Inworld Voice Isolator 48 kHz Real-Time Voice Agent Pipeline — Dual-Path Mamba and Attention Architecture in Smoke Monkey

Inworld Voice Isolator provides open-weight, Apache-2.0 48 kHz speech denoising checkpoints for offline audio cleanup (64.0M parameters, VIBE 0.768) and causal real-time streaming (58.2M parameters, 63 ms algorithmic latency at 20 ms look-ahead). Using a 46-band dual-path Mamba and RoPE attention network over 10 ms STFT frames, it strips background noise, music beds, and competing talkers while keeping speaker timbre and non-verbal breaths intact inside Smoke Monkey Harness.

Technical Review: Smoke Monkey Core Architecture Team
Tested on Node.js 18+ & BunTypeScript 5.x
Quick Answer & Executive Definition

Inworld Voice Isolator: 48 kHz Real-Time Voice Agent Pipeline: Inworld Voice Isolator provides open-weight, Apache-2.0 48 kHz speech denoising checkpoints for offline audio cleanup (64.0M parameters, VIBE 0.768) and causal real-time streaming (58.2M parameters, 63 ms algorithmic latency at 20 ms look-ahead). Using a 46-band dual-path Mamba and RoPE attention network over 10 ms STFT frames, it strips background noise, music beds, and competing talkers while keeping speaker timbre and non-verbal breaths intact inside Smoke Monkey Harness. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.

Key Architectural Takeaways
Quick Implementation Exampleinworld-voice-isolator-agent.ts
inworld-voice-isolator-agent.tstypescript
import { createAgent } from "@smoke-monkey/harness";
// Autonomous voice-pipeline agent configured with Inworld Voice Isolator v1
const voicePipelineAgent = createAgent({
agentId: "inworld-voice-isolator-pipeline",
provider: "ollama",
model: "qwen2.5-coder:14b",
workspacePath: process.cwd(),
permissions: {
read_file: "allow",
write_file: "allow",
run_command: "ask",
},
});
// Follow Inworld AGENTS.md verification: install, run voice-isolate-doctor, and stream 20 ms frames
async function verifyAndRunVoiceIsolation() {
const result = await voicePipelineAgent.run(
"Verify Python environment with voice-isolate-doctor, then run " +
"voice-isolate sample_14.wav sample_14_streamed.wav --mode streaming --lookahead 2 " +
"and report 48 kHz WAV RMS and output duration."
);
console.log("[Voice Pipeline Agent] Completed:", result.summary);
}
verifyAndRunVoiceIsolation().catch(console.error);
Video Guides

Watch: Related Video Guides

Inworld Voice Isolator – Remove Background Noise from Audio & Microphone (Offline + Real-Time)

Inworld Voice Isolator: Clean Noisy Voice Recordings Locally

What Is Inworld Voice Isolator? Dual-Path Mamba and Attention Architecture

Inworld Voice Isolator is an Apache-2.0 48 kHz speech denoising model family built to extract foreground human speech from noisy recordings and live microphone streams. It combines a 64.0M-parameter offline checkpoint (voice-isolator-v1) and a 58.2M-parameter causal streaming checkpoint (voice-isolator-v1-realtime) over a unified band-split dual-path STFT architecture.

Unlike 16 kHz speech enhancers that discard upper harmonics, Inworld Voice Isolator preserves full-band 48 kHz audio end-to-end. Each mono input passes through a Short-Time Fourier Transform (n_fft = 2048, hop = 480, yielding 10 ms frames). The frequency axis is partitioned into 46 non-uniform sub-bands—narrow at low frequencies for pitch resolution and wider toward 24 kHz—producing one 512-dimensional token per band and frame.

Seven alternating dual-path refinement blocks process this 2D time-frequency grid:

  • Four Dual-Path Attention Blocks: Apply temporal attention with Rotary Position Embeddings (RoPE) and exclusive self-attention along time, followed by attention across the 46 frequency bands.
  • Three Dual-Path Mamba Blocks: Apply state-space sequence modeling (state = 16) along time and across bands to capture long-range stationary noise and room decay at linear cost.
  • Per-Band Spectral Heads: Emit both a bounded complex mask and a bounded per-bin residual added directly to the input spectrum before inverse STFT (iSTFT) reconstruction.

Version 1 is strictly a speech denoiser rather than a speaker selector or bandwidth restorer: it preserves the speaker's natural timbre, breaths, laughs, and sighs while stripping non-speaker noise, music beds, late room tails, and quieter competing talkers. Bandwidth restoration is slated for v2.

Offline vs. Real-Time Checkpoints: Latency, Look-Ahead, and Foreground Policy

Inworld ships two checkpoints sharing the same 46-band dual-path design so developers can match quality and latency budgets without changing preprocessing code. The offline voice-isolator-v1 model inspects bidirectional 8-second windows, whereas voice-isolator-v1-realtime switches to causal blocks with a learned look-ahead embedding.

CheckpointParameter CountContext / WindowAlgorithmic LatencyVIBE v0 Denoising ScorePrimary Workload
voice-isolator-v164.0MBidirectional 8 s chunks (2 s overlap)Batch / Offline0.768Podcast cleanup, ASR dataset curation, studio post-processing
voice-isolator-v1-realtime58.2MCausal stream (0, 20, or 40 ms look-ahead)63 ms (at 20 ms look-ahead)0.718Live WebRTC/voice agents, telephony, microphone streams

At runtime, lookahead_frames=2 configures 20 ms of look-ahead, yielding 63 ms total algorithmic latency while keeping streaming quality within 0.05 of the full-context offline checkpoint. When two speakers overlap, both checkpoints keep the louder foreground voice and suppress a secondary talker several decibels quieter; voices at comparable loudness are generally both preserved.

Because the network preserves sample alignment and input gain in 48 kHz float32 PCM, subtracting the isolated speech tensor from the raw input (wav - voice) yields the exact removed background residual—making it trivial to audit what was stripped or separate vocals from backing music.

Inworld VIBE v0 Benchmark Results Against Open-Source 48 kHz Isolators

On Inworld VIBE v0 (build f5a6420d67b7ef45, spanning 5,502 audio items across 77 conditions and 128 languages), voice-isolator-v1 scores 0.768 and voice-isolator-v1-realtime scores 0.718, placing both checkpoints ahead of existing open-source 48 kHz speech denoisers.

SystemModeDenoising Score (0–1)LicenseNotes
Inworld Voice Isolator (`v1`)Offline0.768Apache-2.064.0M params, 8 s bidirectional window
Inworld Voice Isolator (`v1-realtime`)Streaming (*)0.718Apache-2.058.2M params, <= 100 ms streaming tier
ClearerVoice MossFormer2_SE_48KOffline0.695Apache-2.0Full-band 48 kHz transformer baseline
resemble-enhanceOffline0.646MIT (code)Diffusion/denoiser baseline
FastEnhancer-L 48kStreaming (*)0.589MITLow-latency streaming baseline
DeepFilterNet3Streaming (*)0.510MIT / Apache-2.0Lightweight streaming baseline

VIBE scores denoising across nine axes grouped into three parts on a fixed 0–1 anchor scale (where gaps under 0.03 are treated as ties):

  • Removes: supp (steady noise, traffic, chatter louder than speech), music (louder instrumental beds), cleanup (noise floor in pauses), events (sudden transients), and voices (competing talker at -5 dB).
  • Keeps: pres (no dropped syllables, retained laughs/breaths, preserved gain) and fidel (clean speech left unaltered across spectrum and high band).
  • Sounds: timbre (speaker identity consistency across 12 noise types) and qual (predicted NISQA listening quality). Restoration (room dry-voice recovery) is scored separately on a fourth axis.

Local CLI Reproduction, Apple Silicon Metal Support, and Streaming Python Loop

Developers can install inworld-voice-isolation via pip, run environment diagnostics with voice-isolate-doctor, and process both offline files and 20 ms streaming microphone buffers on NVIDIA CUDA (A100, H100, B200, B300), Apple Silicon Metal (mps on PyTorch 2.6+), or CPU.

bash
# 1. Install the Apache-2.0 inference package and verify accelerator hardware
pip install inworld-voice-isolation
voice-isolate-doctor

# 2. Download Inworld's official noisy sample and isolate offline (writes voice + *_background.wav)
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

# 3. Run causal streaming mode with 20 ms look-ahead (63 ms algorithmic latency)
voice-isolate sample_14.wav sample_14_streamed.wav --mode streaming --lookahead 2

For real-time voice agents and WebRTC pipelines, initialize VoiceIsolator with mode="streaming" and feed 960-sample (20 ms at 48 kHz) mono tensors incrementally:

python
import torch
from inworld import voice_isolation

live = voice_isolation.VoiceIsolator(
    "inworld/voice-isolator",
    mode="streaming",
    lookahead_frames=2,
)
session = live.stream()  # accepts 48 kHz mono chunks of any length
wav, sample_rate = voice_isolation.load_audio("sample_14.wav")

voice_chunks = []
for start in range(0, len(wav), 960):  # 20 ms frames
    finalized = session.push(wav[start:start + 960])
    voice_chunks.append(finalized)

voice_chunks.append(session.flush())
voice_isolation.save_audio("sample_14_streamed.wav", torch.cat(voice_chunks), sample_rate)

Pass --output-sr 0 on the CLI to retain the source sample rate instead of 48 kHz float32, --no-background to omit writing the residual noise WAV, or --device mps / --device cuda to pin execution hardware explicitly.

Integrating Inworld Voice Isolator with Smoke Monkey Harness and AGENTS.md

Inworld ships an explicit AGENTS.md onboarding specification alongside inworld-voice-isolation, enabling coding and DevOps agents inside Smoke Monkey Harness to provision, benchmark, and wire real-time voice denoising autonomously with deterministic safety gates.

When building voice-enabled developer tools, customer support agents, or Whisper/ASR ingestion workers, feeding raw noisy audio directly into speech-to-text increases word error rates and triggers premature Voice Activity Detection (VAD) false positives. Placing voice-isolator-v1-realtime ahead of VAD and ASR removes café chatter, keyboard clicks, and music beds in 63 ms without altering speaker cadence.

Inside Smoke Monkey Canvas, teams can isolate audio preprocessing as an independent local worker:

  1. Environment Verification: Smoke Monkey Harness runs voice-isolate-doctor under run_command: "ask" approval to confirm PyTorch 2.6+ MPS or CUDA availability and verify checkpoint checksums.
  2. Dataset & Residual Auditing: Batch jobs generate both *_clean.wav and *_background.wav residuals so engineers can verify zero vocal clipping before fine-tuning TTS or voice-cloning models.
  3. Low-Latency Voice Loop: Streaming microphone frames (960 samples at 48 kHz) flow through session.push(...) before hitting local full-duplex voice models or MCP transcription servers.

Keep 48 kHz Float32 Alignment for Zero-Clipping Residuals

Avoid resampling input audio to 16 kHz before running Inworld Voice Isolator. Feeding native 48 kHz mono float32 tensors preserves exact sample alignment so `wav - voice` cleanly isolates background noise without phase drift.

Google Search Questions & Answers

Frequently Asked Questions

Q:How does Inworld Voice Isolator achieve 63 ms real-time streaming latency?

The voice-isolator-v1-realtime checkpoint (58.2M parameters) replaces bidirectional attention with causal time-attention and causal Mamba (state 16) blocks over 10 ms STFT frames (n_fft 2048, hop 480 at 48 kHz). Paired with lookahead_frames=2 (20 ms of trained look-ahead), total algorithmic latency is 63 ms.

Q:What is the difference between voice-isolator-v1 and voice-isolator-v1-realtime?

voice-isolator-v1 is the 64.0M-parameter offline model that sees full 8-second chunks (with 2-second overlap on longer audio) and scores 0.768 on VIBE v0 denoising. voice-isolator-v1-realtime is the 58.2M-parameter causal streaming variant supporting 0, 20, or 40 ms look-ahead and scoring 0.718 on VIBE v0.

Q:How does Inworld Voice Isolator compare to DeepFilterNet3 and ClearerVoice on VIBE?

On Inworld VIBE v0 (5,502 items across 77 conditions and 128 languages), Inworld Voice Isolator v1 scores 0.768 offline and 0.718 in streaming mode, outperforming ClearerVoice MossFormer2_SE_48K (0.695), resemble-enhance (0.646), FastEnhancer-L 48k (0.589), and DeepFilterNet3 (0.510).

Q:Can I run Inworld Voice Isolator locally on an Apple Silicon Mac or CPU?

Yes. After installing pip install inworld-voice-isolation, the CLI and Python API automatically use CUDA on NVIDIA Ampere/Hopper/Blackwell GPUs, Apple Metal (mps) on Apple Silicon Macs running PyTorch 2.6 or later, or CPU fallback. You can force a backend with --device.

Q:How do I save only the background noise or separate music from vocals?

By default, voice-isolate outputs both the clean float32 48 kHz voice WAV and a sibling *_background.wav file computed as input minus isolated voice. In Python, subtract the returned voice tensor from the input waveform (wav - voice) to extract noise beds or backing tracks.

Related Alternatives & Comparisons

Related Architecture Guides

View all guides

Build with Smoke Monkey Harness

Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.

npm install smoke-monkey-harness