From 4a5407502a055256ab89328990ecf2a68889821f Mon Sep 17 00:00:00 2001 From: 2ndelement <72551339+2ndelement@users.noreply.github.com> Date: Sun, 23 Apr 2023 01:55:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=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 | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/tts/voicevox.js b/utils/tts/voicevox.js index 11fdc6d..bc61680 100644 --- a/utils/tts/voicevox.js +++ b/utils/tts/voicevox.js @@ -26,6 +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' if (speaker === '随机') { speaker = supportConfigurations[Math.floor(Math.random() * supportConfigurations.length)].name