SIP & WebRTC Latency
LLM First-Token (TTFT) & Clause Chunking into TTS
How clause-level SSE-to-WebSocket piping turns a 1.4 s LLM response into a 180 ms first-audio start.
180 ms LLM TTFT · 8-14 word first clause flush
Never Wait for Complete LLM JSON
Buffering a 60-token LLM reply adds 900-1,500 ms of dead air. Streaming tokens directly into the ElevenLabs WebSocket and flushing on the first clause boundary (comma, period, or 10-word threshold) starts speech synthesis immediately.
Tool-Call Filler Phrases
When the LLM invokes a CRM lookup tool (300-700 ms API round-trip), injecting a short deterministic acknowledgement ("Checking your reservation now") masks backend latency inside natural conversational cadence.
Measured Pipeline Thresholds
| SSE Clause Streaming | 180 ms TTFT | Immediate speech onset on first clause |
| Full-Response Buffering | 1,100+ ms wait | Fails 800 ms turn threshold |
| Async Tool Filler Mask | 0 ms perceived stall | Preserves caller trust during DB lookup |