From 78a99801e7855fba1b2bcfd6d6c9e8a91d90a4ab Mon Sep 17 00:00:00 2001 From: 2ndelement <72551339+2ndelement@users.noreply.github.com> Date: Sun, 23 Apr 2023 02:01:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E6=80=A7=E6=A0=BC=E5=88=87=E6=8D=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/tts/voicevox.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/tts/voicevox.js b/utils/tts/voicevox.js index bc61680..3eb564a 100644 --- a/utils/tts/voicevox.js +++ b/utils/tts/voicevox.js @@ -26,8 +26,7 @@ const newFetch = (url, options = {}) => { async function generateAudio(text, options = {}) { let host = Config.voicevoxSpace - logger.info(`用户配置speaker:${options.speaker}`) - let speaker = options.speaker?.speaker || '护士机器子T' + let speaker = options.speaker || '随机' if (speaker === '随机') { speaker = supportConfigurations[Math.floor(Math.random() * supportConfigurations.length)].name }