From b39dab2536ab07ea8f153d7d2adb941ed17de725 Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 6 Apr 2026 07:03:16 -0700 Subject: [PATCH] fix: don't send tts start on wake word - it stops ESP32 recording ESP32 stops sending audio when it receives tts start because it thinks the server is speaking. Just acknowledge detect silently. Co-Authored-By: Claude Opus 4.6 (1M context) --- relay.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/relay.py b/relay.py index eee5cf7..9fb1db0 100644 --- a/relay.py +++ b/relay.py @@ -194,16 +194,11 @@ class Relay: elif msg_type == "listen": state = msg.get("state") - log.debug(f"ESP32 listen: {state}") + log.info(f"ESP32 listen: {state}") if state == "detect": - # Wake word detected — acknowledge text = msg.get("text", "") log.info(f"Wake word: {text}") - # Send TTS start to keep ESP32 happy - await self.ws.send(json.dumps({ - "type": "tts", "state": "start", - "session_id": msg.get("session_id", "") - })) + # Don't send tts start — let ESP32 continue recording elif msg_type == "abort": log.info("ESP32 abort")