clever-bird-18768
10/05/2025, 3:37 PMlivekit-agents (Python)
• Stack: Google STT, OpenAI LLM (gpt-4o-mini), and I've tried both OpenAI TTS and Google TTS.
• Deployment: The agent is running on a GCP instance with 2GB of RAM.
The Problem: The agent works perfectly for the first 4-5 minutes of a call. The conversation is responsive and near real-time. However, right around the 5-minute mark, the agent's performance begins to degrade significantly. Responses become very delayed, and eventually, the agent stops responding altogether.
Key Log Observations: The logs show a clear pattern leading to the failure:
1. At the 5-minute mark, I see this log:
DEBUG - flush audio emitter due to slow audio generation
2. Shortly after , the agent process is terminated by the worker:
WARNING - process is unresponsive
ERROR - process is unresponsive, killing processelegant-glass-77462
10/06/2025, 2:34 AMrefined-appointment-81829
10/06/2025, 3:10 PM