diff --git a/src/containers/internal/views/speech-services/form.tsx b/src/containers/internal/views/speech-services/form.tsx index c03a04f..34beb3c 100644 --- a/src/containers/internal/views/speech-services/form.tsx +++ b/src/containers/internal/views/speech-services/form.tsx @@ -37,6 +37,7 @@ import { VENDOR_CUSTOM, VENDOR_COBALT, VENDOR_ELEVENLABS, + VENDOR_ASSEMBLYAI, } from "src/vendor"; import { MSG_REQUIRED_FIELDS } from "src/constants"; import { @@ -313,6 +314,7 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => { vendor === VENDOR_MICROSOFT || vendor === VENDOR_WELLSAID || vendor === VENDOR_DEEPGRAM || + vendor === VENDOR_ASSEMBLYAI || vendor === VENDOR_SONIOX || vendor === VENDOR_ELEVENLABS ? apiKey @@ -603,6 +605,7 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => { {vendor && (
{vendor !== VENDOR_DEEPGRAM && + vendor !== VENDOR_ASSEMBLYAI && vendor !== VENDOR_COBALT && vendor !== VENDOR_SONIOX && vendor != VENDOR_CUSTOM && ( @@ -1062,6 +1065,7 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => { )} {(vendor === VENDOR_WELLSAID || vendor === VENDOR_DEEPGRAM || + vendor === VENDOR_ASSEMBLYAI || vendor == VENDOR_ELEVENLABS || vendor === VENDOR_SONIOX) && (
diff --git a/src/vendor/index.tsx b/src/vendor/index.tsx index 1cf21e9..5b61427 100644 --- a/src/vendor/index.tsx +++ b/src/vendor/index.tsx @@ -23,6 +23,7 @@ export const VENDOR_SONIOX = "soniox"; export const VENDOR_CUSTOM = "custom"; export const VENDOR_COBALT = "cobalt"; export const VENDOR_ELEVENLABS = "elevenlabs"; +export const VENDOR_ASSEMBLYAI = "assemblyai"; export const vendors: VendorOptions[] = [ { @@ -73,6 +74,10 @@ export const vendors: VendorOptions[] = [ name: "ElevenLabs", value: VENDOR_ELEVENLABS, }, + { + name: "AssemblyAI", + value: VENDOR_ASSEMBLYAI, + }, ].sort((a, b) => a.name.localeCompare(b.name)) as VendorOptions[]; export const useRegionVendors = () => { @@ -128,6 +133,7 @@ export const useSpeechVendors = () => { import("./speech-recognizer/nvidia-speech-recognizer-lang"), import("./speech-recognizer/soniox-speech-recognizer-lang"), import("./speech-recognizer/cobalt-speech-recognizer-lang"), + import("./speech-recognizer/assemblyai-speech-recognizer-lang"), import("./speech-synthesis/aws-speech-synthesis-lang"), import("./speech-synthesis/google-speech-synthesis-lang"), import("./speech-synthesis/ms-speech-synthesis-lang"), @@ -147,6 +153,7 @@ export const useSpeechVendors = () => { { default: nvidiaRecognizer }, { default: sonioxRecognizer }, { default: cobaltRecognizer }, + { default: assemblyaiRecognizer }, { default: awsSynthesis }, { default: googleSynthesis }, { default: msSynthesis }, @@ -178,6 +185,7 @@ export const useSpeechVendors = () => { nvidia: nvidiaRecognizer, soniox: sonioxRecognizer, cobalt: cobaltRecognizer, + assemblyai: assemblyaiRecognizer, }, }); } diff --git a/src/vendor/types.ts b/src/vendor/types.ts index fbde930..2b81fb2 100644 --- a/src/vendor/types.ts +++ b/src/vendor/types.ts @@ -10,7 +10,8 @@ export type Vendor = | "Soniox" | "Cobalt" | "Custom" - | "ElevenLabs"; + | "ElevenLabs" + | "assemblyai"; export interface VendorOptions { name: Vendor; @@ -73,6 +74,7 @@ export interface RecognizerVendors { nvidia: Language[]; soniox: Language[]; cobalt: Language[]; + assemblyai: Language[]; } export interface SynthesisVendors {