support deepgram river (#547)

This commit is contained in:
Hoan Luu Huu
2025-07-30 00:54:22 +07:00
committed by GitHub
parent e02904f7f3
commit 031e5e923e
4 changed files with 18 additions and 1 deletions

View File

@@ -36,6 +36,7 @@ import {
VENDOR_RIMELABS,
VENDOR_OPENAI,
VENDOR_INWORLD,
VENDOR_DEEPGRAM_RIVER,
} from "src/vendor";
import {
LabelOptions,
@@ -368,6 +369,9 @@ export const SpeechProviderSelection = ({
};
const configRecognizer = () => {
if (recogVendor === VENDOR_DEEPGRAM_RIVER) {
return;
}
getSpeechSupportedLanguagesAndVoices(
serviceProviderSid,
recogVendor,
@@ -428,6 +432,7 @@ export const SpeechProviderSelection = ({
vendor.value !== VENDOR_SPEECHMATICS &&
vendor.value !== VENDOR_CUSTOM &&
vendor.value !== VENDOR_OPENAI &&
vendor.value !== VENDOR_DEEPGRAM_RIVER &&
vendor.value !== VENDOR_COBALT,
)}
onChange={(e) => {
@@ -609,6 +614,7 @@ export const SpeechProviderSelection = ({
)}
{recogVendor &&
!recogVendor.toString().startsWith(VENDOR_CUSTOM) &&
recogVendor !== VENDOR_DEEPGRAM_RIVER &&
recogLang && (
<>
<label htmlFor="recognizer_lang">Language</label>

View File

@@ -53,6 +53,7 @@ import {
VENDOR_VOXIST,
VENDOR_OPENAI,
VENDOR_INWORLD,
VENDOR_DEEPGRAM_RIVER,
} from "src/vendor";
import { MSG_REQUIRED_FIELDS } from "src/constants";
import {
@@ -528,7 +529,8 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => {
vendor === VENDOR_INWORLD ||
vendor === VENDOR_WHISPER ||
vendor === VENDOR_CARTESIA ||
vendor === VENDOR_OPENAI
vendor === VENDOR_OPENAI ||
vendor === VENDOR_DEEPGRAM_RIVER
? apiKey
: null,
}),
@@ -979,6 +981,7 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => {
vendor !== VENDOR_COBALT &&
vendor !== VENDOR_SONIOX &&
vendor !== VENDOR_SPEECHMATICS &&
vendor !== VENDOR_DEEPGRAM_RIVER &&
vendor !== VENDOR_OPENAI &&
vendor != VENDOR_CUSTOM && (
<label htmlFor="use_for_tts" className="chk">
@@ -1747,6 +1750,7 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => {
vendor === VENDOR_SONIOX ||
vendor === VENDOR_CARTESIA ||
vendor === VENDOR_OPENAI ||
vendor === VENDOR_DEEPGRAM_RIVER ||
vendor === VENDOR_SPEECHMATICS) && (
<fieldset>
<label htmlFor={`${vendor}_apikey`}>

View File

@@ -12,6 +12,7 @@ export const VENDOR_MICROSOFT = "microsoft";
export const VENDOR_WELLSAID = "wellsaid";
export const VENDOR_NUANCE = "nuance";
export const VENDOR_DEEPGRAM = "deepgram";
export const VENDOR_DEEPGRAM_RIVER = "deepgramriver";
export const VENDOR_IBM = "ibm";
export const VENDOR_NVIDIA = "nvidia";
export const VENDOR_SONIOX = "soniox";
@@ -42,6 +43,10 @@ export const vendors: VendorOptions[] = [
name: "Deepgram",
value: VENDOR_DEEPGRAM,
},
{
name: "Deepgram River Preview",
value: VENDOR_DEEPGRAM_RIVER,
},
{
name: "IBM",
value: VENDOR_IBM,

2
src/vendor/types.ts vendored
View File

@@ -5,6 +5,7 @@ export type Vendor =
| "WellSaid"
| "Nuance"
| "Deepgram"
| "DeepgramRiver"
| "IBM"
| "Nvidia"
| "Soniox"
@@ -97,6 +98,7 @@ export interface RecognizerVendors {
speechmatics: Language[];
cobalt: Language[];
assemblyai: Language[];
deepgramriver: Language[];
}
export interface SynthesisVendors {