mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-01-25 02:08:24 +00:00
fix tts stt langs and voices when credential is provided (#282)
This commit is contained in:
@@ -535,11 +535,7 @@ async function getLanguagesVoicesForCobalt(credential) {
|
||||
}
|
||||
|
||||
async function getLanguagesVoicesForSoniox(credential) {
|
||||
if (credential) {
|
||||
|
||||
} else {
|
||||
return tranform(undefined, SttSonioxLanguagesVoices);
|
||||
}
|
||||
return tranform(undefined, SttSonioxLanguagesVoices);
|
||||
}
|
||||
|
||||
async function getLanguagesVoicesForElevenlabs(credential) {
|
||||
@@ -585,19 +581,11 @@ async function getLanguagesVoicesForElevenlabs(credential) {
|
||||
}
|
||||
|
||||
async function getLanguagesVoicesForAssemblyAI(credential) {
|
||||
if (credential) {
|
||||
|
||||
} else {
|
||||
return tranform(undefined, SttAssemblyaiLanguagesVoices);
|
||||
}
|
||||
return tranform(undefined, SttAssemblyaiLanguagesVoices);
|
||||
}
|
||||
|
||||
async function getLanguagesVoicesForWhisper(credential) {
|
||||
if (credential) {
|
||||
|
||||
} else {
|
||||
return tranform(TtsWhisperLanguagesVoices, undefined, TtsModelWhisper);
|
||||
}
|
||||
return tranform(TtsWhisperLanguagesVoices, undefined, TtsModelWhisper);
|
||||
}
|
||||
|
||||
function tranform(tts, stt, models) {
|
||||
|
||||
Reference in New Issue
Block a user