fix: tts default params
This commit is contained in:
@@ -165,7 +165,7 @@ export default {
|
|||||||
'playground.params.duration': 'Duration (seconds)',
|
'playground.params.duration': 'Duration (seconds)',
|
||||||
'playground.params.resolution': 'Resolution',
|
'playground.params.resolution': 'Resolution',
|
||||||
'playground.params.taskType': 'Task Type',
|
'playground.params.taskType': 'Task Type',
|
||||||
'playground.params.voiceStyle': 'Instructions',
|
'playground.params.instructions': 'Instructions',
|
||||||
'playground.params.maxTokens': 'Max New Tokens',
|
'playground.params.maxTokens': 'Max New Tokens',
|
||||||
'playground.params.refAudio': 'Reference Audio',
|
'playground.params.refAudio': 'Reference Audio',
|
||||||
'playground.params.refAudio.tips':
|
'playground.params.refAudio.tips':
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ export default {
|
|||||||
'playground.params.duration': 'Duration (seconds)',
|
'playground.params.duration': 'Duration (seconds)',
|
||||||
'playground.params.resolution': 'Resolution',
|
'playground.params.resolution': 'Resolution',
|
||||||
'playground.params.taskType': 'Task Type',
|
'playground.params.taskType': 'Task Type',
|
||||||
'playground.params.voiceStyle': 'Instructions',
|
'playground.params.instructions': 'Instructions',
|
||||||
'playground.params.maxTokens': 'Max New Tokens',
|
'playground.params.maxTokens': 'Max New Tokens',
|
||||||
'playground.params.refAudio': 'Reference Audio',
|
'playground.params.refAudio': 'Reference Audio',
|
||||||
'playground.params.refAudio.tips':
|
'playground.params.refAudio.tips':
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ export default {
|
|||||||
'playground.params.duration': 'Duration (seconds)',
|
'playground.params.duration': 'Duration (seconds)',
|
||||||
'playground.params.resolution': 'Resolution',
|
'playground.params.resolution': 'Resolution',
|
||||||
'playground.params.taskType': 'Task Type',
|
'playground.params.taskType': 'Task Type',
|
||||||
'playground.params.voiceStyle': 'Instructions',
|
'playground.params.instructions': 'Instructions',
|
||||||
'playground.params.maxTokens': 'Max New Tokens',
|
'playground.params.maxTokens': 'Max New Tokens',
|
||||||
'playground.params.refAudio': 'Reference Audio',
|
'playground.params.refAudio': 'Reference Audio',
|
||||||
'playground.params.refAudio.tips':
|
'playground.params.refAudio.tips':
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ export default {
|
|||||||
'playground.params.duration': '时长 (秒)',
|
'playground.params.duration': '时长 (秒)',
|
||||||
'playground.params.resolution': '分辨率',
|
'playground.params.resolution': '分辨率',
|
||||||
'playground.params.taskType': '任务类型',
|
'playground.params.taskType': '任务类型',
|
||||||
'playground.params.voiceStyle': '情感',
|
'playground.params.instructions': '说明',
|
||||||
'playground.params.maxTokens': '最大生成 Token 数',
|
'playground.params.maxTokens': '最大生成 Token 数',
|
||||||
'playground.params.refAudio': '参考音频',
|
'playground.params.refAudio': '参考音频',
|
||||||
'playground.params.refAudio.tips':
|
'playground.params.refAudio.tips':
|
||||||
|
|||||||
@@ -45,10 +45,10 @@ export const TTSAdvancedParamsConfig: ParamsSchema[] = [
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'AutoComplete',
|
type: 'Input',
|
||||||
name: 'instructions',
|
name: 'instructions',
|
||||||
label: {
|
label: {
|
||||||
text: 'playground.params.voiceStyle',
|
text: 'playground.params.instructions',
|
||||||
isLocalized: true
|
isLocalized: true
|
||||||
},
|
},
|
||||||
attrs: {
|
attrs: {
|
||||||
@@ -78,7 +78,8 @@ export const TTSAdvancedParamsConfig: ParamsSchema[] = [
|
|||||||
attrs: {
|
attrs: {
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
step: 1,
|
step: 1,
|
||||||
min: 0
|
min: 0,
|
||||||
|
max: 4096
|
||||||
},
|
},
|
||||||
formItemAttrs: {
|
formItemAttrs: {
|
||||||
getValueProps: (value: number) => {
|
getValueProps: (value: number) => {
|
||||||
|
|||||||
@@ -264,7 +264,6 @@ const GroundTTS: React.FC<MessageProps> = forwardRef((props, ref) => {
|
|||||||
...pre,
|
...pre,
|
||||||
..._.pick(model?.meta || {}, MetaFields),
|
..._.pick(model?.meta || {}, MetaFields),
|
||||||
task_type: model?.meta?.task_type,
|
task_type: model?.meta?.task_type,
|
||||||
max_new_tokens: model?.meta?.max_model_len || null,
|
|
||||||
model: value,
|
model: value,
|
||||||
voice: newList[0]?.value
|
voice: newList[0]?.value
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user