diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index 0456aefbe3..71d2594f07 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -202,7 +202,7 @@ const stopAudio = () => { try { speechSynthesis.cancel(); - $audioQueue.stop(); + $audioQueue?.stop(); } catch {} if (speaking) { @@ -1015,7 +1015,7 @@ - {#if $user?.role === 'admin' || ($user?.permissions?.chat?.tts ?? true)} + {#if !readOnly && ($user?.role === 'admin' || ($user?.permissions?.chat?.tts ?? true))}