From 74758a3f1335ec114fc6f9396f864f36b71877a7 Mon Sep 17 00:00:00 2001 From: Christian Gick Date: Sat, 21 Feb 2026 17:02:24 +0200 Subject: [PATCH] debug: enable livekit.agents debug logging for STT/VAD diagnosis Co-Authored-By: Claude Opus 4.6 --- voice.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/voice.py b/voice.py index 3b45dc9..7083105 100644 --- a/voice.py +++ b/voice.py @@ -15,6 +15,10 @@ from livekit.plugins import openai as lk_openai, elevenlabs, silero logger = logging.getLogger("matrix-ai-voice") +# Enable debug logging for agents pipeline to diagnose audio issues +logging.getLogger("livekit.agents").setLevel(logging.DEBUG) +logging.getLogger("livekit.plugins").setLevel(logging.DEBUG) + LITELLM_URL = os.environ.get("LITELLM_BASE_URL", "") LITELLM_KEY = os.environ.get("LITELLM_API_KEY", "not-needed") LK_API_KEY = os.environ.get("LIVEKIT_API_KEY", "")