{ 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'}
{:else if TTS_ENGINE === 'azure'}
{/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}
{:else if TTS_ENGINE === 'azure'}
{$i18n.t('TTS Voice')}
{#each voices as voice} {/each}
{$i18n.t('Output format')} {$i18n.t('Available list')}
{/if}
{$i18n.t('Response splitting')}
{$i18n.t( "Control how message text is split for TTS requests. 'Punctuation' splits into sentences, 'paragraphs' splits into paragraphs, and 'none' keeps the message as a single string." )}