diff --git a/src/lib/components/chat/MessageInput/CallOverlay.svelte b/src/lib/components/chat/MessageInput/CallOverlay.svelte index 51dae5a7c..25c68a1e3 100644 --- a/src/lib/components/chat/MessageInput/CallOverlay.svelte +++ b/src/lib/components/chat/MessageInput/CallOverlay.svelte @@ -139,7 +139,17 @@ const audio = assistantAudio[idx]; audioElement.src = audio.src; // Assume `assistantAudio` has objects with a `src` property - audioElement.play(); + + audioElement.muted = true; + + audioElement + .play() + .then(() => { + audioElement.muted = false; + }) + .catch((error) => { + toast.error(error); + }); audioElement.onended = async (e) => { await new Promise((r) => setTimeout(r, 300));