From 5d8974672e848837429be31fdc251dd335e21d27 Mon Sep 17 00:00:00 2001 From: zhanghao <774378400@qq.com> Date: Fri, 17 Jul 2026 10:59:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E8=8A=82=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/MainWorkspace.vue | 45 ++++++++++++++++--- .../speech_synthesis/components/StatCards.vue | 2 +- .../components/params/BasicNodeParams.vue | 2 +- src/views/flow/config.js | 2 +- 4 files changed, 42 insertions(+), 9 deletions(-) diff --git a/src/views/corpusManger/speech_synthesis/components/MainWorkspace.vue b/src/views/corpusManger/speech_synthesis/components/MainWorkspace.vue index 1ca38e6..27b38f9 100644 --- a/src/views/corpusManger/speech_synthesis/components/MainWorkspace.vue +++ b/src/views/corpusManger/speech_synthesis/components/MainWorkspace.vue @@ -7,7 +7,7 @@ - + @@ -160,6 +160,15 @@ const languageOption = ref([ }, { label: '四川话', value: '四川话' + }, { + label: '韩语', + value: '韩语' + }, { + label: '日语', + value: '日语' + }, { + label: '俄语', + value: '俄语' } ]) @@ -197,7 +206,7 @@ const handleClose = (tag) => { const form = ref({ tags: [], model: '科大讯飞', - voice: 'x4_xiaoyan', + voice: '', speed: 50, volume: 50, pitch: 50, @@ -236,11 +245,35 @@ const dialectOption = ref([ const voiceOption = ref([ { - label: '女声', - value: 'x4_xiaoyan' - }, { - label: '男声', + label: '普通话-男声', value: 'x4_lingbosong' + }, { + label: '普通话-女声', + value: 'x4_yezi' + }, { + label: '英语-女声', + value: 'x4_EnUs_Laura_education' + }, { + label: '英语-男声', + value: 'x4_enus_ryan_assist' + }, { + label: '粤语-女声', + value: 'x3_xiaoyue' + }, { + label: '东北话-女声', + value: 'x4_xiaobei' + }, { + label: '四川话-女声', + value: 'x3_yezi_sc' + }, { + label: '韩语-女声', + value: 'x2_KoKr_Miya' + }, { + label: '日语-女声', + value: 'x2_JaJp_ZhongCun' + }, { + label: '俄语-女声', + value: 'x2_RuRu_Keshu' } ]) diff --git a/src/views/corpusManger/speech_synthesis/components/StatCards.vue b/src/views/corpusManger/speech_synthesis/components/StatCards.vue index 2d900e9..dd4656b 100644 --- a/src/views/corpusManger/speech_synthesis/components/StatCards.vue +++ b/src/views/corpusManger/speech_synthesis/components/StatCards.vue @@ -68,7 +68,7 @@ const getDashboard = async () => { stats.value[1].trend = res.data.todayTasksGrowth stats.value[2].value = res.data.totalLanguages stats.value[3].value = res.data.totalVoices - stats.value[4].value = res.data.avgDuration + stats.value[4].value = res.data.avgDuration.toFixed(2) stats.value[4].trend = res.data.avgDurationGrowth } } diff --git a/src/views/flow/components/params/BasicNodeParams.vue b/src/views/flow/components/params/BasicNodeParams.vue index e78f5ab..f41c34e 100644 --- a/src/views/flow/components/params/BasicNodeParams.vue +++ b/src/views/flow/components/params/BasicNodeParams.vue @@ -231,7 +231,7 @@ const robotFormAction = ref() const submitRobotForm = () => { if (robotFormAction.value === 'AGV_MOVE_TO_POINT') { - } else if (robotFormAction.value === 'ALM') { + } else if (robotFormAction.value === 'ARM_MOVE_TO_POINT') { robotFormRef.value.validate(async (valid) => { if (valid) { try { diff --git a/src/views/flow/config.js b/src/views/flow/config.js index 135e23f..b7127c3 100644 --- a/src/views/flow/config.js +++ b/src/views/flow/config.js @@ -383,7 +383,7 @@ function handler(params) { name: "机械臂", type: "serviceNode", desc: "控制机器人的手臂", - action: 'ALM', + action: 'ARM_MOVE_TO_POINT', nodeType: 'EDGE', nodeParams: [ { name: "deviceId", type: "input", input: "", disabled: true },