feat: 语音模式下,自动转文字的阈值可以调整

This commit is contained in:
ikechan8370 2023-03-04 22:21:35 +08:00
parent 5ddeebfcc0
commit 19fca0e174
2 changed files with 13 additions and 1 deletions

View file

@ -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: '长文本自动转图片',

View file

@ -10,6 +10,7 @@ const defaultConfig = {
defaultTTSRole: '纳西妲',
autoUsePicture: true,
autoUsePictureThreshold: 1200,
ttsAutoFallbackThreshold: 99,
conversationPreserveTime: 0,
toggleMode: 'at',
quoteReply: true,