10 minute read

“Removing the Text Bottleneck: The Omni Future.”

TL;DR

Speech-to-Speech (S2S) models eliminate the cascade latency of STT-LLM-TTS pipelines by processing audio tokens natively through a single transformer, bringing response times close to human turn-taking while preserving emotion and prosody. GPT-4o (2024) made this mainstream, and its gpt-realtime successors and Google’s Gemini Live models compete in this space. Open options include Moshi (full-duplex speech-to-speech) and Ultravox (speech in, text out, so it still needs a TTS). The core enabler is audio tokenization via neural codecs like EnCodec, which convert audio into discrete integers that transformers process identically to text. Trade-offs include higher cost per minute, harder safety filtering, and reduced output control, which makes hybrid voice architectures the practical choice for production systems that need both natural conversation and precise data reading.

Two parallel signal processing paths, one through three converters in series, one through a single direct processor

1. Introduction: The Cascade Problem

Standard voice agents use a Cascade Architecture: Audio -> STT -> Text -> LLM -> Text -> TTS -> Audio.

This works, it powers Siri, Alexa, and most enterprise bots, but it has two fatal flaws that prevent true “Human-Level” interaction:

1.1 The Latency Stackup

  • STT Processing: 300ms
  • LLM Time-To-First-Token: 400ms
  • TTS Generation: 300ms
  • Network RTT: 100ms
  • Total: about 1.1 seconds with these typical numbers. Streaming overlaps part of this, but the floor is hard to break because each system must wait for some meaningful input before it starts. The LLM cannot predict the sentiment of the sentence until the STT finishes the sentence.

1.2 Information Loss (The Emotional Flatness)

Text is a “Lossy Compression” of speech. By converting audio to text, we strip away:

  • Prosody: The rhythm and intonation.
  • Emotion: Sarcasm, Anger, Excitement, Uncertainty.
  • Non-Verbal Cues: Breaths, laughter, hesitation (“Umm…”).

Example:

  • User (Sarcastic): “Oh, great job. Really amazing.”
  • Text Representation: “Oh, great job. Really amazing.”
  • LLM Brain: Sees positive sentiment words (“Great”, “Amazing”). Replies: “Thanks! I’m glad you liked it.”
  • Reality: The user is angry, and the agent just made it worse.

To fix this, we need Speech-to-Speech (S2S) models. Models that “hear” audio and “speak” audio natively, without ever converting to text in the middle.


2. Anatomy of S2S Models: How do they work?

How can a Transformer, which is designed for discrete text tokens (integers), process continuous audio waves?

2.1 Audio Tokenization (The Rosetta Stone)

We use a Neural Audio Codec (like Meta’s EnCodec or Kyutai’s Mimi). These models use Residual Vector Quantization (RVQ).

  1. Encoder: Takes raw audio (24khz). Compresses it into a dense latent space.
  2. Quantizer: Maps the latent vectors to the nearest entry in a fixed “Codebook” (Visualise a dictionary of 1024 or 2048 distinct “Sound Units”). Residual quantization repeats this with several codebooks, each encoding what the previous ones missed.
  3. Result: Audio becomes a sequence of integers: [45, 1029, 33, 500...] just like text is [101, 205, ...].
  4. Rate: Frames per second times codebooks per frame. Mimi runs at 12.5 frames per second with 8 codebooks, so about 100 tokens per second of audio. EnCodec at 24kHz runs at 75 frames per second, with 2 to 32 codebooks depending on bitrate.

2.2 The Omni-Model Training

Once audio is tokenized, it is just “Language” to the Transformer.

  • Input Sequence: [Text Tokens] + [Image Tokens] + [Audio Tokens].
  • Training Objective: “Next Token Prediction”.
  • Output: The model can predict that after the audio tokens for “Hello”, the next audio tokens should be “How are you?”.

GPT-4o (Omni), announced in May 2024, was the first widely available model of this kind: one network across audio, vision, and text. Its successors on OpenAI’s Realtime API (the gpt-realtime family) and Google’s Gemini Live native-audio models follow the same idea.

  • Capability: In OpenAI’s launch demos it laughed, sang, coached a user’s breathing, and changed its tone mid-sentence when interrupted.
  • Latency: OpenAI reported audio responses in as little as 232ms, averaging 320ms, similar to human response time in conversation.

3. The Landscape: GPT-4o, Moshi, Ultravox

3.1 Kyutai Moshi (Open Source S2S)

Kyutai, a French research lab, released Moshi (paper) in 2024 as an open, real-time, full-duplex S2S model.

  • Components: Helium (7B LLM) + Mimi (Audio Codec).
  • Innovation: Multi-stream modeling.
    • Moshi models two audio streams at once, the user’s and its own, so it can listen while it talks.
    • For its own stream it first predicts time-aligned text tokens and then the audio tokens for that speech. Kyutai calls this the “Inner Monologue”.
    • The text stream is a live transcript of what Moshi is saying, which developers can log and inspect while the audio plays.

3.2 Ultravox (The Hybrid)

