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.
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.
- The user speaks and audio is captured.
- Audio streams to the model over WebRTC.
- The model processes audio tokens.
- The model emits audio tokens.
- 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
| Need | Better fit |
|---|---|
| Natural, interruptible conversation (companions, support agents) | Native real-time voice API |
| Precise transcripts for documentation | Cascaded pipeline |
| Control over each stage, or a different model per stage | Cascaded 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.
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.
- Check server CPU and memory at peak hours.
- Log average response time for voice requests.
- Monitor the queue length of incoming voice requests.