diff --git a/public/js/SpeechRec.js b/public/js/SpeechRec.js index 63d1736b..d956bdf4 100644 --- a/public/js/SpeechRec.js +++ b/public/js/SpeechRec.js @@ -83,6 +83,7 @@ if (speechRecognition) { console.log('Start speech recognition'); hide(chatSpeechStartButton); show(chatSpeechStopButton); + setColor(chatSpeechStopButton, 'lime'); }; recognition.onresult = (e) => { @@ -106,6 +107,7 @@ if (speechRecognition) { console.log('Stop speech recognition'); show(chatSpeechStartButton); hide(chatSpeechStopButton); + setColor(chatSpeechStopButton, 'white'); }; isWebkitSpeechRecognitionSupported = true;