chore: Remove debug logging and pipecat-poc after E2EE fix confirmed working
- Remove setLevel(DEBUG) for livekit.agents/plugins (added for diagnostics) - Remove periodic E2EE cryptor/participant state poll loop (no longer needed) - Remove pipecat-poc/pipeline.py (POC never deployed, LiveKit approach confirmed) E2EE bidirectional voice confirmed working in MAT-36. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
18
voice.py
18
voice.py
@@ -15,9 +15,6 @@ 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")
|
||||
@@ -371,23 +368,8 @@ class VoiceSession:
|
||||
except asyncio.TimeoutError:
|
||||
logger.error("Greeting timed out")
|
||||
|
||||
# Periodic E2EE state poll to diagnose incoming decryption
|
||||
_poll_count = 0
|
||||
while True:
|
||||
await asyncio.sleep(5)
|
||||
_poll_count += 1
|
||||
if _poll_count % 2 == 0: # Every 10s
|
||||
try:
|
||||
cryptors = self.lk_room.e2ee_manager.frame_cryptors()
|
||||
for c in cryptors:
|
||||
logger.info("E2EE_CRYPTOR: identity=%s key_index=%d enabled=%s",
|
||||
c.participant_identity, c.key_index, c.enabled)
|
||||
except Exception as e:
|
||||
logger.debug("frame_cryptors() failed: %s", e)
|
||||
# Log E2EE state for all remote participants
|
||||
for p in self.lk_room.remote_participants.values():
|
||||
logger.info("REMOTE_PARTICIPANT: identity=%s tracks=%d",
|
||||
p.identity, len(p.track_publications))
|
||||
|
||||
except asyncio.CancelledError:
|
||||
logger.info("Session cancelled for %s", self.room_id)
|
||||
|
||||
Reference in New Issue
Block a user