fix: voice controls reactivity, disable mic on unsupported browsers

This commit is contained in:
Gan, Jimmy
2026-02-26 15:40:15 +08:00
parent 9c5dbcdb37
commit 70d3be71b9
2 changed files with 30 additions and 30 deletions
+1
View File
@@ -8,6 +8,7 @@ export class VoiceSession {
this.ttsEnabled = false;
this.speaking = false;
this.listening = false;
this.sttAvailable = !!(window.SpeechRecognition || window.webkitSpeechRecognition);
this.langIdx = 0;
this.term = null;
this.ws = null;