fix: TTS reads output in auto mode (don't skip when listening)

This commit is contained in:
Gan, Jimmy
2026-02-26 16:12:36 +08:00
parent 70c716fd19
commit ee6c404122
+1 -1
View File
@@ -168,7 +168,7 @@ export class VoiceSession {
// --- TTS --- // --- TTS ---
_onOutput() { _onOutput() {
if (!this.ttsEnabled || this.listening) return; if (!this.ttsEnabled || this.transcript) return;
clearTimeout(this._debounce); clearTimeout(this._debounce);
this._debounce = setTimeout(() => this._readBuffer(), 2000); this._debounce = setTimeout(() => this._readBuffer(), 2000);
} }