clever-bird-18768
10/05/2025, 3:31 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 processtall-airline-16756
10/05/2025, 3:31 PMtall-airline-16756
10/05/2025, 3:31 PMclever-bird-18768
10/05/2025, 3:36 PMtall-airline-16756
10/05/2025, 3:36 PMtts_node to create custom behaviors—this could be anything from different ways to chunk text, using custom TTS engines, or applying specialized audio processing.
Regarding the performance issue you're experiencing, it could be related to how quickly the TTS engine responds or how the system handles audio processing. I'd be happy to walk you through some specific optimizations or settings that might help boost performance. Just let me know!
Sources: Building voice agents | LiveKit Docs | ElevenLabs TTS plugin guide | LiveKit Docs | Pipeline nodes and hooks | LiveKit Docs | livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/tts.pyclever-bird-18768
10/05/2025, 3:38 PMtall-airline-16756
10/05/2025, 3:38 PM