diff --git a/src/api/types.ts b/src/api/types.ts index fc1afbc..518003b 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -450,6 +450,7 @@ export interface SpeechCredential { resemble_tts_uri: null | string; resemble_tts_use_tls: number; api_uri: null | string; + houndify_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 d1c387c..84693ff 100644 --- a/src/containers/internal/views/speech-services/form.tsx +++ b/src/containers/internal/views/speech-services/form.tsx @@ -225,6 +225,7 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => { useState(false); const [resembleTtsUseTls, setResembleTtsUseTls] = useState(false); const [tmpResembleTtsUseTls, setTmpResembleTtsUseTls] = useState(false); + const [houndifyServerUri, setHoundifyServerUri] = useState(""); const handleFile = (file: File) => { const handleError = () => { setGoogleServiceKey(null); @@ -462,6 +463,7 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => { client_id: clientId || null, client_key: clientKey || null, user_id: userId || null, + houndify_server_uri: houndifyServerUri || null, }), ...(vendor === VENDOR_COBALT && { cobalt_server_uri: cobaltServerUri || null, @@ -878,6 +880,10 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => { setUserId(credential.data.user_id); } + if (credential?.data?.houndify_server_uri) { + setHoundifyServerUri(credential.data.houndify_server_uri); + } + if (credential?.data?.voice_engine) { setTtsModelId(credential.data.voice_engine); } @@ -1484,6 +1490,15 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => { onChange={(e) => setUserId(e.target.value)} disabled={credential ? true : false} /> + + setHoundifyServerUri(e.target.value)} + /> )} {vendor === VENDOR_NUANCE && (