diff --git a/src/api/types.ts b/src/api/types.ts
index d460705..6cdc61e 100644
--- a/src/api/types.ts
+++ b/src/api/types.ts
@@ -307,6 +307,7 @@ export interface SpeechCredential {
stt_api_key: null | string;
stt_region: null | string;
instance_id: null | string;
+ riva_server_uri: null | string;
}
export interface Alert {
diff --git a/src/containers/internal/views/speech-services/form.tsx b/src/containers/internal/views/speech-services/form.tsx
index eb2884d..12e0cad 100644
--- a/src/containers/internal/views/speech-services/form.tsx
+++ b/src/containers/internal/views/speech-services/form.tsx
@@ -26,6 +26,7 @@ import {
VENDOR_WELLSAID,
VENDOR_DEEPGRAM,
VENDOR_IBM,
+ VENDOR_NVIDIA,
} from "src/vendor";
import { MSG_REQUIRED_FIELDS } from "src/constants";
import {
@@ -75,6 +76,7 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => {
const [tmpCustomTtsEndpoint, setTmpCustomTtsEndpoint] = useState("");
const [customSttEndpoint, setCustomSttEndpoint] = useState("");
const [tmpCustomSttEndpoint, setTmpCustomSttEndpoint] = useState("");
+ const [rivaServerUri, setRivaServerUri] = useState("");
const handleFile = (file: File) => {
const handleError = () => {
@@ -136,6 +138,9 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => {
tts_api_key: ttsApiKey || null,
tts_region: ttsRegion || null,
}),
+ ...(vendor === VENDOR_NVIDIA && {
+ riva_server_uri: rivaServerUri || null,
+ }),
};
if (credential && credential.data) {
@@ -173,6 +178,7 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => {
: null,
client_id: vendor === VENDOR_NUANCE ? clientId : null,
secret: vendor === VENDOR_NUANCE ? secretKey : null,
+ riva_server_uri: vendor == VENDOR_NVIDIA ? rivaServerUri : null,
})
.then(() => {
toastSuccess("Speech credential created successfully");
@@ -261,6 +267,10 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => {
setInstanceId(credential.data.instance_id);
}
+ if (credential.data.riva_server_uri) {
+ setRivaServerUri(credential.data.riva_server_uri);
+ }
+
setUseCustomTts(credential.data.use_custom_tts > 0 ? true : false);
setUseCustomStt(credential.data.use_custom_stt > 0 ? true : false);
setCustomTtsEndpoint(credential.data.custom_tts_endpoint || "");
@@ -626,6 +636,24 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => {
)}
+ {vendor === VENDOR_NVIDIA && (
+
+
+
+ )}
+