[fix] do not alert empty text

This commit is contained in:
kwaroran
2023-11-29 00:38:37 +09:00
parent ff4c904fb6
commit 106b4f2b47

View File

@@ -150,7 +150,6 @@ export async function sayTTS(character:character,text:string) {
case 'novelai': {
const audioContext = new AudioContext();
if(text === ''){
alertError(language.errors.emptyText);
break;
}
const response = await globalFetch(`https://api.novelai.net/ai/generate-voice?text=${text}&voice=-1&seed=${character.naittsConfig.voice}&opus=false&version=${character.naittsConfig.version}`, {