From 6d9ed329295a242bd39e18f17518cca1c172a36f Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 16 Jun 2024 17:19:18 -0700 Subject: [PATCH] refac --- src/lib/components/chat/MessageInput/CallOverlay.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/MessageInput/CallOverlay.svelte b/src/lib/components/chat/MessageInput/CallOverlay.svelte index 1bbbdc293..8a5eb9fb7 100644 --- a/src/lib/components/chat/MessageInput/CallOverlay.svelte +++ b/src/lib/components/chat/MessageInput/CallOverlay.svelte @@ -270,8 +270,9 @@ } if (assistantSpeaking) { + // Mute the audio if the assistant is speaking analyser.maxDecibels = 0; - analyser.minDecibels = -10; + analyser.minDecibels = -1; } else { analyser.minDecibels = MIN_DECIBELS; analyser.maxDecibels = -30;