Persistence Blog

How Real-Time Voice AI Actually Works: STT → LLM → TTS, Explained

9 min readJUL 22, 2026

The three components of every voice AI system

Every real-time voice AI agent — no matter which platform builds it — runs on the same three-component pipeline: Speech-to-Text (STT), a Large Language Model (LLM), and Text-to-Speech (TTS). STT converts spoken audio into text. The LLM processes that text and generates a response. TTS converts the text response back into audio. What separates excellent voice AI from broken voice AI is how those three components are wired together, what models power each stage, and how the system handles the gaps between them.

Latency is everything — and most platforms get it wrong

In a real phone conversation, humans tolerate silence of roughly 500ms before they assume the other person has nothing to say. Voice AI systems that take 1.5–3 seconds to respond break conversational flow, cause callers to speak over the agent, and drive abandonment. The total end-to-end latency of a voice AI call is the sum of STT latency + LLM latency + TTS latency + network transit. Platforms like Bland AI and Retell AI advertise "low latency" but rely on multi-hop cloud architectures that add 800ms–2s of overhead before a single word is spoken. Persistence was built differently: our inference pipeline runs with median end-to-end latency under 100ms, using co-located STT and LLM inference rather than chained API calls to third-party providers.

Streaming vs. batch: the most important architectural decision

Most voice AI platforms process speech in chunks: they wait for a complete sentence, send it to the LLM, wait for a complete response, then start TTS. This batch approach is simple to build but introduces mandatory latency at every step. Streaming architectures — where STT tokens feed into the LLM as they arrive, and TTS begins generating audio before the LLM finishes its response — can reduce perceived latency by 60–70%. Persistence uses a fully streaming pipeline end-to-end. The result: our agents begin speaking within 80–120ms of the caller finishing a sentence. No other platform at this price point matches that number.

Turn-taking: the part every demo hides

A clean benchmark doesn't tell you how the system handles a caller who pauses mid-sentence to think, or one who says "uh" and keeps talking, or one who starts talking over the AI. These real-world behaviors require a separate turn-taking model — a component that decides when the human has finished speaking and it's the AI's turn. Get this wrong in either direction and you get an agent that constantly interrupts callers, or one that sits in silence waiting for a sentence that already ended. Persistence's turn-taking model was trained on over 50 million real call recordings, giving it conversational sensitivity that generic voice activity detection (VAD) models simply cannot match.

LLM and TTS model selection matters more than platforms admit

Not all LLMs respond with the same speed. GPT-4o, Claude 3.5 Sonnet, Gemini Flash, and Llama 3.1 all have different latency profiles and reasoning quality curves. Voice AI platforms that route all calls through a single LLM are making a compromise decision on your behalf. Persistence gives you model routing control: you can choose which LLM handles each call type, set fallback models for capacity scenarios, and route high-stakes calls to more powerful models. Similarly for TTS: our platform integrates with ElevenLabs, Cartesia, and Deepgram Aura, letting you select the voice that performs best for your use case — not the one that's easiest for us to integrate.

Why Persistence is architecturally ahead

The voice AI market is full of platforms that assembled a pipeline from off-the-shelf APIs and called it a product. Persistence was built from first principles with latency as the primary design constraint. Our infrastructure runs streaming inference at the edge, eliminates third-party API hops in the critical path, and monitors every call in real time for quality degradation. When we benchmark against Bland AI and Retell AI on identical hardware and call types, Persistence delivers 60–70% lower end-to-end latency and significantly higher transcription accuracy on noisy calls. That's not a feature — it's the architecture.