Sections

HomeResearchWritingExperienceProjectsVideosFor agents

Theme

Hrithwik Bharadwaj

hrithwik009@gmail.com

Built with Vite and React · Bangalore, India

Writing

Voice Agents, From Microphone to Speaker

How talking machines went from glued recordings to cloning any voice from a few seconds, and how a live voice agent hears, thinks and answers fast enough to hold a conversation.

Hrithwik BharadwajNov 22, 202632 min read

Contents

  1. 01The short version
  2. 02Glue and buzz
  3. 03Paint the sound, then play it
  4. 04The Sound Alphabet
  5. 05The Voice Map
  6. 06Fish, MiniMax, ElevenLabs and Sarvam
  7. 07Why some models are tiny
  8. 08The Conversation Clock
  9. 09Whose turn is it?
  10. 10One model, or the Relay?
  11. 11Memory and tools, off the clock
  12. 12Ten seconds is also the problem
  13. 13If you are building one
  14. 14Under the hood
  15. 15Check yourself
  16. 16Sources and further reading

The example on Fish Audio’s model card for Drama 3 clones a voice from a 3.9-second clip. In 2017, Google’s best system learned one voice from 24.6 hours of a single professional speaker reading in a studio.

You would guess the new models got much better at learning a voice. They did not. The surprise, and the idea this essay orbits, is that the best cloning models barely learn your voice at all. They have already heard millions of hours of people talking. Your few seconds only tell them where you are.

I wanted to understand that properly, the way I wanted to understand attention: where it began, which papers mattered, and why it took off when it did. This is what I found. By the end you will know how a machine went from gluing recordings together to speaking in anyone’s voice, how a live voice agent hears you, thinks and answers in about a second, and why some of these models fit on a phone. There are three short quizzes on the way and one at the end.

The Short Version

Think of a good impressionist. They have spent years listening to thousands of voices. Play them ten seconds of a stranger and they can do a passable version, because they are not starting from nothing. They know what voices can sound like, and they only need to work out where this one sits: a bit lower than that actor, a bit faster than that newsreader. I will call the impressionist’s knowledge the Voice Map.

Modern speech models work the same way, and getting there took three steps. First, machines learned to make sound that is hard to tell from a recording. Then labs found a way to write sound as a short string of numbers, a Sound Alphabet, so the same kind of model that writes text could write speech. Train that model on enough people and it learns the Voice Map by itself.

A voice agent adds a fourth problem: time. A conversation runs on a clock. People leave about a fifth of a second between turns, and an agent that takes three seconds sounds broken. Most agents today are a relay race of three models, one that listens, one that thinks and one that speaks, and almost all of the engineering is about passing the baton faster. I will call that the Relay, and the time limit the Conversation Clock.

That is the whole idea. The rest is how each part works, with the numbers.

Glue and Buzz

Here is the road on one page. Skim it now. Each row comes back later.

From glued recordings to live agents

A short history of talking machines

Sounds humanAny voiceReal time
≤2015
Unit selectionglued recordingsHMM synthesissmooth, buzzy
2016
WaveNetraw audio, sample by sample
2017
Tacotron 24.53 vs 4.58Parallel WaveNet20× real time
2018
SV2TTSvoices it never trained on
2019
FastSpeechall columns at once
2020
HiFi-GANfast vocoder
2021
SoundStreamsound as tokens
2022
EnCodec75 frames a secondAudioLMcontinues a 3 s prompt
2023
VALL-E3 s to cloneVoiceboxflow matching
2024
GPT-4o voice320 ms averageMoshilistens while it talksFish-Speech720,000 hoursCosyVoicetokens + flow
2025
Kokoro82M parametersMiniMax-Speechlearned speaker encoderOpenAudio S12M hours, 4BSesame CSMvoice presencegpt-realtimephone calls, tools
2026
Bulbul V311 Indian languagesFish S210M hoursGPT-Realtime-2reasons mid-callFish Drama 335B, 3B active
Ten years in three lanes. First machines learned to sound human, then to sound like anyone, then to do it fast enough to hold a conversation. Each row is one public paper, blog post or launch, linked in the Sources.

Before 2016 there were two ways to make a computer talk. The first recorded one person reading for many hours, cut the recordings into tiny pieces, and glued the right pieces together for each new sentence. DeepMind’s WaveNet post describes it as “a very large database of short speech fragments” from a single speaker. It could sound natural, but only in that one voice, and changing the voice meant recording a new database.

The second, statistical parametric synthesis, predicted numbers that describe the sound and fed them to a simple synthesiser. It was flexible but flat. A 2009 review of the leading system admits the predicted features were “often excessively smooth”, and its fix was praised for reducing the “buzziness”. If you remember satnav voices from the 2000s, that buzz is what you remember.

Paint the Sound, Then Play It

In September 2016, DeepMind published WaveNet, a neural network that wrote raw audio directly: “16,000 samples per second or more”, one number at a time, each chosen after looking at the ones before. Listeners rated it closer to human than either older method, and DeepMind said it cut the gap with human speech “by over 50%”.

It was also painfully slow, since 16,000 steps in a row cannot run in parallel. DeepMind called it “computationally expensive”. The version it put in the Google Assistant in October 2017 was 1,000 times faster, making a second of speech in 50 ms, and its parallel successor ran more than 20 times faster than real time.

