From 19fca0e174540a89163ce60da580cba4aa120029 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Sat, 4 Mar 2023 22:21:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AF=AD=E9=9F=B3=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E4=B8=8B=EF=BC=8C=E8=87=AA=E5=8A=A8=E8=BD=AC=E6=96=87=E5=AD=97?= =?UTF-8?q?=E7=9A=84=E9=98=88=E5=80=BC=E5=8F=AF=E4=BB=A5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- guoba.support.js | 13 ++++++++++++- utils/config.js | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/guoba.support.js b/guoba.support.js index 01b4703..e9ad930 100644 --- a/guoba.support.js +++ b/guoba.support.js @@ -57,10 +57,21 @@ export function supportGuoba () { }, { field: 'defaultTTSRole', - label: '语音模式默认橘色', + label: '语音模式默认角色', bottomHelpMessage: '语音模式下,未指定角色时使用的角色。若为空,将使用随机角色回复。', component: 'Input' }, + { + field: 'ttsAutoFallbackThreshold', + label: '语音转文字阈值', + helpMessage: '语音模式下,字数超过这个阈值就降级为文字', + bottomHelpMessage: '语音转为文字的阈值。', + component: 'InputNumber', + componentProps: { + min: 0, + max: 299 + } + }, { field: 'autoUsePicture', label: '长文本自动转图片', diff --git a/utils/config.js b/utils/config.js index d555a09..8c08bef 100644 --- a/utils/config.js +++ b/utils/config.js @@ -10,6 +10,7 @@ const defaultConfig = { defaultTTSRole: '纳西妲', autoUsePicture: true, autoUsePictureThreshold: 1200, + ttsAutoFallbackThreshold: 99, conversationPreserveTime: 0, toggleMode: 'at', quoteReply: true,