[fix] switch in tts not breaking

This commit is contained in:
kwaroran
2023-11-08 16:59:08 +09:00
parent 67ed97f70b
commit 1ede386510

View File

@@ -60,6 +60,7 @@ export async function sayTTS(character:character,text:string) {
else{
alertError(await da.text())
}
break
}
case "VOICEVOX": {
const jpText = await translateVox(text)
@@ -95,6 +96,7 @@ export async function sayTTS(character:character,text:string) {
sourceNode.start();
}
}
break
}
case 'openai':{
const key = db.openAIKey