support rimelabs arcana (#510)

This commit is contained in:
Hoan Luu Huu
2025-05-07 18:26:57 +07:00
committed by GitHub
parent 94181873f3
commit db3a0cc646

View File

@@ -290,7 +290,11 @@ export const SpeechProviderSelection = ({
return;
}
if (synthVendor === VENDOR_RIMELABS) {
const newLang = json.tts.find((lang) => lang.value === "eng");
let newLang = json.tts.find((lang) => lang.value === "eng");
// If the new language doesn't map then default to the first one
if (!newLang) {
newLang = json.tts[0];
}
updateTtsVoice(newLang!.value, newLang!.voices[0].value);
return;
}