mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
LED stays green in autotranscribe mode
This commit is contained in:
parent
bfdca05091
commit
adeb0dd4dd
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue