Back to Blog

How OpenAI Delivers Low-Latency Voice AI at Scale

May 5, 2026by Ichiban Team
aiwebrtcnetworkingsystem-architecturego

Hero

#Introduction

Real-time voice interaction is rapidly becoming the new frontier of conversational AI. Unlike text-based chatting, where users are accustomed to watching tokens stream across the screen, voice communication requires an entirely different technical paradigm. Human conversations operate within incredibly tight latency budgets; a delay of just a few hundred milliseconds can make an interaction feel unnatural, leading to awkward interruptions and broken turn-taking.

Recently, OpenAI published a highly anticipated engineering update detailing how they deliver low-latency voice AI to a staggering 900 million weekly active users. Serving real-time media at this scale is an enormous infrastructure challenge. In their post, they revealed a fascinating shift away from traditional media server architectures in favor of a custom, heavily optimized setup built on top of the WebRTC protocol.

For engineers building real-time AI applications, their approach is a masterclass in challenging default assumptions and optimizing network topology for specific use cases. Let's dive into what they built, why they built it, and the technical implications for the rest of the industry.

#What Happened

When engineering teams need to transport sub-second, real-time audio and video across the internet, WebRTC is the undisputed standard. It handles the messy realities of the public internet—NAT traversal, packet loss concealment, congestion control, and secure transport—straight out of the box.

However, the default way to scale WebRTC is by using a Selective Forwarding Unit (SFU). SFUs are designed primarily for multi-party conferencing (think Zoom or Google Meet). They take a media stream from one participant and selectively forward it to many other participants.

OpenAI realized that their workload was fundamentally different. AI voice interactions are strictly 1:1—one user talking to one model. Relying on an SFU for a 1:1 architecture introduces unnecessary computational and routing overhead. Furthermore, as they scaled up, OpenAI encountered three critical constraints with traditional WebRTC termination:

  • Port Management: Standard WebRTC implementations often require one or more UDP ports per session. When operating at the scale of 900 million users, port exhaustion on edge servers becomes a severe infrastructural bottleneck.
  • Session Stability: WebRTC relies on stateful handshakes like Interactive Connectivity Establishment (ICE) for NAT traversal and Datagram Transport Layer Security (DTLS) for encryption. These protocols require a highly stable connection to the specific node that owns the session state.
  • Global Routing: To achieve human-like conversational latency, the "first hop"—the connection from the user's phone to OpenAI's network—must be minimized. This requires terminating the connection at edge points of presence globally, rather than backhauling traffic over the public internet to a centralized data center.

#Why It Matters

To solve these massive scale constraints, OpenAI decided to rip out the heavy WebRTC logic from their inference backends and introduced a specialized layer at the edge. They refer to this as their split relay plus transceiver architecture.

Instead of forcing backend Python or C++ inference servers to behave like fully compliant WebRTC peers—which would require them to manage complex ICE and DTLS state machines—OpenAI placed specialized relay nodes at the network edge.

These thin edge nodes handle all the complex protocol semantics required by the client. To the user's mobile app, it appears as though it is communicating with a standard WebRTC endpoint. Internally, however, these edge nodes act as highly efficient packet routers. They unwrap the media from the WebRTC payload and forward it to the backend inference servers using an optimized, deterministic internal protocol.

This architectural separation is vital for two reasons. First, inference servers are already tasked with the computationally expensive job of running massive neural networks; offloading media transport logic simplifies their deployment and scaling. Second, this edge layer allows OpenAI to aggressively multiplex traffic, significantly reducing their public-facing UDP port footprint while servicing millions of concurrent sessions.

#Technical Implications

At the heart of this new architecture is Pion, an open-source, highly modular WebRTC implementation written in Go. Pion has become the darling of the WebRTC community precisely because it does not force developers into a rigid SFU box. Its composable nature allows engineering teams to pull out only the specific components they need and build highly customized transport layers.

OpenAI leveraged Pion to build their custom transceivers. Let's look at how their approach compares to a traditional media server setup:

FeatureTraditional SFU ArchitectureOpenAI Split Relay Architecture
Primary WorkloadMulti-party conferencing (N:M)Human-to-AI interaction (1:1)
Termination PointCentralized Media ServerDistributed Edge Nodes
Backend ResponsibilityAI inference + WebRTC state managementPure inference on raw/optimized media
Public Port UsageHigh (Often 1 per stream/session)Low (Aggressive multiplexing at the edge)
Traffic RoutingPayload inspection often requiredDeterministic via protocol-native metadata

A standout feature of this architecture is deterministic routing. By encoding routing metadata into standard protocol-native fields, the very first packet of a new session immediately knows which backend inference cluster to target. This essentially reduces connection setup latency to zero, allowing users to start speaking the moment the UI indicates a connection. Furthermore, by maintaining a highly stable Media Round-Trip Time (RTT) and minimizing jitter at the edge layer, the AI's conversational turn-taking feels remarkably crisp and natural.

#What's Next

OpenAI's architectural disclosure marks a significant turning point for the industry. As the broader tech ecosystem moves beyond text-based LLMs and begins building multimodal, real-time voice agents, traditional network infrastructure patterns will have to evolve.

We can expect to see several trends emerge from this shift:

  • Edge-Terminated Media Services: Cloud infrastructure providers will likely start offering specialized, managed WebRTC termination layers designed specifically for 1:1 AI workloads, lowering the barrier to entry for startups.
  • Pion's Continued Growth: The flexibility of Go and the Pion ecosystem makes it the default choice for modern, customized network programming. Expect an influx of open-source frameworks mimicking OpenAI's transceiver model.
  • Protocol Evolution: There may be a push for WebRTC extensions specifically tailored for AI workloads, optimizing handshakes for even faster session resumption.

#Conclusion

Delivering low-latency, real-time voice AI to nearly a billion users is an unprecedented engineering feat. By moving away from traditional multi-party media servers and embracing a custom, Go-powered split relay architecture, OpenAI has established a new gold standard for AI networking.

Their engineering decisions highlight a crucial lesson in system design: as application workloads fundamentally shift, the underlying infrastructure must be reimagined. A protocol designed for video conferencing isn't perfectly suited for 1:1 AI interactions out of the box, but with intelligent abstractions like the thin routing layer, it can be adapted to deliver magical, conversational experiences at a planetary scale.