Feat: refactor STT service (#294)

* add stt hook interface

* fix crypto exported to browser

* refactor use-transcribe

* may use openai stt

* refactor: remove decprecated codes

* fix undefined method
This commit is contained in:
an-lee
2024-02-10 19:55:07 +08:00
committed by GitHub
parent a71671907e
commit bc22a5e2b4
21 changed files with 488 additions and 633 deletions

View File

@@ -77,6 +77,8 @@ export const WhisperSettings = () => {
t("azureSpeechToTextDescription")}
{whisperConfig?.service === "cloudflare" &&
t("cloudflareSpeechToTextDescription")}
{whisperConfig?.service === "openai" &&
t("openaiSpeechToTextDescription")}
</div>
</div>
@@ -94,6 +96,7 @@ export const WhisperSettings = () => {
<SelectItem value="local">{t("local")}</SelectItem>
<SelectItem value="azure">{t("azureAi")}</SelectItem>
<SelectItem value="cloudflare">{t("cloudflareAi")}</SelectItem>
<SelectItem value="openai">OpenAI</SelectItem>
</SelectContent>
</Select>