Google then split the job in two. Tacotron (March 2017) read characters and painted a spectrogram: a picture of the sound, with time running left to right and pitch bottom to top, bright where that pitch is loud. A second network, the vocoder, played the painting back as a wave. With WaveNet as the vocoder, Tacotron 2 (December 2017) scored 4.53 out of 5 with listeners, against 4.58 for real recordings of the same speaker.

2017: two networks

Paint the sound, then play it

“Hello”lettersTacotron 2text to picturespectrogramVocoderpicture to sound24,000 a secondStep one paints the sound. Step two plays the painting.
“Hello”Tacotron 2text to picturespectrogramVocoderpicture to sound24,000 numbers per second

WaveNet, 2016

16,000/s

Samples it wrote, one at a time, for each second of audio. DeepMind called this computationally expensive.

Tacotron 2, 2017

4.53vs 4.58

Listener score out of 5 for the model, against real recordings of the same speaker.

FastSpeech, 2019

270×

Faster spectrograms by painting every column at once instead of one after another.

HiFi-GAN, 2020

167.9×

Faster than real time on one GPU. The vocoder stopped being the slow part.

The design that ruled from 2017 to about 2022. One network turns letters into a spectrogram, column by column. A second, the vocoder, turns it into the tens of thousands of numbers a speaker needs every second.

The next three years made both halves fast. FastSpeech (2019) painted every column of the spectrogram at once instead of in order, which sped that step up 270 times and “nearly eliminates” the old habit of skipping or repeating words. NVIDIA’s WaveGlow and then HiFi-GAN (2020) made vocoders cheap: HiFi-GAN runs 167.9 times faster than real time on one GPU, and a small version 13.4 times faster on a CPU.

By 2020 a machine could sound human. But each voice still needed hours of clean studio audio and its own training run. Google had already tried a shortcut in 2018, called SV2TTS: a separate network trained only to tell speakers apart, whose output, a short list of numbers summarising how someone sounds, steered the speech model. It could speak in voices “not seen during training” from seconds of audio. An open-source version promised to “clone a voice in 5 seconds”. It worked, roughly. It was the first sketch of a Voice Map, but drawn from too little data to be convincing.

Quick check: the neural years

Tap an answer to check it

0/2

Question 1

Tacotron 2 did not make sound itself. What did it hand to the vocoder?

Not quite. Step one painted the sound as a spectrogram, column by column. The vocoder, WaveNet at first, turned that picture into the 24,000 numbers a second a speaker needs.

Question 2

Why was the first WaveNet far too slow for a phone assistant?

Not quite. Each sample depended on the previous one, so nothing could run in parallel. The version Google shipped in 2017 was 1,000 times faster.

The Sound Alphabet

The breakthrough came from an unexpected direction: audio compression. In 2021, Google’s SoundStream was a neural codec, built to squeeze speech and music for calls and streaming. At 3 kbps it “outperforms Opus at 12kbps”, Opus being the codec inside browser calls. Meta followed with EnCodec in October 2022.

The interesting part was not the size. It was the format. A codec like this turns sound into a grid of small whole numbers, each picked from a fixed list called a codebook. In the setting VALL-E later used, each second of 24 kHz audio becomes 75 frames, and each frame becomes eight numbers from eight codebooks of 1,024 entries. That is 600 tokens a second, from 24,000 raw samples. This is the Sound Alphabet.

2021 to 2022: neural codecs

Sound, written as tokens

Sound wavecodecTokens: 8 rows, one column per frame11337062788411737463188812150282011443275004436268099889124662510043597380934728512566961125529924088482647046451226231006010785790565570105721106722107723108724103991022621220843442041664263788448108792452112796456116roughfine24,000 numbers a second in600 tokens a second out, each a number from 0 to 1023
Sound wavecodec11337062788411737450282011443275004489124662510043597382566961125529924086451226231006010780105721106722107723991022621220843442788448108792452112roughfine24,000 numbers in, 600 tokens out, per second

Why there are 8 rows

Each row fixes what the last one missed

the real soundcodebook 123start

Mimi, Kyutai, 2024

12.5frames/s

A newer codec built for live talk, at 1.1 kbps. A minute of speech is 750 frames, short enough for a language model to keep the whole call in view.

For the backend reader

Residual quantisation, in code

// v: the codec's vector for one frame
function encodeFrame(
  v: number[],
  books: number[][][],
): number[] {
  let left = v; // not yet captured
  const codes: number[] = [];
  for (const book of books) {
    const i = nearest(book, left);
    codes.push(i); // 0..1023
    left = minus(left, book[i]);
  }
  return codes; // 8 small numbers
}
The Sound Alphabet. A neural codec turns a second of audio into a few hundred whole numbers, the same kind of thing a language model reads and writes. Figures are EnCodec’s setting used by VALL-E: 8 codebooks of 1,024 entries at 75 frames a second.

Why eight rows? Because of a trick called residual vector quantisation. The first codebook picks the closest rough match for the frame. The second codebook does not describe the sound again. It describes what the first one got wrong. The third fixes what is still wrong, and so on. EnCodec’s 24 kHz model uses more rows for higher quality, from 1.5 kbps up to 24 kbps.

