This commit is contained in:
Timothy Jaeryang Baek
2026-03-21 18:59:25 -05:00
parent aa59b32374
commit d8fa0f426a
@@ -202,7 +202,7 @@
const stopAudio = () => { const stopAudio = () => {
try { try {
speechSynthesis.cancel(); speechSynthesis.cancel();
$audioQueue.stop(); $audioQueue?.stop();
} catch {} } catch {}
if (speaking) { if (speaking) {
@@ -1015,7 +1015,7 @@
</button> </button>
</Tooltip> </Tooltip>
{#if $user?.role === 'admin' || ($user?.permissions?.chat?.tts ?? true)} {#if !readOnly && ($user?.role === 'admin' || ($user?.permissions?.chat?.tts ?? true))}
<Tooltip content={$i18n.t('Read Aloud')} placement="bottom"> <Tooltip content={$i18n.t('Read Aloud')} placement="bottom">
<button <button
aria-label={$i18n.t('Read Aloud')} aria-label={$i18n.t('Read Aloud')}