feat: voice interruption toggle

This commit is contained in:
Timothy J. Baek
2024-06-22 13:21:36 -07:00
parent 98c18b3032
commit d0f34baaa3
2 changed files with 28 additions and 1 deletions

View File

@@ -271,7 +271,7 @@
return;
}
if (assistantSpeaking) {
if (assistantSpeaking && !($settings?.voiceInterruption ?? false)) {
// Mute the audio if the assistant is speaking
analyser.maxDecibels = 0;
analyser.minDecibels = -1;