agents
agents copied to clipboard
Audio starts to cut out
Bug Description
After running the agent several times, the audio starts to cut out and eventually disappears. I have to restart the container for it to work again, but after a few more tests the same issue comes back. I’ve attached the debug information, but I couldn’t understand what exactly is happening.
Expected Behavior
Agent should be stable, I can't go production with this problem
Reproduction Steps
1.
2.
3.
...
- Sample code snippet, or a GitHub Gist link -
Operating System
linux
Models Used
gpt-realtime
Package Versions
livekit==1.0.13
livekit-agents==1.2.11
livekit-api==1.0.5
Session/Room/Call IDs
No response
Proposed Solution
Additional Context
No response
Screenshots and Recordings
2025-11-24T21:25:29.1156475Z stdout F Agent entered room. Sending initial greeting.
2025-11-24T21:25:29.1156909Z stdout F 2025-11-24 21:25:29,115 - DEBUG livekit.agents - using audio io: RoomIO -> AgentSession -> TranscriptSynchronizer -> RoomIO
2025-11-24T21:25:29.1158058Z stdout F 2025-11-24 21:25:29,115 - DEBUG livekit.agents - using transcript io: AgentSession -> TranscriptSynchronizer -> RoomIO
2025-11-24T21:25:29.5102587Z stdout F 2025-11-24 21:25:29,509 - DEBUG livekit.agents - start reading stream {"participant": "web-02e6f130db564bfd8cc80f5803dab9e9", "source": "SOURCE_MICROPHONE"}
2025-11-24T21:25:34.7849554Z stdout F 2025-11-24 21:25:34,784 - WARNING livekit.agents - Running <Task pending name='Task-33882' coro=<SpeakingRateStream._main_task() running at /usr/local/lib/python3.11/site-packages/livekit/agents/utils/log.py:16> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[SpeakingRateStream.init.