damp-afternoon-98427
04/23/2026, 3:32 AMtall-airline-16756
04/23/2026, 3:32 AMtall-airline-16756
04/23/2026, 3:33 AMtall-airline-16756
04/24/2026, 1:05 AM/v1/stt (Content-Length: 495 JSON body). This indicates the gateway is rejecting the connection due to throttling/concurrency limits rather than a protocol bug in your client.
• On the Build plan LiveKit enforces inference concurrency limits (Build provides 5 concurrent inference connections). Opening STT and TTS WebSockets simultaneously during AgentSession startup can count as concurrent/burst connections and trigger 429s.
Immediate mitigations you can try
• Stagger the connections so STT and TTS don’t open at the same time (lazy-init one after the other). This avoids the burst that triggers the 429. I can provide a short code snippet to do this in your agent if you want.
• Create the AgentSession with only the inference clients you need immediately, then connect the others after startup succeeds.
Longer-term options
• Request a higher inference concurrency limit from the dashboard for your account so the gateway allows more concurrent model connections and reduces 429s from burst opens.
Information I can use to help further
• Paste the 495-byte JSON response body (it likely explains the throttle reason).
• Confirm whether this 429 happens every first-run attempt even on a fresh account, and whether it reproduces if you only enable one of STT/TTS.
Which would you like next — a brief code pattern to lazily initialize TTS after STT connects, or help interpreting the 429 JSON body?
, with interactive elements