Skip to content

Build Natural Conversational Voice Apps With Streaming STT and TTS

Eliminate awkward three-second walkie-talkie pauses—ship fluid, interruptible voice interfaces powered by ElevenLabs, WebRTC, and fast LLMs.

The button copies the prompt and opens Michał Jaskólski’s LinkedIn profile: paste it into your message to him.

Four details that make spoken AI feel naturally human

  1. 01

    Pipeline streaming STT, LLM tokens, and chunked TTS

    Begin synthesizing the first spoken clause as soon as six LLM tokens stream out rather than waiting for the complete paragraph.

  2. 02

    Support instant barge-in interruption without talking over users

    Cut TTS playback within 150ms when client voice activity resumes, flushing unspoken buffer text from conversation history accurately.

  3. 03

    Prompt specifically for spoken cadence, never markdown prose

    Strip bullet lists, URLs, parenthetical asides, and awkward abbreviations; write crisp 1–2 sentence spoken turns with natural numbers.

  4. 04

    Compare speech-to-speech vs cascaded STT-LLM-TTS honestly

    Choose native speech-to-speech when raw speed and prosody dominate, or cascaded ElevenLabs pipelines when strict domain prompt control matters most.

How it works in practice

Walkie-talkie voice wrapper

Wait 1.5s after speech stops -> full batch STT (1.2s) -> full 120-word markdown LLM reply (2.8s) -> full MP3 TTS render (1.9s) = 7.4s awkward silence.

Streaming voice pipeline

WebRTC VAD endpointing (300ms) + streaming STT -> concise spoken-mode LLM streams first clause (320ms) -> ElevenLabs WebSocket audio chunk plays at 880ms total latency.

Sub-second conversational rhythm comes from streaming clause-by-clause across the pipeline and writing prompts meant for ears, not eyes.

Frequently Asked Questions

What end-to-end latency makes a voice AI conversation feel comfortable?

Around 700ms to 1,100ms from end-of-user-speech to first audible reply feels crisp and natural; crossing 2,000ms causes users to repeat ‘Hello?’.

How do you stop TTS engines from mispronouncing numbers, dates, and currencies?

Combine spoken-text normalization rules in prompt instructions with pronunciation dictionaries for brand names, postal codes, and currency symbols.

How do you control per-minute voice inference costs on consumer subscriptions?

Meter active voice minutes separately from unlimited text turns, auto-pause idle open microphones, and cache static greeting/transition audio.