mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2025-12-19 05:37:43 +00:00
Merge branch 'main' into feat/elevenlabs_stt
This commit is contained in:
@@ -450,6 +450,7 @@ export interface SpeechCredential {
|
|||||||
resemble_tts_uri: null | string;
|
resemble_tts_uri: null | string;
|
||||||
resemble_tts_use_tls: number;
|
resemble_tts_use_tls: number;
|
||||||
api_uri: null | string;
|
api_uri: null | string;
|
||||||
|
houndify_server_uri: null | string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Alert {
|
export interface Alert {
|
||||||
|
|||||||
@@ -225,6 +225,7 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => {
|
|||||||
useState(false);
|
useState(false);
|
||||||
const [resembleTtsUseTls, setResembleTtsUseTls] = useState(false);
|
const [resembleTtsUseTls, setResembleTtsUseTls] = useState(false);
|
||||||
const [tmpResembleTtsUseTls, setTmpResembleTtsUseTls] = useState(false);
|
const [tmpResembleTtsUseTls, setTmpResembleTtsUseTls] = useState(false);
|
||||||
|
const [houndifyServerUri, setHoundifyServerUri] = useState("");
|
||||||
const handleFile = (file: File) => {
|
const handleFile = (file: File) => {
|
||||||
const handleError = () => {
|
const handleError = () => {
|
||||||
setGoogleServiceKey(null);
|
setGoogleServiceKey(null);
|
||||||
@@ -464,6 +465,7 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => {
|
|||||||
client_id: clientId || null,
|
client_id: clientId || null,
|
||||||
client_key: clientKey || null,
|
client_key: clientKey || null,
|
||||||
user_id: userId || null,
|
user_id: userId || null,
|
||||||
|
houndify_server_uri: houndifyServerUri || null,
|
||||||
}),
|
}),
|
||||||
...(vendor === VENDOR_COBALT && {
|
...(vendor === VENDOR_COBALT && {
|
||||||
cobalt_server_uri: cobaltServerUri || null,
|
cobalt_server_uri: cobaltServerUri || null,
|
||||||
@@ -883,6 +885,10 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => {
|
|||||||
setUserId(credential.data.user_id);
|
setUserId(credential.data.user_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (credential?.data?.houndify_server_uri) {
|
||||||
|
setHoundifyServerUri(credential.data.houndify_server_uri);
|
||||||
|
}
|
||||||
|
|
||||||
if (credential?.data?.voice_engine) {
|
if (credential?.data?.voice_engine) {
|
||||||
setTtsModelId(credential.data.voice_engine);
|
setTtsModelId(credential.data.voice_engine);
|
||||||
}
|
}
|
||||||
@@ -1488,6 +1494,15 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => {
|
|||||||
onChange={(e) => setUserId(e.target.value)}
|
onChange={(e) => setUserId(e.target.value)}
|
||||||
disabled={credential ? true : false}
|
disabled={credential ? true : false}
|
||||||
/>
|
/>
|
||||||
|
<label htmlFor="houndify_server_uri">Audio Endpoint</label>
|
||||||
|
<input
|
||||||
|
id="houndify_server_uri"
|
||||||
|
type="text"
|
||||||
|
name="houndify_server_uri"
|
||||||
|
placeholder="Audio Endpoint (optional)"
|
||||||
|
value={houndifyServerUri}
|
||||||
|
onChange={(e) => setHoundifyServerUri(e.target.value)}
|
||||||
|
/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
)}
|
)}
|
||||||
{vendor === VENDOR_NUANCE && (
|
{vendor === VENDOR_NUANCE && (
|
||||||
|
|||||||
Reference in New Issue
Block a user