{ if ($user.role === 'admin') { await updateConfigHandler(); } saveSettings({ audio: { STTEngine: STTEngine !== '' ? STTEngine : undefined, TTSEngine: TTSEngine !== '' ? TTSEngine : undefined, speaker: (TTSEngine === 'openai' ? OpenAISpeaker : speaker) !== '' ? TTSEngine === 'openai' ? OpenAISpeaker : speaker : undefined, model: model !== '' ? model : undefined, nonLocalVoices: nonLocalVoices } }); 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')}
{$i18n.t('Allow non-local voices')}
{:else if TTSEngine === 'openai'}
{$i18n.t('Set Voice')}
{#each voices as voice}
{$i18n.t('Set Model')}
{#each models as model}
{/if}