Now the turn that made everything after it possible. A sequence of whole numbers from a fixed list is exactly what a language model reads and writes. Text models predict the next token. Give one the Sound Alphabet and it can predict the next sound. Every trick from text, including the Transformer and the habit of scaling it up, carried over to speech. If you want the background on that machine, my attention explainer covers it.

Google showed this first with AudioLM in September 2022. It used two kinds of tokens: “semantic” ones that capture what is said, and SoundStream’s tokens for how it sounds. Given a prompt of only 3 seconds of someone speaking, it kept going in “the original speaker voice, prosody and recording conditions”. Nobody had asked it to clone anyone. Continuing a voice was simply the likeliest way to continue the sequence.

The Voice Map

In January 2023, Microsoft turned that into a speech model and named the idea. VALL-E is a “neural codec language model”. It was trained on 60,000 hours of English from more than 7,000 speakers, and it could speak any text in a new voice from “only a 3-second enrolled recording”.

The 60,000 hours are the point. Tacotron 2 heard one person for a day. VALL-E heard thousands of people for years of audio, and so it learned the Voice Map: what voices can sound like, how pitch, accent, speed and room echo vary, and how they go together. Cloning is no longer learning. It is locating.

Why a few seconds is enough

The Voice Map

Your clip3 to 30 secondsEvery voice it heard in trainingyou, among voices like yoursThe map is learned once. Cloning only finds your spot on it.
Your clip, 3 to 30 secondsEvery voice it heardYou, among voices like yours.Cloning only finds your spot on the map.

VALL-E, 2023

Cloning is finishing a prompt

Text“Hi, it’s Asha.” + “See you at six.”
Your 3 s412087733209518044…
It writes291650118902377545063810…

The clip’s tokens go in first, like the start of a chat. The model keeps writing tokens in the same voice, because that is the likeliest way for the sequence to go on. Nothing is retrained.

The Voice Map. A big model has already heard tens of thousands to millions of hours of people talking. Cloning does not teach it your voice. It locates you, then writes new tokens that continue in the same voice.

Look at what cloning actually is in the second tile. Your clip’s tokens go in first, like the start of a chat. The model is asked to keep writing, and the most likely continuation of a sequence that starts in your voice is more of your voice. ElevenLabs states it most plainly of any lab I read: its instant clone “does not train or create a custom AI model” and instead “relies on prior knowledge from training data”.

Then the data grew. Meta’s Voicebox used over 50,000 hours, F5-TTS 100,000, Fish-Speech about 720,000, OpenAudio S1 over 2 million, Alibaba’s CosyVoice 3 one million, and Fish S2 over 10 million hours in about 80 languages. The more of humanity the model hears, the denser its Voice Map, and the less of you it needs.

Not every lab writes speech one token at a time. Voicebox (2023) brought a second method to the front, flow matching: start from noise covering the whole clip and refine every frame together in a few passes, the way image models work. Meta said it was up to 20 times faster than VALL-E. E2 TTS and F5-TTS (2024) simplified it further, and CosyVoice combined the two: a language model writes the tokens, flow matching turns them into sound.

Same goal, two methods

Write it like text

One frame at a time, left to rightEach column looks back at everything before it.
One frame at a time, left to rightEach column looks back at everything before it.
Two ways to write speech in a voice. Language-model style (VALL-E, Fish, MiniMax) writes tokens in order and streams easily. Flow matching (Voicebox, F5-TTS) refines a whole clip from noise in a few passes. CosyVoice uses both: a language model for the tokens, then flow matching for the sound.

Quick check: tokens and the Voice Map

Tap an answer to check it

0/3

Question 1

VALL-E clones a voice from 3 seconds. What happens to the model’s weights while it clones you?

Not quite. Cloning is prompt continuation. The likeliest way for a sequence that starts in your voice to go on is in your voice. ElevenLabs says the same of its instant clones: no custom model is trained.

Question 2

Why did turning audio into codec tokens matter so much?

Not quite. Once a second of sound is a few hundred whole numbers, speech looks like text to a Transformer. Everything learned about language models, including scaling, carried over.

Question 3

Why can a clip that short be enough?

Not quite. That is the Voice Map. The hard part, learning what voices can sound like, happened in training. Your clip is a pin on the map.

Fish, MiniMax, ElevenLabs and Sarvam

So how are today’s best cloning models so good? Mostly the same recipe, pushed hard: a big language model trained on a Sound Alphabet, an enormous Voice Map, and then tuning on what listeners prefer. The labs differ in how much they tell you. Here is what each has actually published, because “research paper” and “launch post” are not the same thing.

Fish Audio

Four steps to Drama 3

paperFish-Speech, Nov 2024. Two transformers: a slow one reads the text and plans each frame, a fast one fills in that frame’s codebooks. No phonemes. 720,000 hours.
blogOpenAudio S1, 2025. 4B parameters, over 2 million hours, tuned with reinforcement learning on human preference. S1-mini (0.5B) is a smaller copy distilled from it.
paperS2, March 2026. The slow transformer is now Qwen3-4B, a text LLM. Over 10 million hours in about 80 languages. To clone, it puts your reference audio at the start of the prompt.
paperDrama 3, 13 October 2026. 35B parameters, about 3B used per token. Up to 16 speakers in one scene, 83 languages, directions like [choked up, crying quietly], first audio in 88.9 ms at the median for a single stream.
docsPrice. $50 per million UTF-8 bytes, with a $10 launch price that the docs run to 30 November 2026 (the launch post said 12 November).

