From ae9a1e98b63e9d35dc51eda2cb6bda7266b7f438 Mon Sep 17 00:00:00 2001 From: Quan HL Date: Thu, 10 Oct 2024 14:33:08 +0700 Subject: [PATCH] support speechmatics --- .../internal/views/applications/speech-selection.tsx | 6 ++++-- src/containers/internal/views/speech-services/form.tsx | 6 +++++- src/vendor/index.tsx | 5 +++++ src/vendor/types.ts | 2 ++ 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/containers/internal/views/applications/speech-selection.tsx b/src/containers/internal/views/applications/speech-selection.tsx index 1b7ff8e..2e3db66 100644 --- a/src/containers/internal/views/applications/speech-selection.tsx +++ b/src/containers/internal/views/applications/speech-selection.tsx @@ -28,6 +28,7 @@ import { VENDOR_SONIOX, VENDOR_WELLSAID, VENDOR_WHISPER, + VENDOR_SPEECHMATICS, } from "src/vendor"; import { LabelOptions, @@ -360,8 +361,9 @@ export const SpeechProviderSelection = ({ value={synthVendor} options={ttsVendorOptions.filter( (vendor) => - vendor.value != VENDOR_ASSEMBLYAI && - vendor.value != VENDOR_SONIOX && + vendor.value !== VENDOR_ASSEMBLYAI && + vendor.value !== VENDOR_SONIOX && + vendor.value !== VENDOR_SPEECHMATICS && vendor.value !== VENDOR_CUSTOM && vendor.value !== VENDOR_COBALT, )} diff --git a/src/containers/internal/views/speech-services/form.tsx b/src/containers/internal/views/speech-services/form.tsx index 048ec35..297b34c 100644 --- a/src/containers/internal/views/speech-services/form.tsx +++ b/src/containers/internal/views/speech-services/form.tsx @@ -47,6 +47,7 @@ import { AWS_CREDENTIAL_ACCESS_KEY, AWS_INSTANCE_PROFILE, VENDOR_VERBIO, + VENDOR_SPEECHMATICS, } from "src/vendor"; import { MSG_REQUIRED_FIELDS } from "src/constants"; import { @@ -404,6 +405,7 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => { vendor === VENDOR_DEEPGRAM || vendor === VENDOR_ASSEMBLYAI || vendor === VENDOR_SONIOX || + vendor === VENDOR_SPEECHMATICS || vendor === VENDOR_ELEVENLABS || vendor === VENDOR_PLAYHT || vendor === VENDOR_RIMELABS || @@ -783,6 +785,7 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => { {vendor !== VENDOR_ASSEMBLYAI && vendor !== VENDOR_COBALT && vendor !== VENDOR_SONIOX && + vendor !== VENDOR_SPEECHMATICS && vendor != VENDOR_CUSTOM && (