diff --git a/src/api/face-detect.js b/src/api/face-detect.js index 002d751..e97b382 100644 --- a/src/api/face-detect.js +++ b/src/api/face-detect.js @@ -19,16 +19,15 @@ export function getFaceDetectList(params) { /** * 检测图片中的人脸信息 - * @param {String} imageUrl 图片URL + * @param {Object} params 检测参数 * @returns {Promise} */ -export function detectFace(imageUrl) { +export function detectFace(params) { + console.log('detectFace API 调用参数:', params) return request({ url: '/face-detect/detect', method: 'post', - params: { - imageUrl - } + params }) } diff --git a/src/router/index.js b/src/router/index.js index 8cfbed2..cecbc63 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -30,6 +30,7 @@ import Layout from '@/layout' 静态路由(constantRoutes): 菜单内容是前端写死 动态路由: 菜单内容是动态获取 */ +// 静态路由 export const constantRoutes = [ { path: '/login', @@ -263,4 +264,7 @@ export function resetRouter() { router.matcher = newRouter.matcher // reset router } +// 动态路由(异步路由) +export const asyncRoutes = [] + export default router diff --git a/src/views/audio-statistics/audio-generation.vue b/src/views/audio-statistics/audio-generation.vue index 4878c60..449a9a9 100644 --- a/src/views/audio-statistics/audio-generation.vue +++ b/src/views/audio-statistics/audio-generation.vue @@ -453,18 +453,22 @@ export default { // 所有音色选项 allVoiceOptions: { 'fnlp/MOSS-TTSD-v0.5': [ - { label: 'alex', value: 'fnlp/MOSS-TTSD-v0.5:alex' }, - { label: 'anna', value: 'fnlp/MOSS-TTSD-v0.5:anna' }, - { label: 'bella', value: 'fnlp/MOSS-TTSD-v0.5:bella' }, - { label: 'benjamin', value: 'fnlp/MOSS-TTSD-v0.5:benjamin' }, - { label: 'charles', value: 'fnlp/MOSS-TTSD-v0.5:charles' }, - { label: 'claire', value: 'fnlp/MOSS-TTSD-v0.5:claire' }, - { label: 'david', value: 'fnlp/MOSS-TTSD-v0.5:david' }, - { label: 'diana', value: 'fnlp/MOSS-TTSD-v0.5:diana' } + { label: '男性沉稳中低音', value: 'FunAudioLLM/CosyVoice2-0.5B:alex' }, + { label: '女性温柔清晰标准音', value: 'FunAudioLLM/CosyVoice2-0.5B:anna' }, + { label: '女性甜美活泼年轻', value: 'FunAudioLLM/CosyVoice2-0.5B:bella' }, + { label: '男性成熟稳重权威', value: 'FunAudioLLM/CosyVoice2-0.5B:benjamin' }, + { label: '男性阳光活力年轻', value: 'FunAudioLLM/CosyVoice2-0.5B:david' }, + { label: '女性干练清晰商务风', value: 'FunAudioLLM/CosyVoice2-0.5B:claire' }, + { label: '女性优雅知性柔和', value: 'FunAudioLLM/CosyVoice2-0.5B:diana' } ], 'FunAudioLLM/CosyVoice2-0.5B': [ - { label: 'longgaoseng', value: 'FunAudioLLM/CosyVoice2-0.5B:longgaoseng' }, - { label: 'claire', value: 'FunAudioLLM/CosyVoice2-0.5B:claire' } + { label: '男性沉稳中低音', value: 'FunAudioLLM/CosyVoice2-0.5B:alex' }, + { label: '女性温柔清晰标准音', value: 'FunAudioLLM/CosyVoice2-0.5B:anna' }, + { label: '女性甜美活泼年轻', value: 'FunAudioLLM/CosyVoice2-0.5B:bella' }, + { label: '男性成熟稳重权威', value: 'FunAudioLLM/CosyVoice2-0.5B:benjamin' }, + { label: '男性阳光活力年轻', value: 'FunAudioLLM/CosyVoice2-0.5B:david' }, + { label: '女性干练清晰商务风', value: 'FunAudioLLM/CosyVoice2-0.5B:claire' }, + { label: '女性优雅知性柔和', value: 'FunAudioLLM/CosyVoice2-0.5B:diana' } ] } } diff --git a/src/views/video/face-detect-new.vue b/src/views/video/face-detect-new.vue deleted file mode 100644 index 37cd690..0000000 --- a/src/views/video/face-detect-new.vue +++ /dev/null @@ -1,631 +0,0 @@ - - - - - diff --git a/src/views/video/face-detect.vue b/src/views/video/face-detect.vue index 37cd690..436ee0d 100644 --- a/src/views/video/face-detect.vue +++ b/src/views/video/face-detect.vue @@ -4,15 +4,6 @@ - - - - - + - + - + @@ -97,6 +85,9 @@ + + +