Voice AI
Speech in, speech out, in real time.
How voice AI works and how to build voice agents people enjoy talking to: turn-taking, sound as data, the voice pipeline, speech recognition, voice activity and turn detection, noisy real-world audio, speech synthesis, writing for the ear, voice cloning and consent, the latency budget, speech-to-speech models, interruptions, WebRTC and telephony, conversation design, tools mid-call, platforms, and testing and operations. Vendor-neutral, covering open-source speech models, specialist voice APIs and the speech services of Google, Microsoft, AWS and OpenAI. By the end you can design a real-time voice agent, hit its latency budget and run it responsibly.
- 6
- chapters
- 18
- modules
- ~7h
- of learning
- 18
- live now
Take modules in any order. The route suggests one that builds up naturally.
has a live module in progress complete
Take a look inside
The big picture, before the details
One call's round trip: from the caller's voice through turn-taking, speech-to-text, the model and a voice, and back. Watch the tour, or click any part.
A caller: speaks into a phone or browser; sound is a wave, sampled thousands of times a second, with echo and noise to clean up (modules 1, 2, 6).
A taste of module 12: cut the assistant off mid-sentence and compare what the caller heard with what the agent thinks it said.
Caller heard: Your booking is for Friday at seven. There's a
Agent thinks it said: Your booking is for Friday at seven. There's a five hundred rupee deposit, refundable up to a day before. Shall I confirm it?
It stops, but believes the caller heard about the deposit. Later: “as I mentioned, the deposit is refundable…” The caller never heard that.
The big picture
Why talking to software is hard.
3 modules · 60 min
Listening
Turning speech into words.
3 modules · 70 min
Speaking
Turning words into a voice.
3 modules · 65 min
Real time
Fast enough to feel like conversation.
4 modules · 90 min
Core
The latency budget
Where every millisecond goes.
Core
Speech-to-speech models
One model that listens and talks.
Core
Barge-in and interruptions
Letting people cut in.
Applied
WebRTC, WebSockets and phones
Getting audio there and back.
Voice agents
Assistants that talk and act.
4 modules · 90 min
Applied
Designing voice conversations
No screen to fall back on.
Applied
Taking action mid-call
Tools while talking.
Applied
Voice platforms and models
Open source, APIs and clouds.
Applied
Testing and running voice agents
Measuring what callers feel.
Capstone
Everything together.
1 module · 40 min