5-07-06 18:15:03,761 - DEBUG livekit.agents - rece...
# ask-ai
b
2025-07-06 181503,761 - DEBUG livekit.agents - received user transcript {"user_transcript": "Testing one two three.", "language": "en-US", "pid": 25048, "job_id": "AJ_BVEuvjtdfRW2"} 2025-07-06 181512,781 - DEBUG livekit.agents - received user transcript {"user_transcript": "Testing.", "language": "en-US", "pid": 25025, "job_id": "AJ_S8RTv4J7atcT"} 2025-07-06 181519,904 - DEBUG livekit.agents - received user transcript {"user_transcript": "Testing one two three.", "language": "en-US", "pid": 25025, "job_id": "AJ_S8RTv4J7atcT"} 2025-07-06 181532,958 - DEBUG livekit.agents - received user transcript {"user_transcript": "Bar barbershop.", "language": "en-US", "pid": 25048, "job_id": "AJ_BVEuvjtdfRW2"} 2025-07-06 181541,791 - WARNING livekit - livekit:rtc engine453livekit:rtc_engine - received session close: "signal client closed: \"stream closed\"" UnknownReason Resume {"pid": 25025, "job_id": "AJ_S8RTv4J7atcT"} 2025-07-06 181541,797 - INFO livekit.agents - process exiting {"reason": "room disconnected", "pid": 25025, "job_id": "AJ_S8RTv4J7atcT"} 2025-07-06 181541,797 - DEBUG livekit.agents - shutting down job task {"reason": "room disconnected", "user_initiated": false, "pid": 25025, "job_id": "AJ_S8RTv4J7atcT"} 2025-07-06 181541,797 - DEBUG livekit.agents - http_session(): closing the httpclient ctx {"pid": 25025, "job_id": "AJ_S8RTv4J7atcT"} 2025-07-06 181541,798 - ERROR livekit.plugins.deepgram - Error in recv_task Traceback (most recent call last): File "/Users/nsandell123/Desktop/modular-instance-b5dtzs/venv/lib/python3.13/site-packages/livekit/agents/utils/log.py", line 16, in async_fn_logs return await fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/nsandell123/Desktop/modular-instance-b5dtzs/venv/lib/python3.13/site-packages/livekit/plugins/deepgram/stt.py", line 546, in recv_task raise APIStatusError(message="deepgram connection closed unexpectedly") livekit.agents._exceptions.APIStatusError: deepgram connection closed unexpectedly (status_code=-1, request_id=None, body=None) {"pid": 25025, "job_id": "AJ_S8RTv4J7atcT"} 2025-07-06 181541,800 - WARNING livekit.agents - failed to recognize speech, retrying in 2.0s Traceback (most recent call last): File "/Users/nsandell123/Desktop/modular-instance-b5dtzs/venv/lib/python3.13/site-packages/livekit/agents/stt/stt.py", line 229, in _main_task return await self._run() ^^^^^^^^^^^^^^^^^ File "/Users/nsandell123/Desktop/modular-instance-b5dtzs/venv/lib/python3.13/site-packages/livekit/plugins/deepgram/stt.py", line 577, in _run task.result() ~~~~~~~~~~~^^ File "/Users/nsandell123/Desktop/modular-instance-b5dtzs/venv/lib/python3.13/site-packages/livekit/agents/utils/log.py", line 16, in async_fn_logs return await fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/nsandell123/Desktop/modular-instance-b5dtzs/venv/lib/python3.13/site-packages/livekit/plugins/deepgram/stt.py", line 546, in recv_task raise APIStatusError(message="deepgram connection closed unexpectedly") livekit.agents._exceptions.APIStatusError: deepgram connection closed unexpectedly (status_code=-1, request_id=None, body=None) {"tts": "livekit.plugins.deepgram.stt.STT", "attempt": 2, "streamed": true, "pid": 25025, "job_id": "AJ_S8RTv4J7atcT"} Can you explain why deepgram randomly messes up despite receiving my transcript earlier
t
Thanks for reaching out, Neel. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The error "deepgram connection closed unexpectedly" occurs when the websocket connection to Deepgram is unexpectedly closed. This can happen due to network instability, API credential issues, or exceeding rate limits. LiveKit is designed to handle this error by automatically attempting to reconnect. To minimize such occurrences, ensure stable network connectivity, verify your Deepgram API credentials, and check that you are not exceeding Deepgram's rate limits or usage quotas. If the issue persists, further investigation into your specific setup may be required. Sources: livekit.plugins.deepgram API documentation | GitHub::livekit::agents | livekit-plugins/livekit-plugins-deepgram/livekit/...
b
ok why doesn't my terminal show LLM response as well and only the transcribed text
t
Hey there! I totally understand you're trying to figure out what's going on with the LiveKit display. Mind telling me a bit more about your specific setup? Are you running any custom scripts or using a special agent mode that might be influencing what shows up in the terminal? The more details you can share, the better we can help pinpoint why you're only seeing transcribed text. I'm here to help you solve this!
b
How can I debug the deepgram connection - it seems to be working fine now
t
Hey there! 👋 Dealing with Deepgram connection hiccups in LiveKit can be frustrating, but don't worry – I've got your back with some friendly troubleshooting tips: • Keep an eye on those logs – they're like breadcrumbs that can help us track down what's going wrong. If you see messages like "deepgram connection closed unexpectedly," jot down the details. • First things first, let's make sure your internet is playing nice. A shaky connection can cause all sorts of communication troubles. • Double-check those Deepgram API credentials. It's like making sure you've got the right key for the right door. • Peek at your usage – sometimes hitting rate limits can cause connection gremlins. Let's make sure you're not accidentally maxing out. • Dial up the logging in your LiveKit setup. Think of it like turning on the lights in a dark room – suddenly, everything becomes clearer! • Try stripping things down to the basics. A minimal setup can help us pinpoint exactly where things might be going sideways. Don't stress – these steps are like a roadmap to smoother connections. You've got this, and if things get tricky, we'll figure it out together! 💪🌟
b
thanks - I think it's shaky internet connection
t
Hey there! I totally get how frustrating internet connection problems can be. No worries—we'll help you smooth things out. A solid, stable network should make those pesky disruptions a thing of the past. If you run into any more hiccups, I'm right here to help. Don't hesitate to give me a shout!