This commit is contained in:
Timothy J. Baek 2024-06-16 17:19:18 -07:00
parent ad2ffc33d8
commit 6d9ed32929

View File

@ -270,8 +270,9 @@
} }
if (assistantSpeaking) { if (assistantSpeaking) {
// Mute the audio if the assistant is speaking
analyser.maxDecibels = 0; analyser.maxDecibels = 0;
analyser.minDecibels = -10; analyser.minDecibels = -1;
} else { } else {
analyser.minDecibels = MIN_DECIBELS; analyser.minDecibels = MIN_DECIBELS;
analyser.maxDecibels = -30; analyser.maxDecibels = -30;