{ saveSettings({ speech: { engine: engine !== '' ? engine : undefined, speaker: speaker !== '' ? speaker : undefined } }); dispatch('save'); }} >
TTS Settings
Speech Engine
{ if (e.target.value === 'openai') { getOpenAIVoices(); speaker = 'alloy'; } else { getWebAPIVoices(); speaker = ''; } }} >
Default (Web API)
Open AI
Conversation Mode
{ toggleConversationMode(); }} type="button" > {#if conversationMode === true}
On
{:else}
Off
{/if}
Auto-send input after 3 sec.
{ toggleSpeechAutoSend(); }} type="button" > {#if speechAutoSend === true}
On
{:else}
Off
{/if}
Auto-playback response
{ toggleResponseAutoPlayback(); }} type="button" > {#if responseAutoPlayback === true}
On
{:else}
Off
{/if}
{#if engine === ''}
Set Voice
Default
{#each voices.filter((v) => v.localService === true) as voice}
{voice.name}
{/each}
{:else if engine === 'openai'}
Set Voice
{#each voices as voice}
{voice.name}
{/each}
{/if}
Save