refac: audio

This commit is contained in:
Timothy J. Baek
2024-06-07 20:51:53 -07:00
parent 16615010f7
commit 27417dd771
4 changed files with 23 additions and 16 deletions
+1 -10
View File
@@ -234,7 +234,7 @@
bind:value={TTS_VOICE}
>
<option value="" selected={TTS_VOICE !== ''}>{$i18n.t('Default')}</option>
{#each voices.filter((v) => nonLocalVoices || v.localService === true) as voice}
{#each voices as voice}
<option
value={voice.voiceURI}
class="bg-gray-100 dark:bg-gray-700"
@@ -244,15 +244,6 @@
</select>
</div>
</div>
<div class="flex items-center justify-between my-1.5">
<div class="text-xs">
{$i18n.t('Allow non-local voices')}
</div>
<div class="mt-1">
<Switch bind:state={nonLocalVoices} />
</div>
</div>
</div>
{:else if TTS_ENGINE === 'openai'}
<div class=" flex gap-2">