AudioWorklet for Low-Latency Voice Processing in 2026: RNNoise + WASM at 13ms
By Sagar Shankaran, Founder of CallSphere
RNNoise compiled to WASM and loaded into an AudioWorklet processes 48 kHz audio at ~13 ms latency, runs noise-gate hysteresis, and converts Float32 to Int16 PCM — all on a non-DOM audio thread.
Key takeaways
RNNoise compiled to WASM and loaded into an AudioWorklet processes 48 kHz audio at ~13 ms latency, runs noise-gate hysteresis, and converts Float32 to Int16 PCM — all on a non-DOM audio thread.
The change
The 2026 production pattern for browser-side voice processing has converged on a tight stack: AudioWorkletProcessor as the host, RNNoise (a recurrent-neural-network denoiser, MIT license) compiled to WebAssembly as the DSP engine, plus a hysteresis noise gate to prevent rapid mute toggling. Reference implementations (Sokuji, Fluxer) report ~13 ms processing latency at 48 kHz, well below the 100 ms threshold for human-perceptible delay. The worklet runs on a high-priority audio thread isolated from DOM, so React rerenders, scrolling, and tab background-throttling do not produce audio glitches. The same processor handles Float32-to-Int16 PCM conversion, which is what every WebSocket-based AI voice API actually wants on the wire.
What it unlocks
Production-grade noise suppression that does not depend on a server. RNNoise outperforms WebRTC's built-in noiseSuppression on background-conversation rejection (the canonical "open-plan office" case). Hysteresis with separate open/close thresholds (e.g. -45 dB open, -55 dB close) prevents the rapid-flapping pattern where ambient noise is right at the threshold. Off-loading PCM conversion to the worklet kills a common JS bottleneck — converting Float32 at 48 kHz on the main thread costs 2-4% CPU for nothing. Combined: cleaner audio uploaded to your AI gateway, 60% bandwidth savings during silence (because gated frames can be dropped), and main-thread CPU stays free for UI.
flowchart TD
A[Microphone · getUserMedia] --> B[AudioContext 48 kHz]
B --> C[AudioWorkletNode]
C --> D[AudioWorkletProcessor]
D --> E[WASM RNNoise · 13ms latency]
E --> F{Noise gate}
F -- above -45 dB --> G[Float32 to Int16 PCM]
F -- below -55 dB --> H[Drop frame · upstream silence]
G --> I[postMessage to main thread]
I --> J[WebSocket / WebCodecs]
CallSphere context
Explore a live demo and compare current plans to find the right fit for your business.
Migration steps
- Compile RNNoise (or jitsi-meet's variant) to WASM via Emscripten
- Inline the WASM as base64 in your worklet processor file (avoids cross-origin issues)
- Implement hysteresis:
opening = -45 dB,closing = -55 dB, with a 100ms close timer - Convert Float32 to Int16 inside the worklet, not on main thread
- Profile in chrome://media-internals to verify zero audio glitches under load
FAQ
Why not use the browser's built-in noise suppression? It targets human voice in moderate noise. RNNoise is stronger on dense background speech and constant fan/HVAC noise.
Hear it before you finish reading
Talk to a live CallSphere AI voice agent in your browser — 60 seconds, no signup.
What about Krisp / NVIDIA Broadcast? Stronger models, server-grade. RNNoise is the open-source baseline you can ship without per-seat fees.
Will hysteresis cause audio cutoff? With the close timer, no. The 100ms tail keeps trailing words audible.
Does WASM in worklet need cross-origin isolation? Yes if you use SharedArrayBuffer. Without it, postMessage is fine.
Sources
- MDN - AudioWorklet - https://developer.mozilla.org/en-US/docs/Web/API/AudioWorklet
- MDN - AudioWorkletProcessor - https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletProcessor
- DEV - Audio Worklets for Low-Latency Audio Processing - https://dev.to/omriluz1/audio-worklets-for-low-latency-audio-processing-3b9p
- DeepWiki - Audio Worklets in kizuna-ai-lab/sokuji - https://deepwiki.com/kizuna-ai-lab/sokuji/6.4-audio-worklets
- Picovoice - Noise Suppression Guide 2026 - https://picovoice.ai/blog/complete-guide-to-noise-suppression/
AudioWorklet for Low-Latency Voice Processing in 2026: RNNoise + WASM at 13ms: production view
AudioWorklet for Low-Latency Voice Processing in 2026: RNNoise + WASM at 13ms sits on top of a regional VPC and a cold-start problem you only see at 3am. If your voice stack lives in us-east-1 but your customer is calling from a Sydney mobile network, the round-trip time alone wrecks turn-taking. Multi-region routing, GPU residency, and warm pools become the difference between "natural" and "robotic" — and it's all infra, not the model.
Shipping the agent to production
Production AI agents live or die on three loops: evals, retries, and handoff state. CallSphere runs 37 agents across 6 verticals, each with its own eval suite — synthetic call transcripts replayed nightly with assertion checks on extracted entities (date, time, party size, insurance, address). Without that loop, prompt regressions ship silently and you only find out when bookings drop.
Still reading? Stop comparing — try CallSphere live.
CallSphere ships complete AI voice agents per industry — 14 tools for healthcare, 10 agents for real estate, 4 specialists for salons. See how it actually handles a call before you book a demo.
Structured tools beat free-form text every time. Our 90+ function tools all enforce JSON schemas validated server-side; if the model hallucinates an integer where a string is required, we retry with a corrective system message before falling back to a deterministic path. For long-running flows, we treat agent handoffs as a state machine — booking → confirmation → SMS — so context survives turn boundaries.
The Realtime API vs. async decision usually comes down to "is the user holding the phone right now?" If yes, Realtime; if no (callback queue, after-hours voicemail), async wins on cost-per-conversation, which we track per agent in 115+ database tables spanning all 6 verticals.
FAQ
Why does audioworklet for low-latency voice processing in 2026: rnnoise + wasm at 13ms matter for revenue, not just engineering? The IT Helpdesk product is built on ChromaDB for RAG over runbooks, Supabase for auth and storage, and 40+ data models covering tickets, assets, MSP clients, and escalation chains. For a topic like "AudioWorklet for Low-Latency Voice Processing in 2026: RNNoise + WASM at 13ms", that means you're not starting from scratch — you're configuring an agent template that's already been hardened across thousands of conversations.
What are the most common mistakes teams make on day one? Day one is integration mapping (scheduler, CRM, messaging) and prompt tuning against your top 20 real call transcripts. Day two through five is shadow-mode running, where the agent transcribes and recommends but a human still answers, so you can compare side-by-side. Go-live is the moment your eval pass-rate clears your internal bar.
How does CallSphere's stack handle this differently than a generic chatbot? The honest answer: it scales until your tool catalog gets stale. The agent is only as good as the integrations it can actually call, so the operational discipline is keeping schemas, webhooks, and fallback paths green. The platform handles the rest — observability, retries, multi-region routing — without your team owning the GPU layer.
Talk to us
Explore a live demo and compare current plans to find the right fit for your business.

Written by
Sagar Shankaran· Founder, CallSphere
LinkedInSagar Shankaran is the founder of CallSphere, where he builds production AI voice and chat agents deployed across healthcare, hospitality, real estate, and home services. He writes about agentic AI, LLM engineering, and shipping voice agents that handle real calls in production.
Try CallSphere AI Voice Agents
See how AI voice agents work for your industry. Live demo available -- no signup required.