by Kondasamy Jayaraman

Module 17 · Voice

Advanced Tool calling & MCP, Multimodal models recommended · by Kondasamy Jayaraman

How does an assistant hold a phone call?

Put Larkspur’s assistant on the phone. Here you follow a call through its three stages, time the wait, decide when a caller has finished, let them interrupt, catch a misheard order number, and tune the line over five calls. Every clip has a play button and its words: the sound is optional.

Read as
...

The whole idea in one example

The same caller, two silence settings

Silence 300 ms recorded transcript

cut off

The line heard: “I need to change the delivery address on my order.”

Of course. Which order is it?

The turn ended at Ravi’s first pause; the assistant asks for the order number he was about to give.

Silence 800 ms recorded transcript

heard whole

The line heard: “I need to change the delivery address on my order. It’s order 1051. Can it go to our new site on Mill Road?”

Order ten fifty-one has already left us. I've asked the carrier to take it to Mill Road instead.

The whole request was heard: order, change and address, so the assistant can act on it.

Ravi said: “I need to change the delivery address on my order. It's order ten fifty-one. Can it go to our new site on Mill Road?” The turn detector ran over his clip’s audio when this page was built; the transcripts and replies were written for this site and the voices generated once, ahead of time. The waits use Larkspur’s illustrative stage times, not any provider’s.

How it works

Six ideas carry the module

  1. ...

    1 Three stages

    Speech-to-text, the model, text-to-speech, each handing on its work

    OpenAI suggests the chained path (speech-to-text, a text agent, text-to-speech) when each stage needs to be visible or replaceable: you can store the transcript and run policy checks before the agent responds.

    Source, checked 21 October 2026

  2. ...

    2 The latency budget

    The stages’ times add up; streaming brings the first word forward

    Stivers and colleagues (2009) timed replies in conversation across 10 languages: in every one, the most common gap before a reply was between 0 and 200 ms, and the mean over all of them was 208 ms.

    Source, checked 21 October 2026

  3. ...

    3 Whose turn is it

    A silence setting ends the turn: too short cuts callers off, too long leaves dead air

    OpenAI’s server VAD takes a threshold (a higher one needs louder audio to count as speech, which can help in noisy places) and silence_duration_ms, how long the silence must last before the turn ends.

    Source, checked 21 October 2026

  4. ...

    4 Being interrupted

    Stop speaking, listen, and keep only what was said

    When Gemini Live detects an interruption, the reply it was generating is cancelled and discarded, and only what was already sent to the client is kept in the session history.

    Source, checked 21 October 2026

  5. ...

    5 Mishearing

    Read an unsure number back before acting on it

    Gemini Live can return text transcriptions of both the audio coming in and the audio going out, alongside the model’s reply.

    Source, checked 21 October 2026

  6. ...

    6 One model or three

    Speech to speech, or a chained line with a transcript to check

    OpenAI describes speech-to-speech as one model that interprets audio, decides what to do and responds in speech, with the session handling audio turns, tools and interruptions.

    Source, checked 21 October 2026

On the workbench’s best line the five calls wait 8.88 s in all, with no caller cut off. A misheard number on a line without read-back: “Hi, can you check on order 2650?”.

The story

Larkspur’s assistant answers the phone

Larkspur Supply Co. puts its assistant on the phone: customers call, speak, pause, talk over it and read out order numbers, and the team has to make the line feel like a conversation. You’re on the team that makes the line feel like a conversation.

Tool calling built the order lookup the assistant uses on every call.

1.79 s
from Ravi’s last word to the first sound, on the tuned line
300 ms
of quiet that ended Ravi’s turn at his first pause
5
calls on the workbench, each run over its own audio
208 ms
the mean gap before a reply in conversation, over 10 languages

Your path

The chapters

  1. Chapter 1

    Larkspur’s phone line

    What happens between a caller speaking and the assistant answering out loud?

  2. Chapter 2

    The latency budget

    Where does the wait go, and how do you bring the first word forward?

  3. Chapter 3

    Whose turn is it?

    How does the line decide the caller has finished?

  4. Chapter 4

    Being interrupted

    What should the line do when the caller talks over the reply?

  5. Chapter 5

    Mishearing

    What do you do when speech-to-text gets a word wrong?

  6. Chapter 6

    One model or three

    When is a chained pipeline the better choice, and when is one speech-to-speech model?

  7. Chapter 7

    Workbench: tune the line

    Which settings serve every call?

Who it’s for

  • Engineers
  • Product managers
  • Analysts
  • No code needed

Product managers, engineers and analysts putting an assistant on a phone line or behind a microphone. Tool calling comes first; no code or maths needed, and no microphone: nothing you do here records you.