Ultravox is an open-weights model that extends an open LLM (Llama 3 in early releases, with versions on Mistral and Gemma) with a Whisper-style audio encoder.

  • Approach: Instead of training from scratch (expensive), it uses a “Projector” to map the encoder’s audio embeddings into the LLM’s embedding space.
  • Output: Its released versions take audio in and emit streaming text. You still need a TTS for the reply, so it removes the STT stage but not the TTS stage.
  • Pros: You can self-host it. It keeps the reasoning power of the underlying open LLM.
  • Cons: The reply’s voice and emotion come from your TTS, so you lose part of the expressiveness of a true speech-to-speech model.

4. Engineering S2S Agents: New Paradigms

Working with S2S is fundamentally different from Text Agents.

4.1 Prompting “Sound”

S2S models respond to Audio Prompts.

  • Technique: One-Shot Voice Prompting. Some open models accept a short reference recording in the context and continue in that voice.
    • User: [Reference audio from a consenting speaker] “Speak like this.”
    • Model: [Audio in the reference speaker's style] “Okay, I will.”
    • Hosted APIs usually restrict you to preset voices, partly to prevent cloning real people without consent.
  • Style Instructions: Many models follow plain-language style instructions in the system prompt (“speak softly”, “sound calm and reassuring”).

4.2 Handling Interruptions (Duplex)

In Cascade, interruption is handled by logic (VAD triggers Stop). In S2S, the model hears itself speaking (if echo cancellation fails) and hears the user.

  • The Problem: If the model hears the user saying “Wait”, does it predict silence (stop talking)?
  • Training: Models must be fine-tuned on “Turn-Taking” data where interruptions occur, so they learn to yield the floor naturally.
  • Moshi’s Solution: Because it models its own stream and the user’s together, it learns from conversational data when to fall silent (predicting silence on its own channel) and when to keep going or backchannel.

5. Cost, Safety, and Challenges

5.1 Cost

Processing Audio Tokens is much more expensive than Text Tokens.

  • Density: With a codec like Mimi, 1 second of audio is about 100 tokens. A 10-second utterance in and a 10-second reply out is about 2,000 tokens.
  • Comparison: The text “How are you?” is 3 or 4 tokens. The audio of it (about a second) is around 100 Mimi tokens.
  • Price: Audio tokens are also priced higher. At the time of writing (November 2026), OpenAI lists gpt-realtime-2.1 at $32 per 1M audio input tokens and $64 per 1M audio output tokens, against $4 and $24 for text through the same model. Long sessions resend the growing audio context each turn, so prompt caching (cached audio input is $0.40 per 1M) matters. Using S2S for everything burns money.

5.2 Safety (Audio Injection)

A text model can be filtered using Regex (Stop words). An audio model is harder to filter.

  • Scenario: The user asks the model to “Say ‘I hate you’ in a happy voice.”
  • Scenario: The model produces a sound that sounds like a racial slur but isn’t the exact word in the text transcript.
  • Jailbreaks: “Audio Adversarial Attacks” (statistically noisy audio that sounds like static to humans but forces the model to output harmful content).

For a full threat model of production voice agents, see security for voicebots.

5.3 Control

It is harder to steer. If you want the agent to say exactly “Your balance is $54.20”, an S2S model might say “Roughly fifty bucks”. In banking, this is unacceptable.

  • Solution: Hybrid pipelines. Use S2S for chit-chat, switch to Text-to-Speech for strict data reading.

6. Summary

Speech-to-Speech is the endgame for Voice Agents.

  • Latency approaches human turn-taking (a few hundred milliseconds).
  • Emotion is preserved, enabling true empathy in medical/support agents.
  • Complexity shifts from “Pipeline Engineering” (gluing STT/TTS) to “Model Deployment” (hosting a massive transformer).

For the cascade stack that S2S competes with, see Voice Agent Architecture, voice agent frameworks and VAD.


FAQ

What is a Speech-to-Speech AI agent?

A Speech-to-Speech agent processes audio input and generates audio output natively through a single transformer, without converting to text in the middle. This preserves emotion, prosody, and non-verbal cues and can bring response latency close to human turn-taking (OpenAI reported about 320ms on average for GPT-4o).

Why is the cascade architecture for voice agents slow?

The cascade pipeline (STT to LLM to TTS) stacks latency from each stage. With typical numbers (300ms for STT, 400ms for LLM, 300ms for TTS, plus network overhead) that adds up to about 1.1 seconds. Streaming overlaps part of it, but each stage still waits for some input from the one before.

How does audio tokenization work in S2S models?

Neural audio codecs like Meta EnCodec or Kyutai’s Mimi use Residual Vector Quantization to compress raw audio into discrete integer tokens (Mimi produces about 100 per second of audio), which the transformer processes like text tokens using next-token prediction.

What are the trade-offs of Speech-to-Speech vs cascade voice agents?

S2S models offer lower latency and emotion preservation but cost more (audio tokens are priced several times higher than text tokens and a second of speech needs far more of them), are harder to safety-filter since audio bypasses text checks, and give less precise control over exact phrasing. Hybrid pipelines are the safer choice for strict data-reading tasks.