OpenAI's Voice AI Still Drops Your Words Because of WebRTC

OpenAI still has a WebRTC Problem

WebRTC was built for conference calls, so it discards late audio packets to keep latency real-time—a disaster for voice AI, where a dropped word like "France" can leave the model guessing. Since LLMs are blocked on context, a transport could retransmit for seconds with no user impact. The author argues Media over QUIC does exactly that, buffering by timestamp instead of arrival, and that OpenAI has the clout to push Google to fix WebRTC.

A voice agent should never ask the user to retransmit a prompt. A voice agent should instead ask the transport to retransmit a prompt.
  1. Sean-Der

    WebRTC doesn't give up on late audio. This isn't factually correct. WebRTC has NACKs[0]. The receiver (AI Inference server) decides when to either accept the gap in RTP packets or if it sends the NACK and waits.

    This article doesn't describe how Voice AI systems I work on operate. For speech-to-speech I am working at 20ms/200ms chunks and doing inference. So I don't want buffers

    [0] https://webrtcforthecurious.com/docs/06-media-communication/...

  2. tonelord

    I've had some experience with audio on the web, back in the day I built a weird collab music streaming system in the browser and presented at NIME. Back then AudioWorklets were new and I didn't understand WebRTC. The initial design used Raspberry Pis and IceCast. However, the setup was not only difficult to me but beyond the abilities of my target audience. I was more familiar with web dev and figured why can't something similar work for the browser, truly naive. After lots of learning through trial and error and understanding how these types of streaming worked, I ended up with something in hindsight worked pretty simply and was beautifully naive.

    It took audio input, fed it into a wasm opus encoder, output audio in "segments" of audio, and uploaded via typical HTTP. No WebSockets or WebRTC or QUIC (I don't even think I used HTTP2). The only reason it wasn't just a full encoded recording was because I wanted to make it continuous and streamed. I basically learned this via HLS, but also didn't understand HLS nor was it easy to encode and stream data (in my mental model) from the browser to the server.

    On the server and streaming to the client, it just collected the segments and told clients when they were ready, via polling, similar to HLS. The client would download, wasm decode, and add the audio to a buffer. The thing is that because of the nature of the project it didn't really have much to do with one continuous stream, but it did take sequences of the segments from multi […]

  3. cklscikng

    Quite interesting. I found the part about tokens with different priorities super cool.

  4. FLeXMurphy

    Summary: Long-winded advertisement for MoQ. Author mentions that WebRTC has some limitations and Google needs to address them. Until then, anyone (including OpenAI) trying to use WebRTC for human<->bot communication may run into issues.

  5. jpterry

    Can't the WebRTC SDP payload indicate TCP for transport protocol and address most of this concern?

More from this day

2026-11-19