WebRTC (Web Real-Time Communication)
WebRTC (Web Real-Time Communication) is the standard browsers use for live audio and video calls. It is how a caller in a browser talks to a voice AI agent with low delay. Media servers such as LiveKit use it to carry audio between callers and agents.
How it works
The browser captures the microphone, applies echo cancellation and noise suppression, encodes the audio with the Opus codec in packets of about 20 ms, and sends them over UDP. If a packet arrives late it is skipped, and a jitter buffer smooths small gaps. Over a TCP WebSocket, by contrast, one lost packet holds up everything behind it until it is resent (head-of-line blocking).
Connections are set up with ICE: each side tries direct and NAT-traversed routes. If a firewall blocks UDP, traffic falls back to a TURN relay, often over TCP or TLS on port 443. That works, but adds delay.
Why it matters in production
For voice agents, transport is part of the latency budget. Run media servers close to callers, open the UDP ports they need, monitor how many calls fall back to TCP relays, and test from real corporate and mobile networks, not just the office.
See also
On the One2N blog
References

Putting this into practice?