From 0ea9fad14453b202a2b22a388c65c12342e99018 Mon Sep 17 00:00:00 2001 From: Cosmo Date: Mon, 27 Apr 2026 10:16:17 +0000 Subject: [PATCH] =?UTF-8?q?debug(voice):=20mount=20+=20tap=20=D0=BB=D0=BE?= =?UTF-8?q?=D0=B3=D0=B8=20=D0=B2=20=D0=BA=D0=BE=D0=BD=D1=81=D0=BE=D0=BB?= =?UTF-8?q?=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/VoiceController.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/VoiceController.tsx b/components/VoiceController.tsx index c9c1b85..bd9efc8 100644 --- a/components/VoiceController.tsx +++ b/components/VoiceController.tsx @@ -67,6 +67,7 @@ export default function VoiceController() { const busyRef = useRef(false) useEffect(() => { + console.log('[VoiceController] mounted, state=idle, ждём тап на микрофон') return () => { try { vadRef.current?.destroy?.() } catch {} try { wakeRef.current?.stop?.() } catch {} @@ -218,6 +219,7 @@ export default function VoiceController() { // Долгий тап = ручной триггер (как раньше push-to-talk). Короткий — toggle вкл/выкл. // Для простоты сейчас: короткий тап в idle = активация; короткий тап в active = выкл. const onTap = async () => { + console.log(`[VoiceController] tap! state=${state}`) if (state === 'idle' || state === 'error') { await start() } else if (state === 'listening') {