MiniMax

A speaker encoder that learns

paperMiniMax-Speech, May 2025. A speaker encoder trained together with the speech model reads the timbre of a clip, no transcript needed. 32 languages.
blogSpeech 2.6 and 2.8. Under 250 ms end to end; clones from a 10-second sample.
docsClone upload. 10 seconds to 5 minutes, up to 20 MB.

ElevenLabs

Two kinds of clone

docsInstant. 1 to 2 minutes of audio. It “does not train or create a custom AI model”.
docsProfessional. 30 to 180 minutes, trains a model, and only for your own voice, checked by reading lines aloud.
docsFlash v2.5. About 100 ms of model latency.

Sarvam AI, India

Built for Indian languages and phone lines

blogBulbul V3, Feb 2026. An LLM reads the text and plans the rhythm and stress. 35+ voices in 11 Indian languages. Top on 8 kHz phone audio in a Josh Talks blind test that Sarvam reports.
blogBulbul V4 Flash, Oct 2026. Under 250 ms to first audio, ₹20 per 10,000 characters, and reads out PNR and Aadhaar numbers, dates and times correctly in Hindi and English.
blogSaaras V4, Sep 2026. Speech to text and translation in 22 languages, first token under 150 ms, keeps English words in English inside Hinglish.
not foundA research paper of their own on arXiv. The detail lives in blog posts and docs.
What each lab has actually published, as of November 2026. A paper explains the method. A blog post or docs page states a result but not how it was reached. Every figure here is the lab’s own claim.

Fish Audio publishes the most. Its 2024 paper describes a “Dual-AR” design: a slow transformer that reads the text and plans each frame, and a fast one that fills in that frame’s codebook rows, the eight rows from the Sound Alphabet. It also drops phonemes, the pronunciation dictionaries older systems needed, and lets the language model work out pronunciation. By S2 in March 2026, the slow transformer was a pretrained text LLM, Qwen3-4B, and cloning worked by putting your reference audio at the front of the prompt.

Fish Audio Drama 3 launched on 13 October 2026 with a technical report and open weights. It is a “35B-parameter mixture-of-experts, about 3B active per token”, started from Alibaba’s Qwen3.5-35B-A3B text model. You direct it in brackets, like “[choked up, crying quietly]”, it voices up to 16 characters in one scene in 83 languages, and its model card reports first audio in 88.9 ms at the median for a single stream. The API lists at $50 per million UTF-8 bytes. One discrepancy: the docs say the $10 launch price runs to 30 November 2026, while the launch post said 12 November.

So why is Drama 3 so good? Fish’s own answer is the training recipe: three pre-training stages, instruction tuning so it follows direction, then reinforcement learning with a learned model of what people prefer as the reward. I could not find Fish saying why it needs so little audio. The Voice Map is my reading, supported by those 10 million hours. Fish’s cloning guide asks for at least 10 seconds, best as two or three clips of 15 to 20 seconds.

MiniMax took a different path to the same place. Its May 2025 paper adds a “learnable speaker encoder” that reads the timbre of a reference clip “without requiring its transcription”. Older encoders like SV2TTS’s were trained separately to tell speakers apart and then frozen. MiniMax trains its encoder together with the speech model, so it learns whatever about a voice actually helps the speech come out right. The paper claims the top spot on the public TTS Arena. Its newer Speech 2.8 clones from a 10-second sample, and Speech 2.6 claims under 250 ms end to end.

Sarvam, the Indian lab, publishes blog posts and docs rather than papers. I found no arXiv paper of its own. Bulbul V3 (February 2026) is “built on an LLM” that plans rhythm and stress, with 35+ voices in 11 Indian languages, and in a blind test Sarvam reports it was the top performer on 8 kHz phone audio, the quality a phone line carries. Bulbul V4 Flash (October 2026) gets first audio under 250 ms, and Saaras V4 transcribes 22 languages and keeps English words in English inside Hinglish. Cloning is “consent-based” and enterprise only.

Why Some Models Are Tiny

If the big models need billions of parameters, how does Kokoro, with 82 million, sit near the top of Artificial Analysis’s open-weights leaderboard? By giving up the Voice Map. Kokoro was trained on “a few hundred hours of audio”, ships a fixed set of 54 voices in 8 languages, and does not clone. Its design comes from StyleTTS 2, which learns a compact “style” for delivery and uses a large speech model only as a judge during training. The judge is thrown away afterwards, so its size costs nothing at run time.

Smaller still, KittenTTS 2 has a 7-million-parameter version of 4 MB, and Piper runs on a Raspberry Pi. In between, Kyutai’s Pocket TTS (100M) and NeuTTS Air (0.5B) do clone, the second from as little as 3 seconds. Pocket TTS runs about six times faster than real time on a MacBook Air’s CPU.

Parameters, log scale

From 7 million to 35 billion

