From c237b7e7f23d1aa1b75d498c56f8d375700847ea Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Wed, 5 Feb 2025 20:33:12 +0700 Subject: [PATCH] support voxist stt (#480) --- .../internal/views/applications/speech-selection.tsx | 2 ++ src/containers/internal/views/speech-services/form.tsx | 4 ++++ src/vendor/index.tsx | 5 +++++ src/vendor/types.ts | 1 + 4 files changed, 12 insertions(+) diff --git a/src/containers/internal/views/applications/speech-selection.tsx b/src/containers/internal/views/applications/speech-selection.tsx index 2587999..0b5cd6a 100644 --- a/src/containers/internal/views/applications/speech-selection.tsx +++ b/src/containers/internal/views/applications/speech-selection.tsx @@ -31,6 +31,7 @@ import { VENDOR_SPEECHMATICS, VENDOR_PLAYHT, VENDOR_CARTESIA, + VENDOR_VOXIST, } from "src/vendor"; import { LabelOptions, @@ -391,6 +392,7 @@ export const SpeechProviderSelection = ({ options={ttsVendorOptions.filter( (vendor) => vendor.value !== VENDOR_ASSEMBLYAI && + vendor.value !== VENDOR_VOXIST && vendor.value !== VENDOR_SONIOX && vendor.value !== VENDOR_SPEECHMATICS && vendor.value !== VENDOR_CUSTOM && diff --git a/src/containers/internal/views/speech-services/form.tsx b/src/containers/internal/views/speech-services/form.tsx index 68fa40f..cfcb97e 100644 --- a/src/containers/internal/views/speech-services/form.tsx +++ b/src/containers/internal/views/speech-services/form.tsx @@ -50,6 +50,7 @@ import { VENDOR_VERBIO, VENDOR_SPEECHMATICS, VENDOR_CARTESIA, + VENDOR_VOXIST, } from "src/vendor"; import { MSG_REQUIRED_FIELDS } from "src/constants"; import { @@ -461,6 +462,7 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => { vendor === VENDOR_WELLSAID || vendor === VENDOR_DEEPGRAM || vendor === VENDOR_ASSEMBLYAI || + vendor === VENDOR_VOXIST || vendor === VENDOR_SONIOX || vendor === VENDOR_SPEECHMATICS || vendor === VENDOR_ELEVENLABS || @@ -881,6 +883,7 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => { {vendor && (
{vendor !== VENDOR_ASSEMBLYAI && + vendor !== VENDOR_VOXIST && vendor !== VENDOR_COBALT && vendor !== VENDOR_SONIOX && vendor !== VENDOR_SPEECHMATICS && @@ -1512,6 +1515,7 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => { {(vendor === VENDOR_WELLSAID || vendor === VENDOR_ASSEMBLYAI || + vendor === VENDOR_VOXIST || vendor == VENDOR_ELEVENLABS || vendor === VENDOR_WHISPER || vendor === VENDOR_PLAYHT || diff --git a/src/vendor/index.tsx b/src/vendor/index.tsx index 6e68521..f801deb 100644 --- a/src/vendor/index.tsx +++ b/src/vendor/index.tsx @@ -20,6 +20,7 @@ export const VENDOR_CUSTOM = "custom"; export const VENDOR_COBALT = "cobalt"; export const VENDOR_ELEVENLABS = "elevenlabs"; export const VENDOR_ASSEMBLYAI = "assemblyai"; +export const VENDOR_VOXIST = "voxist"; export const VENDOR_WHISPER = "whisper"; export const VENDOR_PLAYHT = "playht"; export const VENDOR_RIMELABS = "rimelabs"; @@ -83,6 +84,10 @@ export const vendors: VendorOptions[] = [ name: "AssemblyAI", value: VENDOR_ASSEMBLYAI, }, + { + name: "Voxist", + value: VENDOR_VOXIST, + }, { name: "Whisper", value: VENDOR_WHISPER, diff --git a/src/vendor/types.ts b/src/vendor/types.ts index 2845e9a..901d225 100644 --- a/src/vendor/types.ts +++ b/src/vendor/types.ts @@ -13,6 +13,7 @@ export type Vendor = | "Custom" | "ElevenLabs" | "assemblyai" + | "voxist" | "whisper" | "playht" | "rimelabs"