---
title: "How OpenAI delivers low-latency voice AI at scale"
description: "OpenAI rearchitected its WebRTC stack for ChatGPT voice and the Realtime API by splitting a stateless UDP relay from a stateful Go/Pion transceiver that owns ICE, DTLS and SRTP state."
url: "https://swe.quest/articles/how-openai-delivers-low-latency-voice-ai-at-scale-fa481a5234e95d30"
canonical: "https://openai.com/index/delivering-low-latency-voice-ai-at-scale"
source: "OpenAI"
published: "2026-05-04"
difficulty: "hard"
kind: "Case study"
reading_minutes: 13
tags: ["networking","realtime","load-balancing","kubernetes","speech-audio"]
---

# How OpenAI delivers low-latency voice AI at scale

A post on [OpenAI](https://swe.quest/sources/openai.md), published 2026-05-04, 13 min read, Case study. Original: [https://openai.com/index/delivering-low-latency-voice-ai-at-scale](https://openai.com/index/delivering-low-latency-voice-ai-at-scale)

## Summary

OpenAI rearchitected its WebRTC stack for ChatGPT voice and the Realtime API by splitting a stateless UDP relay from a stateful Go/Pion transceiver that owns ICE, DTLS and SRTP state. The design avoids one-public-port-per-session media termination, which fits poorly with Kubernetes and cloud load balancers. Server-generated ICE ufrags encode routing hints, so the relay can steer the first STUN packet to the owning transceiver without an external lookup. Relay flows are kept in memory with Redis as a backup, and Cloudflare geo-steered signaling plus a globally distributed relay fleet shorten the first hop and cut setup latency.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Networking](https://swe.quest/tags/networking.md) (Infrastructure)
- [Real-time systems](https://swe.quest/tags/realtime.md) (Backend & APIs)
- [Load balancing](https://swe.quest/tags/load-balancing.md) (Infrastructure)
- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)
- [Speech & audio](https://swe.quest/tags/speech-audio.md) (AI & ML)

## Prerequisites

- WebRTC basics ([easy posts on Communications](https://swe.quest/tags/communications.md?difficulty=easy))
- ICE and STUN
- UDP networking ([easy posts on Networking](https://swe.quest/tags/networking.md?difficulty=easy))
- Kubernetes services ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))

## Keywords

WebRTC, Pion, ICE, STUN, DTLS, Realtime API, Cloudflare, Redis

## Related posts

- [How we built a realtime system for responsive voice AI in six months](https://swe.quest/articles/how-we-built-a-realtime-system-for-responsive-voice-ai-in-six-months-00acf536a10a0c45.md): OpenAI · 2026-08-03 · Medium · 12 min read · Inference & serving, Real-time systems, Networking, Speech & audio, System design
  GPT-Live replaces turn-detector-based voice AI with a full-duplex voice model that listens and speaks simultaneously, delegating deeper reasoning and tool use to frontier models like GPT-5.5 over an asynchronous RPC path that never blocks media.
- [One-second voice-to-voice latency with Modal, Pipecat, and open models](https://swe.quest/articles/one-second-voice-to-voice-latency-with-modal-pipecat-and-open-models-a0369eb06c4f6162.md): Modal · 2025-11-04 · Medium · 12 min read · Speech & audio, Inference & serving, Real-time systems, Performance engineering, RAG & retrieval
  A conversational voice bot on Modal reaches roughly one-second voice-to-voice latency.
- [FastRTC: The Real-Time Communication Library for Python](https://swe.quest/articles/fastrtc-the-real-time-communication-library-for-python-e889b4f612747a64.md): Hugging Face · 2025-02-25 · Medium · 6 min read · Speech & audio, Real-time systems, Python, LLMs
  FastRTC is a Python library for building real-time audio and video AI applications over WebRTC or WebSockets without needing WebRTC expertise.
- [Rapidly scaling online storage to serve over 1 billion ChatGPT users](https://swe.quest/articles/rapidly-scaling-online-storage-to-serve-over-1-billion-chatgpt-users-05665dfd2bff721d.md): OpenAI · 2026-09-11 · Medium · 14 min read · Scaling, Python, Concurrency, Performance engineering, Resilience
  Habitat, OpenAI's online storage platform, grew from a client-side Python library over Azure Cosmos DB into a centralized Python service handling 70M+ requests per second and 500+ PB across about 40 regions.
- [Real-time Messaging](https://swe.quest/articles/real-time-messaging-63eff1981479ebae.md): Slack Engineering · 2023-04-11 · Medium · 6 min read · Real-time systems, System design, Distributed systems, Communications, Scaling
  Slack's real-time messaging runs on four Java services: stateful in-memory Channel Servers sharded by consistent hashing, regionally deployed Gateway Servers holding websocket subscriptions, stateless Admin Servers bridging the Webapp backend, and Presence Servers tracking online users.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