KittenTTS 2 Picofixed voices, 4 MB7M
Kokorofixed voices82M
Pocket TTSKyutai, clones100M
NeuTTS Airclones from 3 s0.5B
OpenAudio S1Fish, clones4B
Moshilistens and talks7B
Fish Drama 33B used per token35B
clones a new voicefixed voices

Kokoro, 2025

few hundredhours

of training audio, against 10 million for Fish S2. Small data, small model, a fixed set of voices.

Running cost

<$1/M chars

What Kokoro costs on hosted APIs, its card says. Drama 3 lists at $50 per million bytes.

What small gives up

No Voice Map. A model that has heard a few hundred hours from a handful of speakers has no map to place a stranger on. It also has less room for laughter, whispers and 80 languages.

Sizes on a log scale: each step right is ten times bigger. The small models that sound great mostly speak in a fixed set of voices. Cloning anyone, many languages and acting on direction cost size.

The trade is consistent, though I have not seen a lab state it as a rule, so treat this as my summary. A few voices done well need little data and few parameters. Any voice, many languages and acting on direction need a big Voice Map, and that needs a big model. Small models also get help from their siblings: OpenAudio’s S1-mini (0.5B) is distilled from the 4B S1, meaning it was trained to copy the big model’s output.

The Conversation Clock

Now give the voice a brain. People are fast at trading turns. Across ten languages, the average gap between one person stopping and the next starting is 208 ms. Planning even a short reply takes 600 ms or more, so people manage it by predicting the end of your sentence and starting their answer while you are still talking. That is the Conversation Clock.

Agents mostly cannot do that yet. Practitioners work to looser targets: Manthan Gupta’s primer treats 500 to 800 ms as natural and says past about 1.5 seconds a call feels broken, and the Illustrated Primer calls 800 ms voice to voice a good target. I build agent harnesses for a living, and voice is where the plumbing matters more than the model.

Most voice agents in production are the Relay:

How most voice agents work

The Relay

youaudiotexttextaudioListenspeech to text150–400 msThinklanguage model300–800 msSpeaktext to speech100–300 msyou hearEach runner waits for the baton. Run one after another, the costs add up.
youaudiotexttextaudioListenspeech to text150–400 msThinklanguage model300–800 msSpeaktext to speech100–300 msyou hear
The Relay. Three models pass one baton: sound becomes words, words become a reply, the reply becomes sound. Ranges are the one-at-a-time figures from Manthan Gupta’s primer.

Run the three one after another and the costs add. The fix is to stop waiting. Speech to text streams partial words while you talk. The language model’s first sentence goes to text to speech the moment it ends, not after the whole reply. Text to speech plays its first chunk while it writes the rest. Here is one turn, both ways, with the same models.

Same models, two plumbing choices

Where the 2.6 seconds go

Mic and network incapture, encode, buffer110 ms
Decide you are done0.8 s of silence800 ms
Final transcriptstreaming speech to text50 ms
Language modelthe whole reply1,450 ms
First audiostarts after the reply120 ms
Network out, playencode, buffer, speaker90 ms
00.5s1s1.5s2s2.5s
Time until you hear the first word. Past about 1.5 s a call starts to feel broken.2.62s

The trick that saves the most

Speak the first sentence first

// Feed the reply to TTS a phrase
// at a time, not all at the end.
const END = /^(.+?[.!?,])\s/;

async function speak(
  tokens: AsyncIterable<string>,
  say: (text: string) => void,
) {
  let buf = '';
  for await (const t of tokens) {
    buf += t;
    const m = buf.match(END);
    if (m) {
      say(m[1]); // first audio, early
      buf = buf.slice(m[0].length);
    }
  }
  if (buf.trim()) say(buf);
}

Human conversation

208ms

The average gap between one person stopping and the next starting, across 10 languages. We start planning our reply before you finish.

The Conversation Clock, one turn. From the moment you stop talking to the first sound you hear. My arithmetic, with stage figures from Manthan Gupta’s primer and the Illustrated Primer, cited in the text. Same models in both.

Two changes took the wait from 2.6 seconds to 1.2, and neither made anything compute faster. A side effect worth using: the first sentence of every reply is now your latency, so a prompt that makes the model open with a short clause buys speed for free.

Watch the slow turns, not the average. The Illustrated Primer’s tables show hosted models with median first tokens around 540 to 740 ms but one turn in twenty taking 1.1 to 1.8 seconds, and Manthan’s memory post estimates 40 to 60 turns in a ten-minute call. That is two or three bad turns every call. Distance counts too: the same primer measured about 140 ms for a round trip from the UK to a US west coast region against 15 ms to London, and the Relay makes several hops per turn. Put the agent near the caller and the models near the agent.

Whose Turn Is It?

Chat has a send button. Voice has pauses, “um”, breaths and people who think out loud. Something has to decide that you are done, and the simplest rule is a silence timer. LiveKit’s default is 0.5 seconds, and OpenAI’s server VAD example uses the same. There is no good value. Short, and the agent jumps in whenever you pause to think. Long, and every turn pays the full timer as dead air.

The hardest 300 ms

Is the caller finished?

