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
18 modules

Take modules in any order. The route suggests one that builds up naturally.

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.

callerwebrtc · sipturn-takingspeech→textmodel + toolstext→speechdesign · test callers~1 sone call's round trip, from voice to voice

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.

01

The big picture

Why talking to software is hard.

3 modules · 60 min

02

Listening

Turning speech into words.

3 modules · 70 min

03

Speaking

Turning words into a voice.

3 modules · 65 min

04

Real time

Fast enough to feel like conversation.

4 modules · 90 min

05

Voice agents

Assistants that talk and act.

4 modules · 90 min

06

Capstone

Everything together.

1 module · 40 min