mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-01-25 02:08:19 +00:00
remove use_stream in elevenlabs and whisper speech (#406)
This commit is contained in:
@@ -419,7 +419,6 @@ export interface SpeechCredential {
|
||||
model_id: null | string;
|
||||
model: null | string;
|
||||
options: null | string;
|
||||
use_streaming: number;
|
||||
deepgram_stt_uri: null | string;
|
||||
deepgram_stt_use_tls: number;
|
||||
}
|
||||
|
||||
@@ -145,7 +145,6 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => {
|
||||
const [optionsInitialChecked, setOptionsInitialChecked] = useState(false);
|
||||
const [options, setOptions] = useState("");
|
||||
const [tmpOptions, setTmpOptions] = useState("");
|
||||
const [useStreaming, setUseStreaming] = useState(false);
|
||||
const [deepgramSttUri, setDeepgramSttUri] = useState("");
|
||||
const [tmpDeepgramSttUri, setTmpDeepgramSttUri] = useState("");
|
||||
const [deepgramSttUseTls, setDeepgramSttUseTls] = useState(false);
|
||||
@@ -301,9 +300,6 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => {
|
||||
...(vendor === VENDOR_ELEVENLABS && {
|
||||
options: options || null,
|
||||
}),
|
||||
...(vendor === VENDOR_ELEVENLABS && {
|
||||
use_streaming: useStreaming ? 1 : 0,
|
||||
}),
|
||||
...(vendor === VENDOR_DEEPGRAM && {
|
||||
deepgram_stt_uri: deepgramSttUri || null,
|
||||
deepgram_stt_use_tls: deepgramSttUseTls ? 1 : 0,
|
||||
@@ -551,9 +547,6 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => {
|
||||
setOptions(credential.data.options);
|
||||
setOptionsInitialChecked(true);
|
||||
}
|
||||
if (credential?.data?.use_streaming) {
|
||||
setUseStreaming(credential.data.use_streaming > 0 ? true : false);
|
||||
}
|
||||
if (credential?.data?.vendor === VENDOR_GOOGLE) {
|
||||
// let try to check if there is custom voices
|
||||
getGoogleCustomVoices({
|
||||
@@ -778,20 +771,6 @@ export const SpeechServiceForm = ({ credential }: SpeechServiceFormProps) => {
|
||||
)}
|
||||
</fieldset>
|
||||
)}
|
||||
{(vendor === VENDOR_ELEVENLABS || vendor === VENDOR_WHISPER) && (
|
||||
<fieldset>
|
||||
<label htmlFor="streaming_mode" className="chk">
|
||||
<input
|
||||
id="streaming_mode"
|
||||
name="streaming_mode"
|
||||
type="checkbox"
|
||||
onChange={(e) => setUseStreaming(e.target.checked)}
|
||||
defaultChecked={useStreaming}
|
||||
/>
|
||||
<div>Use Streaming</div>
|
||||
</label>
|
||||
</fieldset>
|
||||
)}
|
||||
{vendor === VENDOR_COBALT && (
|
||||
<fieldset>
|
||||
<label htmlFor="cobalt_server_url">
|
||||
|
||||
Reference in New Issue
Block a user