The caller“I’d like to move my appointment to…”“…Friday.”thinking, 0.7 sA · Silence timer, 0.5 sagent cuts in mid-sentenceB · A turn model listens to the wordswaitunfinished, so it waits: reply starts
The caller“Move it to…”“…Friday.”0.7 sA · Silence timercuts inB · Turn modelwaitreply starts
Two ways to decide you are done. A silence timer cannot tell a thinking pause from an ending, so it cuts in. A turn model hears that 'to…' is not a finished thought and waits for 'Friday'.

The fix is to listen to what was said, not only whether sound stopped. LiveKit’s turn detector reads the audio and the words, Pipecat’s Smart Turn does the same and its docs now let it make the call after only 0.2 s of silence, and OpenAI offers a semantic VAD with an eagerness setting. Deepgram Flux goes one step further, the closest a pipeline gets to how people do it: it can tell you early that the turn is probably ending so you can start the language model, and tell you to throw that draft away if the person keeps talking.

Interruptions are the other half. People cut in, and an agent that talks over them sounds like a recording. Stopping the sound is the easy part. The hard part is that the reply was generated well ahead of the speaker.

What the model remembers

Cut the history to what was heard

agent, as writtenYour order shipped Monday and should arrive Thursday. Want tracking by text?

caller, talking over itWait, which address?

The underline is the speaker. Everything after it was generated, queued and never played. Leave it in the history and the agent later says “as I mentioned, Thursday”.

In code

Four steps, in order

// The caller talked over the agent.
function onBargeIn(s: Session) {
  s.player.stop();   // 1. go quiet now
  s.llm.cancel();    // 2. stop writing
  s.tts.cancel();
  s.queue.clear();   // 3. drop unplayed
  // 4. keep only what was heard
  const ms = s.player.playedMs();
  const turn = s.history.at(-1)!;
  turn.text = heardText(turn, ms);
}

Not every sound is a stop

  1. “Mm-hmm”, “right”: keep going.
  2. A cough, a door, the TV: ignore it.
  3. “Wait, actually”: stop now.
  4. Your own voice from the speaker: echo cancellation, or the agent interrupts itself.
A barge-in. The reply was written well ahead of the speaker, so stopping the sound is not enough. The stored reply must be cut back to the words the caller actually heard, or the agent will later “remember” saying things it never said.

OpenAI’s Realtime docs show why transport matters here: over WebRTC the server tracks what was played and truncates for you, while over a WebSocket your client has to stop playback, work out how many milliseconds were heard, and send that number back. The Illustrated Primer is blunt that browsers and apps should send audio over WebRTC, not WebSockets, for exactly this kind of reason.

Quick check: the Conversation Clock

Tap an answer to check it

0/3

Question 1

In the "wait for each" budget, where did most of the 2.6 seconds go?

Not quite. 800 ms of the timer and 1,450 ms of a complete reply. Streaming and a turn model removed the waiting, not any computing, and the total fell to about 1.2 seconds.

Question 2

A caller says "Move it to…" and pauses to think. What does a 0.5 s silence timer do?

Not quite. Silence alone cannot tell a thinking pause from an ending. A turn model reads the words, sees "to…" is unfinished, and waits.

Question 3

The caller interrupts and the agent stops talking. What else must change?

Not quite. The reply was written well ahead of the speaker. Leave the unplayed half in the history and the agent will later "remember" saying it.

One Model, or the Relay?

The obvious question: why not one model that hears audio and speaks audio, with no batons at all? OpenAI made the case in May 2024. ChatGPT’s old voice mode was “a pipeline of three separate models” averaging 5.4 seconds per reply on GPT-4, and the main model “loses a lot of information”: it cannot hear tone, laughter or two people talking. GPT-4o did it in one model, answering in “an average of 320 milliseconds”.

That became a product. The Realtime API (October 2024) and gpt-realtime (August 2025) added phone calls and tools, and GPT-Realtime-2 (May 2026) can reason mid-call. Google’s native audio models respond to your tone of voice and are trained to ignore background talk, and Gemini 3.8 Live (September 2026) charges $0.005 a minute for audio in and $0.018 out. Alibaba’s Qwen3-Omni reports a theoretical first packet in 234 ms.

Kyutai went further with Moshi (September 2024), the “first real-time full-duplex spoken large language model”. It listens and talks at the same time, modelling your audio and its own as two streams, plus a running text of its own words it calls an “inner monologue”. It runs on Kyutai’s Mimi codec, a Sound Alphabet of 12.5 frames a second, and gets 200 ms in practice. Sesame’s CSM (February 2025) uses the same codec, trained on about a million hours, and aims for what it calls “voice presence”. Sesame is honest about the gap: the model can only model the content of a conversation, “not the structure of the conversation itself”.

Three designs

The Relay

Speechto text“move it to Fri”Languagemodel“Done, Friday.”Textto speechplain text between every runnerYou can read, log, redact or rewrite every hand-off. Tone of voice is lost at the first one.
Speech to text“move it to Friday”Language model“Done, Friday at 3.”Text to speechText in the middle: log it, check it, edit it.

Most phone agents in production. Easiest to debug and to swap parts. Loses tone at the first hand-off.

Before GPT-4o, May 2024

5.4s

Average reply time of ChatGPT’s old voice mode on GPT-4, a relay of three separate models.

GPT-4o, one model

320ms

