cCarebun Reading‹ All reading
Carebun Interactive/Voice agent Latency budgetInterview plan Study view

An interactive textbook

Design a Real-Time Voice AI Agent
Novice to Ninja

A system that listens, thinks, acts and talks back within a fraction of a second. The five components, the two ways to build it, the 800 millisecond budget, interruptions, tools, telephony, scale, the edge cases, and how to present it all in an interview.

Start readingOpen the latency budget

24 chapters · about 2.3 hours · 16 interactives · no background needed

How to read this book

  1. In order. Each chapter is five or six minutes and uses only what the earlier ones taught. The whole book is about two hours.
  2. With your hands. Sixteen chapters have an interactive. Guess first, then move the slider or press the button.
  3. With the numbers from the source. Every millisecond, kilobit and dollar in this book comes from the blog post it follows. Nothing was measured here, and the interactives say so.
  4. Recall before you read on. Every chapter ends with questions and folded answers, and the later chapters ask you to recall the earlier ones.

Part I · The problem

What a voice agent is, why real-time voice is hard, what we must build, and how big it is.

Part II · The five components

Audio transport, voice activity and turn detection, speech-to-text, the LLM with tools, and text-to-speech.

Part III · Two ways to build it

The cascaded pipeline, the speech-to-speech model, the hybrids, and the latency budget.

Part IV · The hard parts

Interruptions, tool calling, memory, and real phone calls.

Part V · Production

Scale, edge cases, observability, safety, cost, and the 45-minute interview.