{ await updateConfigHandler(); dispatch("save"); }} >
{$i18n.t("Speech-to-Text")}

{#if STT_ENGINE !== "web"}
{$i18n.t("Supported MIME Types")}
{/if}
{$i18n.t("Speech-to-Text Engine")}
{#if STT_ENGINE === "openai"}

{$i18n.t("STT Model")}
{:else if STT_ENGINE === "deepgram"}

{$i18n.t("STT Model")}
{$i18n.t( "Leave model field empty to use the default model.", )} {$i18n.t("Click here to see available models.")}
{:else if STT_ENGINE === "azure"}

{$i18n.t("Azure Region")}
{$i18n.t("Language Locales")}
{$i18n.t("Endpoint URL")}
{$i18n.t("Max Speakers")}
{:else if STT_ENGINE === "mistral"}

{$i18n.t("STT Model")}
{$i18n.t( "Leave empty to use the default model (voxtral-mini-latest).", )} {$i18n.t( "Learn more about Voxtral transcription.", )}

{$i18n.t("Use Chat Completions API")}
{$i18n.t( "Use /v1/chat/completions endpoint instead of /v1/audio/transcriptions for potentially better accuracy.", )}
{:else if STT_ENGINE === ""}
{$i18n.t("STT Model")}
{/if}
{$i18n.t("Text-to-Speech")}

{$i18n.t("Text-to-Speech Engine")}
{#if TTS_ENGINE === "openai"}
{:else if TTS_ENGINE === "elevenlabs"}
{:else if TTS_ENGINE === "azure"}

{$i18n.t("Azure Region")}
{$i18n.t("Endpoint URL")}
{:else if TTS_ENGINE === "mistral"}
{/if}
{#if TTS_ENGINE === ""}
{$i18n.t("TTS Voice")}
{:else if TTS_ENGINE === "transformers"}
{$i18n.t("TTS Model")}
{$i18n.t( `rexpro-ai uses SpeechT5 and CMU Arctic speaker embeddings.`, )} To learn more about SpeechT5, {$i18n.t(`click here`, { name: "SpeechT5", })}. To see the available CMU Arctic speaker embeddings, {$i18n.t(`click here`)}.
{:else if TTS_ENGINE === "openai"}
{$i18n.t("TTS Voice")}
{#each voices as voice} {/each}
{$i18n.t("TTS Model")}
{#each models as model}
{$i18n.t("Additional Parameters")}