support rimelabs arcana (#510)

This commit is contained in:
Hoan Luu Huu authored and GitHub committed 2025-05-07 07:26:57 -04:00
1 parent 94181873f3
commit db3a0cc646
1 file changed
+5 -1
@@ -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;
}