In a conversation, we are sensitive to latency. Usually the turn-taking
latency in a real conversation is below 200ms.
Technology has made STT -> LLM -> TTS better than ever (Whisper for STT,
ElevenLabs etc. for TTS). But the latency is fundament. Each stage has to be
fully completed before the next starts, text is lossy, and it’s half-duplex by
construction.
Then native multimodal models such as GPT-4o came. However, the frontier text
LLM is no longer in the loop.
Real time API needs to handle transportation (via WebSocket, WebRTC), and tool
calling alongside call, truncation, interruption, etc.
Concepts
For a calling like experience, we’re looking at speech-to-speech session API.
Two protocols dominate: OpenAI’s Realtime API and Google’s
Gemini Live API.
Typically, the realtime API invokes tool to consult the powerful, text only
LLM backing it.