Average reply time once one model heard and spoke the audio itself. As fast as 232 ms.

Moshi, full duplex

200ms

Latency in practice, 160 ms in theory: one 80 ms codec frame plus 80 ms of delay.

Three ways to wire a voice agent. The Relay passes text between three models. A speech-to-speech model hears and speaks audio directly. A full-duplex model also listens while it talks.

So is the Relay dead? Not yet, and the reasons are boring and real. Text between the stages is where you log, redact, check a tool call and write tests. The Illustrated Primer’s authors found hosted speech-to-speech models slower in practice than a well-tuned Relay and less reliable at following instructions and calling tools, and put their cost at three to five times a text cascade. Audio is also expensive context: Manthan’s memory post cites roughly ten times the tokens of the same sentence as text.

Kyutai itself shows the middle path. Unmute wraps any text model in Kyutai’s streaming speech-to-text and text-to-speech, built on a method it calls delayed streams, where speech starts “as soon as the first few words” of text arrive. My view: if the agent must follow policy, call tools and be audited (support, bookings, anything on a phone line), use the Relay and make it fast. If the feel of the conversation is the product (a companion, a language tutor), one model is worth the trade.

Memory and Tools, Off the Clock

Chat habits hurt here. In chat, a message arrives, you embed it, search a vector store, rerank and build the prompt. Manthan’s memory post starts with him porting that to voice and watching every turn slow by several hundred milliseconds. Memory gets about 50 to 100 ms of the Conversation Clock, and only one kind of read fits.

Milliseconds the caller waits

What fits inside one turn

Read from memoryin-process or local Redis1–5
Reach a vector DBone round trip, no search yet20–80
Embed, search, rankthe chat-app habit80–200
Summarise with an LLMat turn time300–800

the 50 to 100 ms that memory gets in a turn

Before the call

Prefetch. While the line connects, load the profile and the last call’s summary into memory. Turn one reads a dictionary.

During the call

Search in the background and stage results for the next turn. Write after speaking, never before.

A tool call

1,450ms

Before your function even starts: first token plus writing the call. So say “let me check”, and never claim success early.

Memory and tools, off the Conversation Clock. Only the first read fits inside the 50 to 100 ms memory gets per turn, so everything else moves to a moment when nobody is waiting. Figures from Manthan Gupta’s memory post and the Illustrated Primer.

Tools have the same problem, louder. A tool call needs the model to write the call, your backend to run it, and a second pass to speak the answer, and the first pass cannot be streamed to the caller because it is not speech. The Illustrated Primer works an example: 450 ms to the first token plus 100 tokens of call at 100 a second is about 1,450 ms before your function has started. You cannot make that fast, so make it sound alive. Say “let me check”, and as Manthan’s evaluation post insists, never say “done” before the tool returns.

Ten Seconds Is Also the Problem

Here is the strongest case against everything above being good news. If the Voice Map lets a model clone anyone from a few seconds, anyone with a few seconds of you can make you say anything. That is not hypothetical, and the labs that built the strongest early systems said so.

Microsoft’s VALL-E 2 page says it is “purely a research project”, with no plans to expand access, and names the risk of spoofing voice identification. Meta did not release Voicebox “because of the potential risks of misuse”. OpenAI previewed Voice Engine, which needed a single 15-second sample, and chose not to release it widely, and recommended banks phase out voice-based authentication.

The products that did ship use a mix of rules and checks. ElevenLabs lets you make a professional clone only of your own voice, verified by reading lines aloud, and blocks prominent public figures. Fish’s Drama 3 licence “bans cloning a real person’s voice without their consent”. Resemble’s Chatterbox stamps an inaudible watermark that survives MP3 compression, and Meta’s AudioSeal can find a watermark down to the sample. None of this stops a determined person with an open model. It does mean that the honest answer to “how is cloning so easy?” comes with a second question: who said yes?

If You Are Building One

  1. Start with the Relay on a framework. Pipecat or LiveKit Agents give you transport, voice activity detection, interruptions and history truncation. Do not write those first.
  2. WebRTC to the client, WebSockets only between servers.
  3. Trace every turn from the end of the caller’s speech to the first audio, at P50, P95 and P99, with one span per stage.
  4. Stream at every boundary and feed the reply to speech a sentence at a time.
  5. Replace the bare silence timer with a turn model, and keep a timeout as a backstop.
  6. Test barge-in by hand. Interrupt mid-sentence, then ask about the part you cut off.
  7. Write the prompt for the ear: short sentences, no markdown, two to four sentences a reply.
  8. Listen to real calls every week. Manthan’s evaluation post has the failure every builder meets: a call that passes every transcript check, then the recording shows the agent talked over the caller and left three seconds of dead air.

Under the Hood

For readers who want the mechanics. Skip it and you lose nothing from the argument.

Why two transformers in Fish’s Dual-AR. Each frame of the Sound Alphabet has several codebook rows. One big model writing every row of every frame in a single line would make sequences many times longer. VALL-E split the work between an autoregressive model for the first row and a parallel one for the rest. Fish’s slow transformer takes one step per frame, and a small fast one, four layers in S2, writes that frame’s rows. Drama 3 replaces the fast one with a new decoder for each frame’s ten rows.

