diff --git a/README.md b/README.md index 6cc6f15..98f9f8c 100644 --- a/README.md +++ b/README.md @@ -21,12 +21,15 @@

+ [![贡献者][contributors-shield]][contributors-url] [![分支][forks-shield]][forks-url] [![星标][stars-shield]][stars-url] [![问题][issues-shield]][issues-url] [![最新版本][release-shield]][release-url] + + [![许可证][license-shield]][license-url]

@@ -37,6 +40,7 @@ + ## 📖 关于项目 短视频工厂是一个开源的桌面端应用,旨在通过AI技术简化短视频的制作流程。用户可以通过简单的提示词文本+视频分镜素材,快速且自动的剪辑出高质量的产品营销和泛内容短视频。该项目集成了AI驱动的文案生成、语音合成、视频剪辑、字幕特效等功能,旨在为用户提供开箱即用的短视频制作体验。 @@ -82,7 +86,6 @@ - [ ] 更多的语音合成API - [ ] 字幕特效,支持多种字幕样式和特效 - 查看[开放问题](https://github.com/YILS-LIN/short-video-factory/issues)以获取提议功能(和已知问题)的完整列表。

(返回顶部)

@@ -109,6 +112,7 @@

(返回顶部)

+ ## 🤝 贡献 贡献让开源社区成为了一个学习、启发和创造的绝佳场所。**非常感谢**您所做的任何贡献。 @@ -138,6 +142,7 @@

(返回顶部)

+ ## 🎗 许可证 [![许可证][license-shield]][license-url] @@ -152,8 +157,6 @@ Copyright © 2025 YILS. 你的 **Star ⭐** 和 **捐赠** 是我持续更新的最大动力! -> 捐赠者未来也许会享有额外的特殊功能或新功能优先使用等福利 -
YILS的微信赞赏码
@@ -163,6 +166,7 @@ Copyright © 2025 YILS.

(返回顶部)

+ ## ⭐ 星标历史
@@ -174,6 +178,7 @@ Copyright © 2025 YILS.

(返回顶部)

+ [contributors-shield]: https://img.shields.io/github/contributors/YILS-LIN/short-video-factory.svg?color=c4f042&labelColor=black&style=flat-square [contributors-url]: https://github.com/YILS-LIN/short-video-factory/graphs/contributors [forks-shield]: https://img.shields.io/github/forks/YILS-LIN/short-video-factory.svg?color=8ae8ff&labelColor=black&style=flat-square diff --git a/locales/zh-CN/common.json b/locales/zh-CN/common.json index f956a39..63ee6bf 100644 --- a/locales/zh-CN/common.json +++ b/locales/zh-CN/common.json @@ -118,7 +118,7 @@ "startRender": "开始合成", "stopRender": "停止合成", "autoBatch": "自动批量合成", - "bgmFolderLabel": "背景音乐文件夹(.mp3格式,从中随机选取)", + "bgmFolderLabel": "背景音乐文件夹(随机选取.mp3,为空则无背景音)", "output": { "width": "导出视频宽度", "height": "导出视频高度", diff --git a/src/views/Home/index.vue b/src/views/Home/index.vue index 1077726..d5ca7b7 100644 --- a/src/views/Home/index.vue +++ b/src/views/Home/index.vue @@ -64,16 +64,18 @@ const handleRenderVideo = async () => { } let randomBgm: ListFilesFromFolderRecord | undefined = undefined - try { - const bgmList = await window.electron.listFilesFromFolder({ - folderPath: appStore.renderConfig.bgmPath.replace(/\\/g, '/'), - }) - if (bgmList.length > 0) { - randomBgm = random.choice(bgmList) + if (appStore.renderConfig.bgmPath) { + try { + const bgmList = await window.electron.listFilesFromFolder({ + folderPath: appStore.renderConfig.bgmPath.replace(/\\/g, '/'), + }) + if (bgmList.length > 0) { + randomBgm = random.choice(bgmList) + } + } catch (error) { + console.log('获取背景音乐列表失败', error) + toast.error(t('errors.bgmListFailed')) } - } catch (error) { - console.log('获取背景音乐列表失败', error) - toast.error(t('errors.bgmListFailed')) } try {