WhoBuilt

Your realtime AI is ngmi

Jul 31, 2025· 16 min· 2.3K views·Watch on YouTube

Speakers

Sean DuBois of OpenAI and Kwindla Kramer of Daily explain how to build low-latency voice AI with WebRTC at an AI Engineer event.

Latency shapes voice AI

Sean says voice agents need fast responses because people expect conversation to feel natural. He describes about 500 milliseconds as a natural human response time and says latencies above a second can lead to low completion rates, poor NPS, and hang-ups. He defines voice-to-voice latency as the time from when a person stops speaking to when the first audio comes back.

Choose WebRTC for streaming audio

Sean recommends WebSockets for server-to-server traffic, structured data, and quick prototypes, but WebRTC for audio and video streams from web or native apps. Kwindla explains that WebSockets use TCP, which waits for in-order delivery, while WebRTC can let late or lost packets go to keep conversational latency low. WebRTC also handles tasks such as packetization, resampling, bandwidth estimation, and stats.

WebRTC supports varied experiences

Kwindla says WebRTC can bring real-time audio into websites and iOS and Android apps, and is already used by services including Messenger, WhatsApp, Zoom, and Discord. He also points to uses such as internet-based surgery and remote vehicle operation. He sees voice as a likely interface for generative AI, including situations where people have their voice available but not their hands.

A local Raspberry Pi voice demo

Sean introduces Squabbert, a Raspberry Pi voice agent using MLX, Whisper, Gemma 3, and custom logic for counting syllables. In a poem exercise, Squabbert first produces a short line and then misses the two-syllable constraint. Sean says the Pi connected directly to his laptop over a peer-to-peer WebRTC connection on the local network, and describes cloud and multiparty setups as other options.

A first project for bilingual children

Sean introduces Yashin, a parent of two bilingual children who had never written code before building an early language-learning project. Yashin says raising bilingual children can be expensive and time-consuming, and shows a prototype designed to make language learning more natural and fun. She already has interested parent testers and invites people working on multilingual projects to connect.

Takeaways

  • For browser or native app audio and video streams, use WebRTC; reserve WebSockets for structured data, server-to-server traffic, or prototypes.
  • Measure voice-to-voice latency from the end of the user's speech to the first returned audio, and aim to keep it below a second.
  • Budget for network conditions: TCP's in-order delivery can delay conversational audio when packets are lost or delayed.
  • WebRTC can connect devices locally, to cloud-hosted AI, or into multiparty experiences, depending on the product.
  • An early voice prototype can test a specific user need before its builder has deep coding experience.

Mentioned in this talk

Search inside this talk

What was claimed 10

  • built
    open-source voice agent framework
    “an open-source voice agent framework called Pipecat”
    YouTube
    Verified2 sources· Talk, Web· archived
  • works at
    “I work on WebRTC at OpenAI.”
    YouTube
    Verified2 sources· Talk, Web· archived
  • works at
    “I work at a company called Daily.”
    0:13inThe New Primitives: Building AI Native SoftwareYouTube
    Verified3 sources· Talk
  • built
    worked on the Go implementation of WebRTC
    “Before I worked at OpenAI, I worked on the Go implementation of WebRTC called Pion.”
    YouTube
    Unverified1 source· Talk
  • feature
    WebRTC: Best-effort networking that can ignore packets arriving outside the latency budget
    “all the machinery that sends packets as fast as possible and ignores packets that don’t arrive inside the very tight latency budget”
    YouTube
    Unverified1 source· Talk
  • metric
    WebRTC: Audio glitchiness, high latency, or unexpected socket disconnections occur in 10 to 15% of network connections using TCP-based approaches
    “you’ll get audio glitchiness, high latency, or unexpected socket disconnections in 10 to 15% of your network connections”
    YouTube
    Unverified1 source· Talk
  • feature
    OpenAI Realtime API: Offers WebRTC and WebSocket options for developers
    “the OpenAI Realtime API, which offers both options for developers”
    YouTube
    Unverified1 source· Talk
  • feature
    WebRTC: Built-in resampling, packetization, bandwidth estimation, stats, and observability
    “This is all built into WebRTC”
    YouTube
    Unverified1 source· Talk
Show all 10 facts

Related talks