diff --git a/apps/chat.js b/apps/chat.js index 4298395..0611825 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -739,7 +739,7 @@ export class chatgpt extends plugin { }) } if (useTTS) { - if (Config.ttsSpace && response.length <= 299) { + if (Config.ttsSpace && response.length <= Config.ttsAutoFallbackThreshold) { let wav = await generateAudio(response, speaker, '中日混合(中文用[ZH][ZH]包裹起来,日文用[JA][JA]包裹起来)') await e.reply(segment.record(wav)) if (Config.alsoSendText) {