mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-07-04 19:21:58 +00:00
support deepgram river (#547)
This commit is contained in:
@@ -36,6 +36,7 @@ import {
|
|||||||
VENDOR_RIMELABS,
|
VENDOR_RIMELABS,
|
||||||
VENDOR_OPENAI,
|
VENDOR_OPENAI,
|
||||||
VENDOR_INWORLD,
|
VENDOR_INWORLD,
|
||||||
|
VENDOR_DEEPGRAM_RIVER,
|
||||||
} from "src/vendor";
|
} from "src/vendor";
|
||||||
import {
|
import {
|
||||||
LabelOptions,
|
LabelOptions,
|
||||||
@@ -368,6 +369,9 @@ export const SpeechProviderSelection = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const configRecognizer = () => {
|
const configRecognizer = () => {
|
||||||
|
if (recogVendor === VENDOR_DEEPGRAM_RIVER) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
getSpeechSupportedLanguagesAndVoices(
|
getSpeechSupportedLanguagesAndVoices(
|
||||||
serviceProviderSid,
|
serviceProviderSid,
|
||||||
recogVendor,
|
recogVendor,
|
||||||
@@ -428,6 +432,7 @@ export const SpeechProviderSelection = ({
|
|||||||
vendor.value !== VENDOR_SPEECHMATICS &&
|
vendor.value !== VENDOR_SPEECHMATICS &&
|
||||||
vendor.value !== VENDOR_CUSTOM &&
|
vendor.value !== VENDOR_CUSTOM &&
|
||||||
vendor.value !== VENDOR_OPENAI &&
|
vendor.value !== VENDOR_OPENAI &&
|
||||||
|
vendor.value !== VENDOR_DEEPGRAM_RIVER &&
|
||||||
vendor.value !== VENDOR_COBALT,
|
vendor.value !== VENDOR_COBALT,
|
||||||
)}
|
)}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
@@ -609,6 +614,7 @@ export const SpeechProviderSelection = ({
|
|||||||
)}
|
)}
|
||||||
{recogVendor &&
|
{recogVendor &&
|
||||||
!recogVendor.toString().startsWith(VENDOR_CUSTOM) &&
|
!recogVendor.toString().startsWith(VENDOR_CUSTOM) &&
|
||||||
|
recogVendor !== VENDOR_DEEPGRAM_RIVER &&
|
||||||
recogLang && (
|
recogLang && (
|
||||||
<>
|
<>
|
||||||
<label htmlFor="recognizer_lang">Language</label>
|
<label htmlFor="recognizer_lang">Language</label>
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ import {
|
|||||||
VENDOR_VOXIST,
|
VENDOR_VOXIST,
|
||||||
VENDOR_OPENAI,
|
VENDOR_OPENAI,
|
||||||
VENDOR_INWORLD,
|
VENDOR_INWORLD,
|
||||||
|
VENDOR_DEEPGRAM_RIVER,
|
||||||
} from "src/vendor";
|
} from "src/vendor";
|
||||||
import { MSG_REQUIRED_FIELDS } from "src/constants";
|
import { MSG_REQUIRED_FIELDS } from "src/constants";
|
||||||
import {
|
import {
|
||||||
@@ -528,7 +529,8 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => {
|
|||||||
vendor === VENDOR_INWORLD ||
|
vendor === VENDOR_INWORLD ||
|
||||||
vendor === VENDOR_WHISPER ||
|
vendor === VENDOR_WHISPER ||
|
||||||
vendor === VENDOR_CARTESIA ||
|
vendor === VENDOR_CARTESIA ||
|
||||||
vendor === VENDOR_OPENAI
|
vendor === VENDOR_OPENAI ||
|
||||||
|
vendor === VENDOR_DEEPGRAM_RIVER
|
||||||
? apiKey
|
? apiKey
|
||||||
: null,
|
: null,
|
||||||
}),
|
}),
|
||||||
@@ -979,6 +981,7 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => {
|
|||||||
vendor !== VENDOR_COBALT &&
|
vendor !== VENDOR_COBALT &&
|
||||||
vendor !== VENDOR_SONIOX &&
|
vendor !== VENDOR_SONIOX &&
|
||||||
vendor !== VENDOR_SPEECHMATICS &&
|
vendor !== VENDOR_SPEECHMATICS &&
|
||||||
|
vendor !== VENDOR_DEEPGRAM_RIVER &&
|
||||||
vendor !== VENDOR_OPENAI &&
|
vendor !== VENDOR_OPENAI &&
|
||||||
vendor != VENDOR_CUSTOM && (
|
vendor != VENDOR_CUSTOM && (
|
||||||
<label htmlFor="use_for_tts" className="chk">
|
<label htmlFor="use_for_tts" className="chk">
|
||||||
@@ -1747,6 +1750,7 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => {
|
|||||||
vendor === VENDOR_SONIOX ||
|
vendor === VENDOR_SONIOX ||
|
||||||
vendor === VENDOR_CARTESIA ||
|
vendor === VENDOR_CARTESIA ||
|
||||||
vendor === VENDOR_OPENAI ||
|
vendor === VENDOR_OPENAI ||
|
||||||
|
vendor === VENDOR_DEEPGRAM_RIVER ||
|
||||||
vendor === VENDOR_SPEECHMATICS) && (
|
vendor === VENDOR_SPEECHMATICS) && (
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label htmlFor={`${vendor}_apikey`}>
|
<label htmlFor={`${vendor}_apikey`}>
|
||||||
|
|||||||
Vendored
+5
@@ -12,6 +12,7 @@ export const VENDOR_MICROSOFT = "microsoft";
|
|||||||
export const VENDOR_WELLSAID = "wellsaid";
|
export const VENDOR_WELLSAID = "wellsaid";
|
||||||
export const VENDOR_NUANCE = "nuance";
|
export const VENDOR_NUANCE = "nuance";
|
||||||
export const VENDOR_DEEPGRAM = "deepgram";
|
export const VENDOR_DEEPGRAM = "deepgram";
|
||||||
|
export const VENDOR_DEEPGRAM_RIVER = "deepgramriver";
|
||||||
export const VENDOR_IBM = "ibm";
|
export const VENDOR_IBM = "ibm";
|
||||||
export const VENDOR_NVIDIA = "nvidia";
|
export const VENDOR_NVIDIA = "nvidia";
|
||||||
export const VENDOR_SONIOX = "soniox";
|
export const VENDOR_SONIOX = "soniox";
|
||||||
@@ -42,6 +43,10 @@ export const vendors: VendorOptions[] = [
|
|||||||
name: "Deepgram",
|
name: "Deepgram",
|
||||||
value: VENDOR_DEEPGRAM,
|
value: VENDOR_DEEPGRAM,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "Deepgram River Preview",
|
||||||
|
value: VENDOR_DEEPGRAM_RIVER,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "IBM",
|
name: "IBM",
|
||||||
value: VENDOR_IBM,
|
value: VENDOR_IBM,
|
||||||
|
|||||||
Vendored
+2
@@ -5,6 +5,7 @@ export type Vendor =
|
|||||||
| "WellSaid"
|
| "WellSaid"
|
||||||
| "Nuance"
|
| "Nuance"
|
||||||
| "Deepgram"
|
| "Deepgram"
|
||||||
|
| "DeepgramRiver"
|
||||||
| "IBM"
|
| "IBM"
|
||||||
| "Nvidia"
|
| "Nvidia"
|
||||||
| "Soniox"
|
| "Soniox"
|
||||||
@@ -97,6 +98,7 @@ export interface RecognizerVendors {
|
|||||||
speechmatics: Language[];
|
speechmatics: Language[];
|
||||||
cobalt: Language[];
|
cobalt: Language[];
|
||||||
assemblyai: Language[];
|
assemblyai: Language[];
|
||||||
|
deepgramriver: Language[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SynthesisVendors {
|
export interface SynthesisVendors {
|
||||||
|
|||||||
Reference in New Issue
Block a user