Voice agents on a single speech-to-speech model hold low-latency spoken conversation without the classic STT, LLM and TTS chain. Examples are the OpenAI Realtime API, Gemini Live, and voice stacks such as Pipecat and LiveKit.

Voice / Realtime API AgentsDiagram with these labels, in reading order: stream audio; send audio tokens; emit audio tokens; detect turn-ends; inform model; User Audio Input; WebRTC/WebSocket; Speech-to-Speech Model; Audio Output to User; Server-side VAD.stream audiosend audio tokensemit audio tokensdetect turn-endsinform modelUser Audio InputWebRTC/WebSocketSpeech-to-Speech ModelAudio Output to UserServer-side VAD
Voice API Agent Data Flow

Streaming audio tokens over WebRTC

Audio flows both ways over WebRTC or WebSocket. The model ingests audio tokens directly and emits audio tokens back, which preserves tone and emotion. Server-side voice activity detection (VAD) decides when the speaker has finished, so the model can manage turns. Barge-in lets the user interrupt without waiting.

Voice agents aim to start a reply well under a second after the user stops speaking, because longer gaps make conversation feel sluggish. Function calling works mid-conversation, so a support agent can pull account information while the user is still talking. Guardrails and transcription can run alongside the conversation for moderation and logging.

  1. The user speaks and audio is captured.
  2. Audio streams to the model over WebRTC.
  3. The model processes audio tokens.
  4. The model emits audio tokens.
  5. Output streams back to the user.

Full-duplex call versus walkie-talkie

The cascaded design is a walkie-talkie. Speech-to-text, the language model and text-to-speech run in sequence, each adding latency, and the text step strips tone and emphasis. A speech-to-speech model works like a full-duplex phone call where both sides talk and listen at once, and it keeps paralinguistic features.

The analogy has a limit. In a pipeline you can optimize each component alone. In one model the parts are coupled, so you gain fluidity and lose the ability to tune or debug a single stage.

Cascaded pipeline or native voice API

NeedBetter fit
Natural, interruptible conversation (companions, support agents)Native real-time voice API
Precise transcripts for documentationCascaded pipeline
Control over each stage, or a different model per stageCascaded pipeline

The cascade is the familiar starting point. Its per-stage delays add up and disrupt dialogue, its text step drops tone, and interruption is harder to handle.

Latency trade-offs Real-time models usually cut latency, but may give up exact transcript accuracy compared with cascaded pipelines.

Example scenario: 200 ms latency spikes

Suppose response time spikes by 200 ms during busy periods (an illustrative figure). Resource contention in the infrastructure under high traffic is one possible cause, as simultaneous sessions compete for processing power.

Voice / Realtime API AgentsDiagram with these labels, in reading order: Latency Spikes Detected; Check Model Inference Time; Check Network Latency; Check Audio Processing; Delay; Optimize Model Parameters; Upgrade Network; Infrastructure; Enhance Audio Processing; Algorithms.Latency Spikes DetectedCheck Model Inference TimeCheck Network LatencyCheck Audio ProcessingDelayOptimize Model ParametersUpgrade NetworkInfrastructureEnhance Audio ProcessingAlgorithms
Debugging Voice API Latency
  • Check server CPU and memory at peak hours.
  • Log average response time for voice requests.
  • Monitor the queue length of incoming voice requests.
The call Scale up server resources or add load balancing, at higher operating cost. Monitor average response time and server load against your latency target.

Back to the knowledge baseRequest an assessment