Skip to content
Visual explainer 2h 30m to learn 5 steps

Chained speech pipelines versus realtime speech-to-speech

Compare a speech-to-text, reasoning and text-to-speech pipeline with realtime speech-to-speech and trace where audio, transcripts, tools and call state live.

By Invicly Tech, , in n8n, AI Automation and Voice Agents. About 7 minutes to read.

Topic 20 of 43

In short

A voice agent can be built as a chain of three steps: speech-to-text, a language model, then text-to-speech. Or it can use a realtime speech-to-speech model that takes audio in and gives audio out directly. The choice changes latency, how much control you have, what you can log and where tool calls run.

Think of it like this: A chained pipeline is a relay team passing a baton. A realtime model is one runner who hears and speaks in the same breath.

Explained simply

A voice agent is a program that talks with people. There are two common ways to build one. The first is a chain: one tool turns speech into text, a language model reads the text and writes a reply, and a third tool turns that reply back into speech.

The second way is called realtime speech-to-speech. You open one session with a model that hears audio and speaks audio. There is no visible text step in the middle, although most providers can also give you a transcript.

Neither is always better. The chain is easy to inspect because you can read the text at every step. The realtime model usually feels faster and handles interruptions more smoothly, but you have less to look at when something goes wrong.

Whichever you pick, think about three things separately: the audio, the transcript and the call state. Call state means facts about this call, like who is calling and what has been agreed. Keep that state on your server, not only inside the model.

Press Play on a diagram to walk through it one step at a time.

FlowChained pipeline
  1. 1
    Caller audio

    Microphone or phone line.

  2. 2
    Speech-to-text

    Produces a transcript.

  3. 3
    Language model

    Reads text, decides, calls tools.

  4. 4
    Text-to-speech

    Turns the reply into audio.

  5. 5
    Caller hears it
ComparePipeline versus realtime
Chained pipeline
  • Text between every step, easy to inspect
  • You can swap each part on its own
  • Adds delay at each hop
  • Strong control over wording
Realtime speech-to-speech
  • Audio in, audio out in one session
  • Usually lower delay and natural turn-taking
  • Less visibility unless you save transcripts
  • Tools are called by the model mid-conversation
SequenceA tool call during a realtime session
Caller
Voice model
Your server
  1. 1Do you have a slot on Tuesday?
    Caller to Voice model: Do you have a slot on Tuesday?
  2. 2Call check_availability with a date
    Voice model to Your server: Call check_availability with a date
  3. 3Check caller, validate, query calendar
    Your server to Your server: Check caller, validate, query calendar
  4. 4Return two free times
    Your server to Voice model: Return two free times
  5. 5Speak the options aloud
    Voice model to Caller: Speak the options aloud

In depth

Where the delay comes from

In a chained pipeline the caller waits for each step in turn: the speech-to-text step must finish a turn, the model must produce text, and the text-to-speech step must make audio. Streaming each step shortens the wait but does not remove it. A realtime model skips the hand-offs, so time to first audio is often lower. The cost is that you give up some control: you cannot easily edit the text between listening and speaking.

  • Chained: delay is added at each hop
  • Realtime: fewer hops, less to inspect
  • Tool calls add their own delay in both designs
  • Measure time to first audio, not only total time

Who owns what

Treat the architecture as three stores. Audio is large and sensitive, so decide if you keep it at all. The transcript is text you can search and redact. Call state is a small record: session ID, verified caller, collected slots and consent. Put call state in your own service so a dropped connection or a model restart does not lose it.

LayersThree stores in a voice call
  1. 1
    Call state

    Small record on your server: session, caller, slots, consent.

  2. 2
    Transcript

    Searchable text, redacted before storage.

  3. 3
    Audio

    Largest and most sensitive; often not kept.

Where tool calls run

The model decides when it needs a tool, such as checking availability. The tool itself should run on your server. That lets you check who the caller is, validate every argument and apply a short timeout. If the browser or the model ran business logic directly, anyone able to change the session could ask for anything. In both architectures the shape is the same: model asks, server checks, server answers.

Learn it in 5 short steps

About 30m each. Track them with a timer in your plan.

  1. 1
    Describe the chained pipeline~30m
  2. 2
    Describe realtime speech-to-speech~30m
  3. 3
    Compare latency, control and cost~30m
  4. 4
    Place audio, transcript and call state~30m
  5. 5
    Decide where tool calls run~30m

Key points

  • Chained pipelines give you text at every step, which is easy to log, test and filter.
  • Realtime models cut delay and handle interruptions more naturally.
  • Audio, transcript and call state are three different things. Decide where each one lives.
  • Tool calls should run on your server, not in the browser or the model, so you can check identity and arguments.

Key terms

Tap a card to flip it. 0/5 known

Examples

Pick an architecture for a small clinic

Fabrikam Dental wants an inbound booking assistant. They must keep a text record of each call for staff review and want to filter wording. They choose a chained pipeline first. Because the transcript sits between each step, staff can read it, and the team can swap the speech-to-text part later. They plan to compare it with a realtime session once the script is stable.

Record the decision

Write the choice down so the team can revisit it. Include what is stored and where tools run.

yaml
architecture: chained
stt: provider-a
llm: provider-b
tts: provider-c
stored:
  audio: no
  transcript: yes, redacted, 30 days
  call_state: yes, our database
tools_run_on: our server
revisit: after pilot

Quick reference

  • Chained: speech-to-text, then model, then text-to-speech.
  • Realtime: one session, audio in, audio out.
  • Chained is easier to inspect and filter.
  • Realtime usually has lower delay and smoother interruptions.
  • Keep call state on your server, not only in the model.
  • Run tools on your server so you can check identity and arguments.

Common mistakes

  • Choosing realtime only because it sounds modern, without checking cost and logging needs.
  • Letting the browser call business tools directly, which skips server-side checks.
  • Keeping call state only inside the model conversation, so a dropped link loses it.

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1Which design gives you plain text between every step?

Question 2

2Why keep call state on your own server?

Question 3

3Where should a booking tool run?

Question 4

4What is the main reason realtime speech-to-speech often feels faster?

0/4 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    List the three stores in a voice call and say how sensitive each one is.

  2. Exercise 2medium

    Draw a chained pipeline for a booking call and mark where delay can be added.

  3. Exercise 3hard

    Write a one-page decision for chained versus realtime for your own use case, including what you store and where tools run.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

Is realtime speech-to-speech always better?
No. It is often faster and smoother, but a chained pipeline gives more control and is easier to inspect. Choose by your needs.
Can a realtime model still give me a transcript?
Usually yes. Providers can send transcripts alongside audio. Check the provider documentation for the exact options.
Do I need to keep the audio?
Often no. A redacted transcript and a call state record are enough, and storing less audio reduces privacy risk.

Go deeper

ShareXLinkedInWhatsApp