From 51b598dd5d5964cd3a972bc5f19f63dc61f2a638 Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Sun, 21 Jun 2026 05:20:56 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20kiosk=20voice=20=E2=80=94=20use=20startL?= =?UTF-8?q?istening()=20directly,=20no=20TTS=20greeting=20blocking=20mic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public_html/assets/js/jarvis-app.js | 5 +++-- public_html/index.html | 12 ++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/public_html/assets/js/jarvis-app.js b/public_html/assets/js/jarvis-app.js index 0712341..fcdec9d 100644 --- a/public_html/assets/js/jarvis-app.js +++ b/public_html/assets/js/jarvis-app.js @@ -1784,9 +1784,10 @@ async function toggleKiosk() { try { _wakeLock = await navigator.wakeLock.request("screen"); } catch(e) {} } document.body.classList.add("kiosk-mode"); + // Kiosk: silently activate mic + voice mode (no TTS greeting) if (typeof wakeFromSleep === "function" && isAsleep) wakeFromSleep(); - if (typeof enterVoiceMode === "function" && !voiceMode) enterVoiceMode(); - if (!isListening) { isListening = true; updateMicBtn(); try { recognition && recognition.start(); } catch(_) {} } + voiceMode = true; voiceMuted = false; voiceLastCmd = Date.now(); updateMicBtn(); + if (typeof startListening === "function" && !isListening) startListening(); if (btn) { btn.textContent = "⧞ EXIT"; btn.style.color = "var(--cyan)"; } } else { const ex = document.exitFullscreen || document.webkitExitFullscreen || document.mozCancelFullScreen || document.msExitFullscreen; diff --git a/public_html/index.html b/public_html/index.html index 0950305..3771494 100644 --- a/public_html/index.html +++ b/public_html/index.html @@ -426,12 +426,12 @@ style="position:fixed;top:-9999px;left:-9999px;width:320px;height:240px"> - - - - - - + + + + + +