WhoBuilt

Realtime Voice AI

Aug 3, 2025· 1 h 10 min· 16K views·Watch on YouTube

Speaker

Mark Backman of Daily leads a hands-on AI Engineer workshop on building real-time voice agents with Pipecat, joined by Daily colleagues and a Google DeepMind guest.

Why realtime voice is hard

Voice agents need to listen well, respond naturally, and connect to useful data while keeping end-to-end communication near 800 milliseconds. Backman describes Pipecat as an open-source Python framework that orchestrates the services needed to meet those demands.

How Pipecat pipelines work

Alish explains a typical pipeline: transport audio goes to speech recognition, then an LLM, then text-to-speech, with generated audio returned through the transport. Pipecat also supports speech-to-speech models such as Gemini Live, modular service choices, parallel processing, and provider failover.

Build a Gemini Live bot

Backman walks through a Python bot using Daily for WebRTC transport, Silero for voice activity detection, and Gemini Live for audio input and output. The minimal pipeline connects transport input, the model, and transport output; the workshop repo also shows context handling and function tools. Conference Wi-Fi disrupts setup, but the bot eventually joins a Daily room and responds to voice.

Design for latency and turn taking

Backman recommends WebRTC for client-server apps because of its audio quality and error correction, while WebSockets suit server-to-server connections such as phone bots. He describes VAD as key to interruptions and turn boundaries, and discusses Smart Turn, a Pipecat audio classifier that can extend the wait when someone seems to be continuing a thought.

Manage context and explore examples

Backman says guardrails are optional, while latency and context growth remain practical challenges. Task-based prompts, context resets, and summaries can help; tool calls may be slower because the model must finish its JSON response before acting. He also demonstrates Word Wrangler, a Gemini Live game in which an agent guesses words from spoken clues.

Takeaways

  • Target roughly 800 milliseconds for end-to-end voice interaction, and measure the full pipeline.
  • Choose WebRTC for client-server voice and consider WebSockets for server-to-server integrations.
  • Keep pipeline components modular so providers can be swapped or run in parallel.
  • Use VAD and turn detection to support interruptions while giving users time to finish speaking.
  • Control long conversation context with task-focused prompts, resets, or summaries.

Mentioned in this talk

Search inside this talk

What was claimed 14

Show all 14 facts

Related talks