{ if ($user.role === 'admin') { await updateConfigHandler(); } saveSettings({ audio: { STTEngine: STTEngine !== '' ? STTEngine : undefined, TTSEngine: TTSEngine !== '' ? TTSEngine : undefined, speaker: speaker !== '' ? speaker : undefined } }); dispatch('save'); }} >
{$i18n.t('STT Settings')}
{$i18n.t('Speech-to-Text Engine')}
{$i18n.t('Conversation Mode')}
{$i18n.t('Auto-send input after 3 sec.')}
{$i18n.t('TTS Settings')}
{$i18n.t('Text-to-Speech Engine')}
{#if $user.role === 'admin'} {#if TTSEngine === 'openai'}
{/if} {/if}
{$i18n.t('Auto-playback response')}

{#if TTSEngine === ''}
{$i18n.t('Set Voice')}
{:else if TTSEngine === 'openai'}
{$i18n.t('Set Voice')}
{#each voices as voice}
{/if}