fix: 文字过长无法转换

This commit is contained in:
ikechan8370 2023-03-04 19:01:53 +08:00
parent 0468da955c
commit ac5b718531

View file

@ -554,7 +554,7 @@ export class chatgpt extends plugin {
})
}
if (useTTS) {
if (Config.ttsSpace) {
if (Config.ttsSpace && response.length <= 99) {
let wav = await generateAudio(response, speaker, '中文')
e.reply(segment.record(wav))
} else {