feat: 语音交互
This commit is contained in:
parent
bd27c853f4
commit
dd5dd9676c
@ -73,7 +73,6 @@ service.interceptors.request.use(config => {
|
|||||||
|
|
||||||
// 响应拦截器
|
// 响应拦截器
|
||||||
service.interceptors.response.use(res => {
|
service.interceptors.response.use(res => {
|
||||||
console.log('res', res)
|
|
||||||
// 未设置状态码则默认成功状态
|
// 未设置状态码则默认成功状态
|
||||||
const code = res.data.code || 200;
|
const code = res.data.code || 200;
|
||||||
// 获取错误信息
|
// 获取错误信息
|
||||||
|
|||||||
@ -269,7 +269,25 @@ export const collapseList = [
|
|||||||
],
|
],
|
||||||
outputType: 'json',
|
outputType: 'json',
|
||||||
outputParams: [{ name: 'coordinates', type: 'Object', children: [], desc: '坐标对象'}]
|
outputParams: [{ name: 'coordinates', type: 'Object', children: [], desc: '坐标对象'}]
|
||||||
},
|
}, {
|
||||||
|
icon: dialogueSvg,
|
||||||
|
name: "tts语音合成",
|
||||||
|
type: "serviceNode",
|
||||||
|
desc: "将指令文本(text)处理合成语音,输出语音路径(audioPath)",
|
||||||
|
action: 'GENERATE_ADVANCED_AUDIO',
|
||||||
|
outputType: 'json',
|
||||||
|
nodeParams: [{ name: 'text', type: "input", input: "", disabled: true }],
|
||||||
|
outputParams: [{ name: 'audioPath', type: 'string', desc: '语音路径', disabled: true}]
|
||||||
|
}, {
|
||||||
|
icon: dialogueSvg,
|
||||||
|
name: "意图识别",
|
||||||
|
type: "serviceNode",
|
||||||
|
desc: "意图识别,输出类型(type) 1: 语音交互 2: 触控交互 3: 闲聊 4: 知识问答",
|
||||||
|
action: 'INTENT_RECOGNITION',
|
||||||
|
outputType: 'json',
|
||||||
|
nodeParams: [{ name: 'text', type: "input", input: "", disabled: true }],
|
||||||
|
outputParams: [{ name: 'type', type: 'string', desc: '1:语音交互 2:触控交互 3: 闲聊 4:知识问答', disabled: true}]
|
||||||
|
}
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -279,7 +297,7 @@ export const collapseList = [
|
|||||||
icon: planSvg,
|
icon: planSvg,
|
||||||
name: "方案处理",
|
name: "方案处理",
|
||||||
type: "serviceNode",
|
type: "serviceNode",
|
||||||
desc: "语音交互-方案处理",
|
desc: "语音交互-方案处理,输入方案id(schemeId),输出唤醒语料(wakeCorpus)和测试语料数组(testCorpus)",
|
||||||
action: 'VI_SCHEME',
|
action: 'VI_SCHEME',
|
||||||
nodeParams: [{ name: 'schemeId', type: "input", input: "", disabled: true }],
|
nodeParams: [{ name: 'schemeId', type: "input", input: "", disabled: true }],
|
||||||
outputType: 'json',
|
outputType: 'json',
|
||||||
@ -292,7 +310,7 @@ export const collapseList = [
|
|||||||
icon: awakenSvg,
|
icon: awakenSvg,
|
||||||
name: "唤醒语料",
|
name: "唤醒语料",
|
||||||
type: "serviceNode",
|
type: "serviceNode",
|
||||||
desc: "唤醒语料处理",
|
desc: "唤醒语料处理,输入唤醒语料(wakeCorpus),输出语音路径(audioPath)",
|
||||||
action: 'VI_CORPUS_WAKE',
|
action: 'VI_CORPUS_WAKE',
|
||||||
outputType: 'json',
|
outputType: 'json',
|
||||||
nodeParams: [{ name: 'wakeCorpus', type: "input", input: "", disabled: true }],
|
nodeParams: [{ name: 'wakeCorpus', type: "input", input: "", disabled: true }],
|
||||||
@ -302,7 +320,7 @@ export const collapseList = [
|
|||||||
icon: dialogueSvg,
|
icon: dialogueSvg,
|
||||||
name: "单次对话语料",
|
name: "单次对话语料",
|
||||||
type: "serviceNode",
|
type: "serviceNode",
|
||||||
desc: "测试语料-单次对话语料处理",
|
desc: "测试语料-单次对话语料处理,输入单次对话语料(testCorpus),输出语音路径(audioPath)",
|
||||||
action: 'VI_CORPUS_SINGLE',
|
action: 'VI_CORPUS_SINGLE',
|
||||||
outputType: 'json',
|
outputType: 'json',
|
||||||
nodeParams: [{ name: 'testCorpus', type: "input", input: "", disabled: true }],
|
nodeParams: [{ name: 'testCorpus', type: "input", input: "", disabled: true }],
|
||||||
@ -312,7 +330,7 @@ export const collapseList = [
|
|||||||
icon: dialogueSvg,
|
icon: dialogueSvg,
|
||||||
name: "连续对话语料",
|
name: "连续对话语料",
|
||||||
type: "serviceNode",
|
type: "serviceNode",
|
||||||
desc: "测试语料-连续对话语料处理",
|
desc: "测试语料-连续对话语料处理,输入连续对话语料(testCorpus),输出语音路径(audioPath)",
|
||||||
action: 'VI_CORPUS_CONTINUOUS',
|
action: 'VI_CORPUS_CONTINUOUS',
|
||||||
outputType: 'json',
|
outputType: 'json',
|
||||||
nodeParams: [{ name: 'testCorpus', type: "input", input: "", disabled: true }],
|
nodeParams: [{ name: 'testCorpus', type: "input", input: "", disabled: true }],
|
||||||
@ -322,7 +340,7 @@ export const collapseList = [
|
|||||||
icon: audioSvg,
|
icon: audioSvg,
|
||||||
name: "播放语料",
|
name: "播放语料",
|
||||||
type: "serviceNode",
|
type: "serviceNode",
|
||||||
desc: "用于播放语料的节点",
|
desc: "用于播放语料的节点,需要输入语音路径(audioPath)和播放语音的设备id(deviceId)",
|
||||||
action: 'VI_PLAY_CORPUS',
|
action: 'VI_PLAY_CORPUS',
|
||||||
outputType: 'json',
|
outputType: 'json',
|
||||||
nodeParams: [
|
nodeParams: [
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -171,6 +171,11 @@
|
|||||||
<el-table-column label="商标" align="center" prop="trademark" width="150" show-overflow-tooltip />
|
<el-table-column label="商标" align="center" prop="trademark" width="150" show-overflow-tooltip />
|
||||||
<el-table-column label="型号规格" align="center" prop="modelSpec" width="150" show-overflow-tooltip />
|
<el-table-column label="型号规格" align="center" prop="modelSpec" width="150" show-overflow-tooltip />
|
||||||
<el-table-column label="数量" align="center" prop="quantity" />
|
<el-table-column label="数量" align="center" prop="quantity" />
|
||||||
|
<el-table-column label="项目状态" align="center" prop="status">
|
||||||
|
<template #default="{ row }">
|
||||||
|
{{ row.status == 0 ? '已执行': '未执行' }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" width="300px" class-name="small-padding fixed-width" fixed="right">
|
<el-table-column label="操作" align="center" width="300px" class-name="small-padding fixed-width" fixed="right">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button
|
<el-button
|
||||||
@ -182,9 +187,18 @@
|
|||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
|
v-if="row.status == 1"
|
||||||
@click="handleExecute(row)"
|
@click="handleExecute(row)"
|
||||||
>执行
|
>执行
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
icon="DataLine"
|
||||||
|
v-if="row.status == 0"
|
||||||
|
link
|
||||||
|
type="primary"
|
||||||
|
@click="handleOpenDashboard(row)"
|
||||||
|
>可视化
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
@ -199,13 +213,6 @@
|
|||||||
v-hasPermi="['system:project:remove']"
|
v-hasPermi="['system:project:remove']"
|
||||||
>删除</el-button
|
>删除</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
|
||||||
icon="DataLine"
|
|
||||||
link
|
|
||||||
type="primary"
|
|
||||||
@click="handleOpenDashboard(row)"
|
|
||||||
>流程可视化
|
|
||||||
</el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user