Realtime Voice
GitHub 9

01 · reviewed 2026-09-15

What realtime means

Two questions describe the system: what processes the audio, and how listening and speaking overlap. Full-duplex behavior requires simultaneous listening and speaking; a streaming connection alone is insufficient.

Audio paths

Cascade:       audio -> STT -> text LLM -> TTS -> audio
Half-cascade:  audio -> speech model -> text -> TTS -> audio
Native S2S:    audio -> speech model -> audio

Conversation behavior

Turn-based:    user speaks -> response starts -> user can interrupt
Full-duplex:   user audio  =============================>
              model audio <==============================
              listening and speaking can overlap continuously

The half-cascade requires a text response mode. Full-duplex adds simultaneous listening and speaking; it does not specify which API controls you receive. See LiveKit’s pipeline definitions and OpenAI’s Realtime-to-Live comparison.

The question that decides your architecture is who owns the turn. Break that into endpoint detection, response initiation, generation cancellation, playback, and conversation history.

Edit this section in README.md