[fix] switch in tts not breaking
This commit is contained in:
@@ -60,6 +60,7 @@ export async function sayTTS(character:character,text:string) {
|
|||||||
else{
|
else{
|
||||||
alertError(await da.text())
|
alertError(await da.text())
|
||||||
}
|
}
|
||||||
|
break
|
||||||
}
|
}
|
||||||
case "VOICEVOX": {
|
case "VOICEVOX": {
|
||||||
const jpText = await translateVox(text)
|
const jpText = await translateVox(text)
|
||||||
@@ -95,6 +96,7 @@ export async function sayTTS(character:character,text:string) {
|
|||||||
sourceNode.start();
|
sourceNode.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
break
|
||||||
}
|
}
|
||||||
case 'openai':{
|
case 'openai':{
|
||||||
const key = db.openAIKey
|
const key = db.openAIKey
|
||||||
|
|||||||
Reference in New Issue
Block a user