# OpenAI Engineering: Inside the WebRTC Stack Rebuild That Keeps Voice AI Low-Latency at Scale

> OpenAI's engineering write-up on the WebRTC stack rebuild that keeps Realtime API voice traffic under conversational latency at scale.

- Org: OpenAI
- Date: 2026-05-04
- Category: article
- Source: https://openai.com/index/delivering-low-latency-voice-ai-at-scale/
- Canonical page: https://ai-tldr.dev/releases/openai-voice-ai-low-latency-webrtc/

## In short

OpenAI engineers Yi Zhang and William McDonald describe rearchitecting their WebRTC stack to fix three constraints that broke at scale: one-port-per-session media termination, stateful ICE/DTLS sessions, and global routing for low first-hop latency.

## What it is

An OpenAI engineering post by Yi Zhang and William McDonald, the team responsible for real-time AI interactions. It explains the architecture changes they made so voice AI sessions can be terminated efficiently across pods and regions while preserving the encrypted negotiation state that WebRTC requires.

## How it works

Three constraints had to be solved together. WebRTC traditionally pins one UDP port per session to a single server (one-port-per-session media termination), the ICE and DTLS handshake state is stateful and hard to migrate once established, and the routing has to keep first-hop latency low even when the user is far from the GPU pool. The post details how the team rebuilt these layers and where they had to depart from off-the-shelf WebRTC stacks.

## Why it matters

Voice AI only feels conversational when audio comes back below a couple hundred milliseconds; below that, users hear a real conversation, above it they hear a turn-based bot. Production WebRTC at OpenAI's scale is rare to read about in this depth, and the patterns generalise to anyone building real-time voice or telephony agents.

## Who it's for

voice/real-time engineers, infra teams running WebRTC at scale

## Links

- [OpenAI Post](https://openai.com/index/delivering-low-latency-voice-ai-at-scale/)
- [Hacker News](https://news.ycombinator.com/item?id=48013919)
