From adeb0dd4dddd3d69b0707d1a2d165486e612f194 Mon Sep 17 00:00:00 2001 From: Matt Flax Date: Wed, 14 May 2025 14:02:03 +1000 Subject: [PATCH] LED stays green in autotranscribe mode --- aider/gui_speech_to_text.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aider/gui_speech_to_text.js b/aider/gui_speech_to_text.js index 81b08ad56..a8a6fb3e5 100644 --- a/aider/gui_speech_to_text.js +++ b/aider/gui_speech_to_text.js @@ -139,7 +139,7 @@ recognition.onspeechstart = function() { console.log('Speech detected'); if (autoTranscribe.checked) { - led.style.backgroundColor = 'green'; // Green when voice is detected + led.style.backgroundColor = 'lime'; // Lime green when voice is detected } }; @@ -166,9 +166,9 @@ // If not in auto-transcribe mode, reset the LED if (!autoTranscribe.checked) { led.style.backgroundColor = 'gray'; - } else { - led.style.backgroundColor = 'red'; // Back to red after processing result } + // In auto-transcribe mode, we'll keep the LED color as is (lime while speaking) + // The LED will be set back to red in the speechend event } else if (eventType === 'error') { console.error('Speech recognition error', event.error);