From 9b857e587f629db006774affa0238ecf85848c98 Mon Sep 17 00:00:00 2001 From: random-username-423 <116709430+random-username-423@users.noreply.github.com> Date: Sat, 2 Dec 2023 19:01:46 +0900 Subject: [PATCH] Add missed break statement breaks statement was missed in 'openai' tts case. It makes a bug that requesting openai TTS and novelai TTS both. This commit will fix this issue. --- src/ts/process/tts.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ts/process/tts.ts b/src/ts/process/tts.ts index 0ba86fda..3a8bb41c 100644 --- a/src/ts/process/tts.ts +++ b/src/ts/process/tts.ts @@ -145,6 +145,7 @@ export async function sayTTS(character:character,text:string) { alertError((language.errors.httpError + `${Buffer.from(res.data).toString()}`)) } } + break; } case 'novelai': { @@ -294,4 +295,4 @@ export async function FixNAITTS(data:character){ } return data -} \ No newline at end of file +}