mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-07-04 19:21:58 +00:00
fix deepgram tts default model and update stt languages (#370)
This commit is contained in:
@@ -97,10 +97,11 @@ export const SpeechProviderSelection = ({
|
||||
|
||||
useEffect(() => {
|
||||
currentVendor.current = synthVendor;
|
||||
if (!synthesis || synthVendor.startsWith("custom:")) {
|
||||
return;
|
||||
}
|
||||
if (synthVendor === VENDOR_DEEPGRAM) {
|
||||
if (
|
||||
!synthesis ||
|
||||
synthVendor.startsWith("custom:") ||
|
||||
synthVendor === VENDOR_DEEPGRAM
|
||||
) {
|
||||
return;
|
||||
}
|
||||
const voiceOpts = synthesis[synthVendor as keyof SynthesisVendors]
|
||||
@@ -230,7 +231,10 @@ export const SpeechProviderSelection = ({
|
||||
|
||||
/** DEEPGRAM only support voice */
|
||||
if (vendor.toString().startsWith(VENDOR_DEEPGRAM)) {
|
||||
setSynthVoice("");
|
||||
if (ttsModels) {
|
||||
setSynthVoice(ttsModels[VENDOR_DEEPGRAM][0].value);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -121,6 +121,22 @@ export const languages: Language[] = [
|
||||
name: "Ukrainian - general",
|
||||
code: "uk",
|
||||
},
|
||||
{
|
||||
name: "Flemish - general",
|
||||
code: "nl-BE",
|
||||
},
|
||||
{
|
||||
name: "Danish - general",
|
||||
code: "da",
|
||||
},
|
||||
{
|
||||
name: "Tamil - general",
|
||||
code: "ta",
|
||||
},
|
||||
{
|
||||
name: "Tamasheq - general",
|
||||
code: "taq",
|
||||
},
|
||||
];
|
||||
|
||||
export default languages;
|
||||
|
||||
Reference in New Issue
Block a user