Low-latency game AI voice explained: caching, pregen audio and manual MTP hit ~2s response

karminski3 · x · 2026-10-30

Blogger karminski3 breaks down how to get 2s latency from LLM game teammates: pre-record high-frequency lines ("enemy on the right") instead of calling the model; hash-cache generated TTS audio for reuse; hand-roll MTP by prompting the model to output only {"decision":n} from a candidate list, exploiting fast prefill/slow decode; and use human attention limits as a fallback — give the model a 2s timeout, and have another AI teammate banter to cover a 5s late reply. A depth-5 FIFO queue prevents talking over each other. He also reviews Kimi-K3.1-Pro: best-in-class Chinese front-end/3D skills and stronger agent goal-focus, but weaker back-end agentic coding than K3 due to pessimistic self-imposed timeouts — recommend plan-first workflows.

Original post →

More from coding & agent

coding & agent channel →