I am running stt on livekit cloud and ran into a e...
# ask-ai
d
I am running stt on livekit cloud and ran into a error and here are the logs -
Copy code
{"message": "process initialized", "level": "INFO", "name": "livekit.agents", "pid": 93, "elapsed_time": 0.33, "timestamp": "2025-09-08T04:35:52.163881+00:00"}
{"message": "process initialized", "level": "INFO", "name": "livekit.agents", "pid": 97, "elapsed_time": 0.32, "timestamp": "2025-09-08T04:35:52.170616+00:00"}
{"message": "registered worker", "level": "INFO", "name": "livekit.agents", "id": "CAW_k9oMXeN3YaTr", "url": "https://voice-agent-101bt5fj.livekit.cloud", "region": "US East B", "protocol": 16, "timestamp": "2025-09-08T04:35:52.221725+00:00"}
{"message": "received job request", "level": "INFO", "name": "livekit.agents", "job_id": "AJ_saoWaoSyu69q", "dispatch_id": "", "room_name": "sbx-2bra0q-i9ZZy2TPe9n2faj4EnixcQ", "agent_name": "", "resuming": false, "timestamp": "2025-09-08T04:35:54.739895+00:00"}
{"message": "initializing process", "level": "INFO", "name": "livekit.agents", "pid": 165, "timestamp": "2025-09-08T04:35:54.839331+00:00"}
{"message": "process initialized", "level": "INFO", "name": "livekit.agents", "pid": 165, "elapsed_time": 0.33, "timestamp": "2025-09-08T04:35:55.167961+00:00"}
{"message": "EOU metrics", "level": "INFO", "name": "livekit.agents", "room": "sbx-2bra0q-i9ZZy2TPe9n2faj4EnixcQ", "end_of_utterance_delay": 0.68, "transcription_delay": 0.42, "pid": 93, "job_id": "AJ_saoWaoSyu69q", "timestamp": "2025-09-08T04:35:57.501018+00:00"}
{"message": "process is unresponsive, killing process", "level": "ERROR", "name": "livekit.agents", "pid": 93, "job_id": "AJ_saoWaoSyu69q", "timestamp": "2025-09-08T04:36:57.167654+00:00"}
{"message": "killing process", "level": "INFO", "name": "livekit.agents", "pid": 93, "job_id": "AJ_saoWaoSyu69q", "timestamp": "2025-09-08T04:36:57.167832+00:00"}
{"message": "draining worker", "level": "INFO", "name": "livekit.agents", "id": "CAW_k9oMXeN3YaTr", "timeout": 1800, "timestamp": "2025-09-08T04:37:27.027928+00:00"}
{"message": "shutting down worker", "level": "INFO", "name": "livekit.agents", "id": "CAW_k9oMXeN3YaTr", "timestamp": "2025-09-08T04:37:27.028308+00:00"}
t
Thanks for reaching out, Harsha. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! That error message, "process is unresponsive, killing process," in your LiveKit STT logs basically means the speech-to-text subprocess stopped responding to regular check-ins. Think of it like the system pinging the process to make sure it’s still awake and working. If it doesn’t get a reply in time, it has to stop the process to keep everything running smoothly. Usually, this happens because: • The STT process is handling too much at once • There’s a long operation going on, like a stuck network request • Or there’s an internal glitch that’s stopping the process from responding To fix this, you might want to look into how busy the STT process is or check if there are any network or internal hiccups causing delays. If you want, I’m here to help you dig deeper or tweak the settings—just let me know! Sources: livekit-plugins/livekit-plugins-sarvam/livekit/plugins/sarvam/stt.py
d
how do i check this?
t
Let’s dig into why the STT process might be unresponsive by going through these steps together: 1. Check Logs: Take a peek at the logs for messages like "process is unresponsive" or "killing process." These clues can tell us what’s going on, such as delays or memory hiccups. 2. Monitor Ping-Pong Health Checks: Make sure the STT process is replying to those regular ping requests. If it’s not, it could mean it’s overloaded or running into some internal errors. 3. Review Memory Usage: Sometimes high memory use can cause things to freeze up. Look out for any warnings or errors about memory limits in the logs. 4. Adjust Supervision Settings: You might want to tweak settings like
pingInterval
,
pingTimeout
, and
memoryLimitMB
so they better fit your workload and environment. 5. Enable Debug Logging: Turning up the logging detail can help capture more info about timing and the process’s state. 6. Inspect STT Plugin Behavior: If you’re using a specific STT plugin like Google or AWS, check their logs or any reconnection events for extra insights. If you’d like, I’m here to help you with any of these steps or explain anything further. Just let me know! Sources: livekit-agents/livekit/agents/ipc/supervised_proc.py | agents/src/voice/audio_recognition.ts
d
where do i enagle debug logs in pythong code
t
Hey there! If you want to enable debug logs in your Python code for LiveKit STT, here’s a simple way to do it: 1. Set up Python logging: Just pop this code at the start of your script to get debug-level messages rolling:
Copy code
import logging

# Enable debug logs for all LiveKit modules
logging.basicConfig(level=logging.DEBUG)

# Or if you prefer, turn on logging for specific parts only, like:
# logging.getLogger("livekit").setLevel(logging.DEBUG)
# logging.getLogger("livekit.plugins.google").setLevel(logging.DEBUG)
2. Use the right logger names: Each module has its own logger named
livekit.plugins.<plugin_name>
. So, for example, use
livekit.plugins.google
for Google STT, or just
livekit
for the main library. 3. Set environment variables (if that applies): To get debug logs from the native layer, you can set the
LIVEKIT_RTC_DEBUG
environment variable like this:
LIVEKIT_RTC_DEBUG=1 python your_script.py
If you hit any bumps or want me to walk you through it, just give me a shout—I’m here to help! Sources: livekit-plugins/livekit-plugins-google/livekit/plugins/google/stt.py | Testing and evaluation | LiveKit Docs | main.py | livekit-rtc/livekit/rtc/_ffi_client.py
d
this is the current code in lk cloud - logger = logging.getLogger("agent")
t
Hey there! Since your current code uses
logger = logging.getLogger("agent")
, you can easily enable debug logs for this specific logger by adding the following snippet to your script:
Copy code
import logging

# Turn on debug logs for the 'agent' logger
logging.getLogger("agent").setLevel(logging.DEBUG)

# You can also set up how the logs look and where they go
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
This way, all debug-level logs from the 'agent' logger will be captured and shown. If you hit any snags or want to chat more about it, just let me know—I’m here to help!