OpenAI still has a WebRTC Problem
TL;DR Highlight
WebRTC drops late audio, hurting voice AI; MoQ retransmits and buffers instead
Who Should Read
A backend developer whose WebRTC-based voice agent (STT→LLM→TTS) keeps replying 'can you repeat that?' after packet loss
Core Mechanics
- WebRTC drops late audio
- WebRTC is built for conference calls, so it reportedly drops audio packets later than about 30ms.
- Audio retransmission is off by default, and even when on, the jitter buffer reportedly won't wait for it.
- LLMs wait for the last packet
- An LLM needs the full context, so the arrival time of the last packet is what matters.
- The AI can process faster than real time, so there are seconds available to retransmit.
- MoQ retransmits for up to 5s
- 1s of Opus at 64Kbps is 8KB, sent as 50 packets but retransmittable as about 6 QUIC packets.
- So the model doesn't have to guess missing context.
- TTS playback should use timestamps
- WebRTC plays by arrival time, so the agent reportedly has to sleep before sending each TTS packet.
- MoQ sends ASAP and the player buffers in RAM and plays by timestamp; 2 minutes of audio is about 1MB.
- Interrupt with a new track
- To discard buffered speech, create a new audio track and remove the old one.
- A generic MoQ player switches automatically, keeping sync via timestamps.
- Each subscription sets a latency budget
- A real-time STS model might get 500ms while a more accurate STT→LLM→TTS path gets 5s.
- Both merge into one upstream subscription with fanout; latency only grows under bad networks.
Community Reactions
- Commenter says WebRTC has NACKs, so the receiver decides to accept gaps or wait
- They say the article doesn't match the voice AI systems they work on.
- They run STS inference on 20ms/200ms chunks and don't want buffers.
- Opinion that NACK, FEC and Opus RED already cover retransmission
- Another commenter doubts the extra client-side logic for interruptions is worth the tradeoff.
- Experience that simple HTTP segment upload worked fine
- A commenter built browser audio with wasm Opus, HTTP upload and polling, and it worked simply.
- They suggest that may be enough for smaller companies.
- Reactions that it reads like a MoQ ad
- Some commenters called it an ad for a voice SaaS and criticized the MoQ camp's attitude.
- One who worked on WebRTC in 2015–2019 agreed with the direction.
How to Apply
- Test packet-loss behavior in your pipeline
- Inject network loss into your voice agent today and see if it asks users to repeat.
- Check logs for whether the receiver waits after NACK or skips the gap.
- Write down latency budgets as a product decision
- Set max wait times for fast (STS) and accurate (STT→LLM→TTS) replies.
- Tune the transport to those budgets.
- Design an interruption signal
- If you send playback ahead of time, define how the client discards the buffer.
- If using MoQ, try replacing the track.
- Try Pipecat's MoQ support
- The article says Pipecat supports MoQ, so compare it with WebRTC under loss in a demo pipeline.
Try It
# Paste into Claude or ChatGPT (simple check version of the article's claims)
I'm building a voice AI agent. My transport is {{current transport: WebRTC/WebSocket etc.}} and the pipeline is {{STT→LLM→TTS or STS}}.
Review my design on these points:
1. Is audio retransmission on, and does the jitter buffer wait for it
2. How the last packet's arrival time affects response latency
3. Is TTS played by timestamp or by arrival time
4. How buffers are discarded on interruption
5. Are latency budgets separated for fast vs accurate replies
Give me a table of risks and how to verify each.
Next: ask for 3 concrete loss test scenarios per item.Terminology
Related Papers
A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth
Install Unsloth Desktop, load a quantized Qwen model, and share a private ChatGPT-like AI on your home LAN.
Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator
mod_wsgi's creator is building Muru, an AI-assisted Rust ASGI/WSGI server, documenting it in public
87% of the Anthropic power will come from gas and 11% from coal in 2028
Analysis of Anthropic's contracted data centers: 87% gas, 11% coal power in 2028
Anthropic’s Nasdaq debut
Anthropic listed on Nasdaq and closed its first day below its opening price.
Gemini 4 Neon
Gemini 4 Neon cuts cost per task 32% versus Carbon, at $3 input and $15 output per million tokens
AI is killing All About Berlin
After Google AI Overviews, a Berlin guide site lost 70-75% of its traffic.
Not Everything Needs an LLM
PostHog used small decision models to skip 98.7% of expensive LLM calls
GPT‑6.2 Astra and Sol
GPT-6.2 Astra and Sol cut costs sharply, but over-engineering and early-stop reports are mixed