{ saveSettings({ audio: { stt: { engine: STTEngine !== '' ? STTEngine : undefined }, tts: { voice: voice !== '' ? voice : undefined, nonLocalVoices: $config.audio.tts.engine === '' ? nonLocalVoices : undefined } } }); dispatch('save'); }} >
{$i18n.t('STT Settings')}
{#if $config.audio.stt.engine !== 'web'}
{$i18n.t('Speech-to-Text Engine')}
{/if}
{$i18n.t('Instant Auto-Send After Voice Transcription')}
{$i18n.t('TTS Settings')}
{$i18n.t('Auto-playback response')}

{#if $config.audio.tts.engine === ''}
{$i18n.t('Set Voice')}
{$i18n.t('Allow non-local voices')}
{:else if $config.audio.tts.engine !== ''}
{$i18n.t('Set Voice')}
{#each voices as voice}
{/if}