Skip to main content
VoiceAgentTCO
VoiceAgentTCO Partner Disclosure: Outbound /go/ links marked rel="sponsored" may earn a referral commission at zero extra cost (Disclosure).
SIP & WebRTC Latency

Instant Barge-In Cancellation & WebRTC AEC3 Tuning

How duplex echo cancellation and TTS buffer flushing prevent the agent from interrupting itself.

< 40 ms TTS flush · WebRTC AEC3 reference stream

Instant Barge-In Cancellation & WebRTC AEC3 Tuning
Telemetry baseline verified on 2026-10-26 by SipLatency Voice Systems.
STEP 01

Clearing Downstream Audio Queues on Interrupt

When Silero VAD detects user speech during agent playback, the worker must immediately close or flush the ElevenLabs WebSocket stream and send a LiveKit track-clear frame. Leaving 600 ms of buffered PCM in the SFU makes the agent talk over the caller.

STEP 02

Avoiding Speakerphone Self-Triggering

Caller speakerphone bleed loops agent audio back into the STT pipeline. Keeping WebRTC AEC3 active on browser clients and tuning SIP far-end energy thresholds prevents phantom barge-in loops.

STEP 03 // MEASURED BENCHMARKS

Measured Pipeline Thresholds

Immediate Track Flush25-40 ms cutoffNatural human interruption feel
Unflushed RTP Ring Buffer450-800 ms bleedAgent finishes sentence over caller
AEC3 + Energy Gate< 1.5% self-triggersSafe for mobile speakerphone calls
< 40 ms TTS flush · WebRTC AEC3 reference stream Launch Flash v2.5