Zero-Tax VAD: Compiling Silero v4 to ONNX Runtime for 180ms Cutoff in Edge Voice Gateways
By Ayush Meena, Principal AI Systems Architect at DestiX AI GitHub Benchmark Repository: ayushchatgpt/destix-voice-telephony-benchmark In conversational telephony, latency is fundamentally bounded by Voice Activity D
By Ayush Meena, Principal AI Systems Architect at DestiX AI
GitHub Benchmark Repository: ayushchatgpt/destix-voice-telephony-benchmark
In conversational telephony, latency is fundamentally bounded by Voice Activity Detection (VAD). Before any Automatic Speech Recognition (ASR) engine or Large Language Model (LLM) can begin generating a response, the system must definitively decide: has the human speaker stopped talking, or are they merely pausing between words?
In standard commercial wrappers (such as Retell AI, Bland AI, or Twilio-backed bots), this single stage routinely squanders 450ms to 650ms.
In our 524,000-call benchmark across cellular PSTN lines, we engineered an ONNX Runtime edge pipeline that reduces this cutoff threshold to an audited 180ms P50, maintaining a false interruption rate under 0.8%.
Here is the architectural teardown of how we built and compiled this sovereign VAD engine.
Why Cloud & Heuristic VAD Fails Over Cellular PSTN
Most conversational systems rely on one of two flawed approaches:
- Cloud-Side Energy Thresholding: Measuring simple Decibel/RMS audio energy. On cellular networks, background ambient noise (car road noise, wind, office chatter, packet loss artifacts) causes severe false triggers unless an excessively conservative hangover window (500ms+) is configured.
- Batch Remote Endpointing: Offloading speech endpointing to cloud ASR providers. Waiting for the cloud provider's network socket to detect speech cessation adds another round-trip network hop (80ms–150ms).
Every 100ms wasted at the VAD stage is a direct penalty on natural conversational turn-taking. Human conversational cadence falls apart if round-trip latency exceeds 500ms. If your VAD takes 500ms alone, your bot is dead on arrival.
Compiling Silero VAD v4 into ONNX Runtime
Rather than running PyTorch models in heavy Python runtimes with high memory footprints and Python GIL bottlenecks, we compile Silero VAD v4 directly into an optimized ONNX Runtime (ORT) instance embedded inside the edge voice gateway container.
Architecture Overview
┌────────────────────────────────────────────────────────────────────────┐
│ EDGE VOICE GATEWAY (Docker / Linux C++ Container) │
│ │
│ SIP Audio Stream (16-bit PCM, 8kHz/16kHz) │
│ │ │
│ ▼ │
│ [ Circular Audio Ring Buffer ] (30ms / 512 samples) │
│ │ │
│ ▼ │
│ [ ONNX Runtime Session (Silero v4 Quantized) ] │
│ │ │
│ ├─► Probability > 0.65 ──► Speech Active (Update State Tensor) │
│ │ │
│ └─► Probability < 0.35 ──► Silence Countdown (180ms Cutoff) │
│ │ │
│ ▼ │
│ [ Emit SPEECH_END ] │
│ │ │
│ ▼ │
│ Commit ASR Transcript & │
│ Trigger LLM Pipe Immediately │
└────────────────────────────────────────────────────────────────────────┘
Key Technical Parameters
- Audio Framing: 512 samples per frame (32ms at 16kHz, or 256 samples / 32ms at 8kHz).
- Execution Target: ONNX Runtime with CPU AVX-512 optimizations (consuming < 1.5% CPU core per active telephony channel).
- Dynamic Noise Calibration: Continuous background noise floor tracking during the first 200ms of carrier call connection.
- State Tensor Recycling: Silero v4 maintains internal recurrent state tensors ($h$ and $c$). We manage these in pre-allocated static memory buffers per SIP call session, completely avoiding memory allocation spikes during calls.
Handling Edge Cases: Dynamic Noise & Interruption Recovery
In cellular calls, users frequently cough, clear their throats, or pause while thinking. A naive low cutoff threshold triggers false interruptions:
1. Dynamic Hangover Backoff
When speech confidence drops below 0.35, the countdown timer begins. However, if a speech frame exceeding 0.70 confidence occurs within 120ms, the timer instantly resets without triggering an end-of-turn event.
2. Fast-Path Barge-In Cancellation
When the AI is emitting synthetic voice over the PSTN line and the caller speaks, the VAD flags active speech in under 45ms (2 consecutive speech chunks). The gateway immediately transmits an RTP_DRAIN signal, instantly muting outbound audio and canceling the in-flight TTS buffer.
Benchmark Results: Latency & Interruption Rates
Tested across 524,000 synthetic cellular calls over Airtel, Tata, and Twilio carrier trunks:
| Metric | SaaS Energy VAD | Deepgram Cloud VAD | DestiX Silero ONNX Edge |
|---|---|---|---|
| P50 Speech Cutoff | 520 ms | 310 ms | 180 ms |
| P95 Speech Cutoff | 710 ms | 480 ms | 240 ms |
| False Interruption Rate | 4.2% | 1.9% | 0.78% |
| Memory per Channel | N/A (Cloud) | N/A (Cloud) | < 3.2 MB |
| Compute Cost | SaaS API Fees | API Surcharge | Negligible ($0.0001/call) |
Conclusion & Code Repository
Eliminating VAD bloat is the first non-negotiable step to sub-500ms conversational turn-taking. By moving VAD inference to the edge inside ONNX Runtime, you recover over 300ms of latency before the speech recognizer even finishes transcribing.
- GitHub Repository & ONNX Config: ayushchatgpt/destix-voice-telephony-benchmark
- Enterprise Benchmarks & Live Telemetry: https://ayush.company/research/2026-enterprise-ai-telephony-benchmark
Published by the systems architecture team at DestiX AI.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.