if I use Free tier of Livekit to create my agent. ...
# ask-ai
a
if I use Free tier of Livekit to create my agent. is there any time limit like 5 minutes, that I can talk to the agent on every session? why does the session closes on 5 minutes?
t
Thanks for reaching out, Nazmul. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The Free tier (Build plan) of LiveKit does not explicitly impose a 5-minute session time limit for agent interactions. However, there are other quotas and limits, such as 50GB data transfer, 5,000 connection minutes, and 60 minutes of transcoding, which might indirectly affect session durations. If your sessions are closing after 5 minutes, it could be due to other factors. Let me know if you'd like assistance investigating this further. Sources: Quotas and limits | LiveKit Docs
a
does deepgram has such limit? my agent is always closing in 5 minutes which has deepgram stt
t
Hey there! I totally understand your concern about the session time limit. Let me help clarify things for you. Deepgram actually doesn't have a strict 5-minute cutoff for speech-to-text like Google does. If your agent is closing after 5 minutes while using Deepgram, we'll want to dig a bit deeper to figure out what might be causing that. I'm here to help you troubleshoot and get to the bottom of this. Would you like to walk me through the details so we can solve this together? Sources: GitHub::livekit::agents | livekit-plugins/livekit-plugins-google/livekit/pl... | Deepgram STT integration guide | LiveKit Docs
a
so then why does deepgram crashes in every 5 minutes even though I was talking and online. this is my last error log:
2025-07-05 20:57:20,370 - livekit - DEBUG - tungstenite::protocol:683:tungstenite::protocol - Replying to close with Frame { header: FrameHeader { is_final: true, rsv1: false, rsv2: false, rsv3: false, opcode: Control(Close), mask: None }, payload: [3, 232] } 2025-07-05 20:57:20,371 - livekit - WARNING - livekit::rtc_engine:450:livekit::rtc_engine - received session close: "signal client closed: \"stream closed\"" UnknownReason Resume 2025-07-05 20:57:20,371 - livekit - WARNING - livekit::rtc_engine:450:livekit::rtc_engine - received session close: "signal client closed: \"stream closed\"" UnknownReason Resume 2025-07-05 20:57:20,371 - WARNING livekit - livekit::rtc_engine:450:livekit::rtc_engine - received session close: "signal client closed: \"stream closed\"" UnknownReason Resume {"pid": 139733, "job_id": "AJ_GiKnKYwWrn2F"} 2025-07-05 20:57:20,377 - livekit.plugins.deepgram - ERROR - Error in send_task Traceback (most recent call last): File "/home/nazmul/miniconda3/envs/livekitenv/lib/python3.11/site-packages/livekit/agents/utils/log.py", line 16, in async_fn_logs return await fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nazmul/miniconda3/envs/livekitenv/lib/python3.11/site-packages/livekit/plugins/deepgram/stt.py", line 520, in send_task await ws.send_bytes(frame.data.tobytes()) File "/home/nazmul/miniconda3/envs/livekitenv/lib/python3.11/site-packages/aiohttp/client_ws.py", line 252, in send_bytes await self._writer.send_frame(data, WSMsgType.BINARY, compress=compress) File "/home/nazmul/miniconda3/envs/livekitenv/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 125, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport 2025-07-05 20:57:20,377 - livekit.plugins.deepgram - ERROR - Error in send_task Traceback (most recent call last): File "/home/nazmul/miniconda3/envs/livekitenv/lib/python3.11/site-packages/livekit/agents/utils/log.py", line 16, in async_fn_logs return await fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nazmul/miniconda3/envs/livekitenv/lib/python3.11/site-packages/livekit/plugins/deepgram/stt.py", line 520, in send_task await ws.send_bytes(frame.data.tobytes()) File "/home/nazmul/miniconda3/envs/livekitenv/lib/python3.11/site-packages/aiohttp/client_ws.py", line 252, in send_bytes await self._writer.send_frame(data, WSMsgType.BINARY, compress=compress) File "/home/nazmul/miniconda3/envs/livekitenv/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 125, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport 2025-07-05 20:57:20,377 - ERROR livekit.plugins.deepgram - Error in send_task Traceback (most recent call last): File "/home/nazmul/miniconda3/envs/livekitenv/lib/python3.11/site-packages/livekit/agents/utils/log.py", line 16, in async_fn_logs return await fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nazmul/miniconda3/envs/livekitenv/lib/python3.11/site-packages/livekit/plugins/deepgram/stt.py", line 520, in send_task await ws.send_bytes(frame.data.tobytes()) File "/home/nazmul/miniconda3/envs/livekitenv/lib/python3.11/site-packages/aiohttp/client_ws.py", line 252, in send_bytes await self._writer.send_frame(data, WSMsgType.BINARY, compress=compress) File "/home/nazmul/miniconda3/envs/livekitenv/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 125, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport {"pid": 139733, "job_id": "AJ_GiKnKYwWrn2F"} 2025-07-05 20:57:20,392 - livekit.agents - ERROR - AgentSession is closing due to unrecoverable error Traceback (most recent call last): File "/home/nazmul/miniconda3/envs/livekitenv/lib/python3.11/site-packages/livekit/agents/stt/stt.py", line 246, in _main_task return await self._run() ^^^^^^^^^^^^^^^^^ File "/home/nazmul/miniconda3/envs/livekitenv/lib/python3.11/site-packages/livekit/plugins/deepgram/stt.py", line 587, in _run await tasks_group aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport 2025-07-05 20:57:20,392 - livekit.agents - ERROR - AgentSession is closing due to unrecoverable error Traceback (most recent call last): File "/home/nazmul/miniconda3/envs/livekitenv/lib/python3.11/site-packages/livekit/agents/stt/stt.py", line 246, in _main_task return await self._run() ^^^^^^^^^^^^^^^^^ File "/home/nazmul/miniconda3/envs/livekitenv/lib/python3.11/site-packages/livekit/plugins/deepgram/stt.py", line 587, in _run await tasks_group aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport 2025-07-05 20:57:20,392 - ERROR livekit.agents - AgentSession is closing due to unrecoverable error Traceback (most recent call last): File "/home/nazmul/miniconda3/envs/livekitenv/lib/python3.11/site-packages/livekit/agents/stt/stt.py", line 246, in _main_task return await self._run() ^^^^^^^^^^^^^^^^^ File "/home/nazmul/miniconda3/envs/livekitenv/lib/python3.11/site-packages/livekit/plugins/deepgram/stt.py", line 587, in _run await tasks_group aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport {"pid": 139733, "job_id": "AJ_GiKnKYwWrn2F"}
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!