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,