Drama 3’s backbone is a hybrid. According to Fish’s technical report, its 40 layers come in blocks of three linear-attention layers and one full attention layer: cheap running summaries most of the time, a full look every fourth layer. It is the same 3 to 1 ratio my attention explainer describes in Kimi Linear and Qwen3-Next, now in a speech model, for the same reason. Long scenes are long sequences, and full attention gets expensive.

Speaker encoder or prompt? There are two ways to tell a model whose voice to use. A prompt (VALL-E, Fish S2) puts the clip’s tokens in context, which captures accent and style but needs the clip’s transcript so the model knows which sounds are which words. Fish’s one-shot API asks for the exact transcript for this reason. An encoder (SV2TTS, MiniMax) squeezes the clip into a fixed-size vector, so it needs no transcript and any clip length works. MiniMax’s paper supports both, calling them zero-shot and one-shot.

Delayed streams. Kyutai’s DSM paper runs text and audio as two aligned streams and shifts one against the other. Put text after audio and the model transcribes as it listens. Put audio after text and it speaks as text arrives, about 1.28 seconds behind in their TTS. One architecture covers both ends of the Relay, which is how Unmute streams both directions.

Check Yourself

Six questions across the whole piece. Get five and you could explain it to a friend.

The whole road

Tap an answer to check it

0/6

Question 1

In a codec’s residual quantisation, what does the second codebook store?

Not quite. Codebook 1 is a rough sketch, codebook 2 corrects it, codebook 3 corrects what is still off. More rows, finer detail.

Question 2

Kokoro has 82 million parameters and sounds great. Why can’t it clone your voice?

Not quite. Cloning from a few seconds depends on having heard a huge range of voices. Small models spend their budget on a few voices done well.

Question 3

You are building a support line that must follow policy, call tools and be audited later. Which design fits best?

Not quite. The Relay puts plain text between every stage, where you can log it, check tool calls, redact and test. You give up tone of voice for control.

Question 4

What does full duplex let Moshi do that a relay cannot?

Not quite. Moshi models your audio and its own as two streams that run every 80 ms. Nobody hands over a baton, so overlap is normal.

Question 5

Fish Audio Drama 3 has 35 billion parameters but starts speaking in under 100 ms. How?

Not quite. A router picks 8 of 256 experts per token, plus a shared one. Most of the model sits idle for any given step, which keeps it fast.

Question 6

Why did Microsoft and Meta keep VALL-E 2 and Voicebox to themselves?

Not quite. Both labs said so in plain words. The same few seconds that make cloning useful make it dangerous, which is why the products that did ship added consent checks and watermarks.

A 3.9-second clip works because the model spent millions of hours learning what people sound like before it ever heard you. The same move, learn the general thing once and cheaply locate the specific one, runs through all of this: a Sound Alphabet shared with text models, a Voice Map shared by every speaker, and a Relay tuned so the Conversation Clock never runs out.

Next time a support line answers in a warm, quick voice, ask yourself two questions. How many batons did that reply pass through? And whose voice was it, first?

Sources and Further Reading

  • Before neural TTS: DeepMind’s WaveNet post on concatenative and parametric synthesis; Zen et al., HMM-based speech synthesis (HTS), 2009.
  • Neural TTS: WaveNet (2016) and its Assistant launch, Parallel WaveNet, Tacotron, Tacotron 2 (training data), FastSpeech, WaveGlow, HiFi-GAN.
  • Speaker embeddings: SV2TTS (2018) and the open-source Real-Time-Voice-Cloning.
  • Codecs and codec language models: SoundStream, EnCodec (repo), AudioLM (blog), VALL-E (HTML), VALL-E 2 (project page), Mimi.
  • Flow matching: Voicebox (blog), E2 TTS, F5-TTS, CosyVoice, CosyVoice 3.
  • Fish Audio: Fish-Speech paper, OpenAudio S1, S2 report, Drama 3 launch post, technical report and model card, pricing, cloning guide.
  • MiniMax: MiniMax-Speech paper, Speech 2.6, Speech 2.8, voice clone docs.
  • ElevenLabs: voice cloning docs, models, No-Go Voices.
  • Sarvam: Bulbul V3, Bulbul V4 Flash, Saaras V4, Sarvam Audio, voice cloning docs.
  • Small models: Kokoro-82M, StyleTTS 2, KittenTTS, Piper, Pocket TTS, NeuTTS Air, Artificial Analysis open-weights TTS leaderboard.
  • Speech to speech: Hello GPT-4o, Realtime API, gpt-realtime, GPT-Realtime-2, Gemini native audio, Gemini 3.8 Live, Qwen3-Omni, Moshi (repo), Sesame and CSM-1B, Kyutai DSM, TTS and Unmute.
  • Turn-taking research: Stivers et al. (2009), Universals and cultural variation in turn-taking; Levinson and Torreira (2015), Timing in turn-taking.
  • Building agents: Manthan Gupta’s primer, memory and evaluation posts; Voice AI and Voice Agents: An Illustrated Primer; docs from LiveKit (turn detector), OpenAI Realtime (VAD), Pipecat and Deepgram Flux.
  • Consent and safety: OpenAI, Navigating the challenges of synthetic voices; AudioSeal; Chatterbox.