Skip to content

Commit b519b8e

Browse files
committed
修复:声音克隆和声音合成下载异常问题
1 parent 6851527 commit b519b8e

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v0.8.1
2+
3+
- 修复:声音克隆和声音合成下载异常问题
4+
15
## v0.8.0 首页改版,云模型直接使用,功能使用优化
26

37
- 新增:首页界面,支持数据报表逻辑

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aigcpanel",
3-
"version": "0.8.0",
3+
"version": "0.8.1",
44
"main": "dist-electron/main/index.js",
55
"description": "一站式AI数字人系统",
66
"author": "ModStartLib",

src/components/Sound/SoundCloneActionDownload.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ const props = defineProps<{
1111
1212
const doDownload = async () => {
1313
const record = props.record
14-
const title = `${t('声音克隆')}_${record.id}_${contentToFilenamePathPart(record.text)}.wav`
14+
const title = `${t('声音克隆')}_${record.id}_${contentToFilenamePathPart(record.modelConfig.text)}.wav`
1515
let filePath = await window.$mapi.file.openSave({
1616
defaultPath: title
1717
})
1818
if (filePath) {
1919
if (!filePath.endsWith('.wav')) {
2020
filePath = filePath + '.wav'
2121
}
22-
// console.log('filePath', record.resultWav, filePath)
22+
// console.log('filePath', record.result.url, filePath)
2323
try {
24-
await window.$mapi.file.copy(record.resultWav as string, filePath, {isFullPath: true})
24+
await window.$mapi.file.copy(record.result.url as string, filePath, {isFullPath: true})
2525
} catch (e) {
2626
console.error(e)
2727
Dialog.tipError(mapError(e))
@@ -35,7 +35,7 @@ const doDownload = async () => {
3535
<template>
3636
<a-tooltip :content="$t('下载')">
3737
<a-button class="mr-2"
38-
:disabled="!record.resultWav"
38+
:disabled="!record.result.url"
3939
@click="doDownload()">
4040
<template #icon>
4141
<icon-download/>

src/components/Video/VideoGenActionDownload.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ const doDownload = async () => {
1818
if (!filePath.endsWith('.mp4')) {
1919
filePath = filePath + '.mp4'
2020
}
21-
// console.log('filePath', record.resultMp4, filePath)
21+
// console.log('filePath', record.result.url, filePath)
2222
try {
23-
await window.$mapi.file.copy(record.resultMp4 as string, filePath, {isFullPath: true})
23+
await window.$mapi.file.copy(record.result.url as string, filePath, {isFullPath: true})
2424
} catch (e) {
2525
console.error(e)
2626
Dialog.tipError(mapError(e))
@@ -34,7 +34,7 @@ const doDownload = async () => {
3434
<template>
3535
<a-tooltip :content="$t('下载')">
3636
<a-button class="mr-2"
37-
:disabled="!record.resultMp4"
37+
:disabled="!record.result.url"
3838
@click="doDownload()">
3939
<template #icon>
4040
<icon-download/>

0 commit comments

Comments
 (0)