{ await updateConfigHandler(); dispatch('save'); }} >
{$i18n.t('STT Settings')}
{$i18n.t('Speech-to-Text Engine')}
{#if STT_ENGINE === 'openai'}

{$i18n.t('STT Model')}
{/if}

{$i18n.t('TTS Settings')}
{$i18n.t('Text-to-Speech Engine')}
{#if TTS_ENGINE === 'openai'}
{:else if TTS_ENGINE === 'elevenlabs'}
{/if}
{#if TTS_ENGINE === ''}
{$i18n.t('TTS Voice')}
{:else if TTS_ENGINE === 'openai'}
{$i18n.t('TTS Voice')}
{#each voices as voice} {/each}
{$i18n.t('TTS Model')}
{#each models as model}
{:else if TTS_ENGINE === 'elevenlabs'}
{$i18n.t('TTS Voice')}
{#each voices as voice} {/each}
{$i18n.t('TTS Model')}
{#each models as model}
{/if}