diff --git a/README.md b/README.md index 141ec7e..6a96f76 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,8 @@ ![](./assets/media/main_zh.png) +![](./assets/media/main_mac_zh.png) + ## 📥 下载 [GitHub Releases](https://github.com/HiMeditator/auto-caption/releases) @@ -150,6 +152,15 @@ pyinstaller ./main-gummy.spec pyinstaller ./main-vosk.spec ``` +注意 `main-vosk.spec` 文件中 `vsok` 库的路径可能不正确,需要根据实际状况配置。 + +``` +# Windows +vosk_path = str(Path('./subenv/Lib/site-packages/vosk').resolve()) +# Linux or macOS +vosk_path = str(Path('./subenv/lib/python3.x/site-packages/vosk').resolve()) +``` + 此时项目构建完成,在进入 `caption-engine/dist` 文件夹可见对应的可执行文件。即可进行后续操作。 ### 运行项目 diff --git a/README_en.md b/README_en.md index 49aa865..b6ee71a 100644 --- a/README_en.md +++ b/README_en.md @@ -23,6 +23,8 @@ ![](./assets/media/main_en.png) +![](./assets/media/main_mac_en.png) + ## 📥 Download [GitHub Releases](https://github.com/HiMeditator/auto-caption/releases) @@ -149,6 +151,15 @@ pyinstaller ./main-gummy.spec pyinstaller ./main-vosk.spec ``` +Note that the path to the `vosk` library in `main-vosk.spec` might be incorrect and needs to be configured according to the actual situation. + +``` +# Windows +vosk_path = str(Path('./subenv/Lib/site-packages/vosk').resolve()) +# Linux or macOS +vosk_path = str(Path('./subenv/lib/python3.x/site-packages/vosk').resolve()) +``` + After the build completes, you can find the executable file in the `caption-engine/dist` folder. Then proceed with subsequent operations. ### Run Project diff --git a/README_ja.md b/README_ja.md index 2021047..ffe4c01 100644 --- a/README_ja.md +++ b/README_ja.md @@ -23,6 +23,8 @@ ![](./assets/media/main_ja.png) +![](./assets/media/main_mac_ja.png) + ## 📥 ダウンロード [GitHub Releases](https://github.com/HiMeditator/auto-caption/releases) @@ -149,6 +151,15 @@ pyinstaller ./main-gummy.spec pyinstaller ./main-vosk.spec ``` +`main-vosk.spec` ファイル内の `vosk` ライブラリのパスが正しくない可能性があるため、実際の状況に応じて設定する必要があります。 + +``` +# Windows +vosk_path = str(Path('./subenv/Lib/site-packages/vosk').resolve()) +# LinuxまたはmacOS +vosk_path = str(Path('./subenv/lib/python3.x/site-packages/vosk').resolve()) +``` + これでプロジェクトのビルドが完了し、`caption-engine/dist` フォルダ内に対応する実行可能ファイルが確認できます。その後、次の操作に進むことができます。 ### プロジェクト実行 diff --git a/assets/media/main_mac_en.png b/assets/media/main_mac_en.png new file mode 100644 index 0000000..32b4fab Binary files /dev/null and b/assets/media/main_mac_en.png differ diff --git a/assets/media/main_mac_ja.png b/assets/media/main_mac_ja.png new file mode 100644 index 0000000..dffb4b6 Binary files /dev/null and b/assets/media/main_mac_ja.png differ diff --git a/assets/media/main_mac_zh.png b/assets/media/main_mac_zh.png new file mode 100644 index 0000000..1de8437 Binary files /dev/null and b/assets/media/main_mac_zh.png differ diff --git a/src/renderer/src/components/EngineStatus.vue b/src/renderer/src/components/EngineStatus.vue index 019dd4b..17fa9aa 100644 --- a/src/renderer/src/components/EngineStatus.vue +++ b/src/renderer/src/components/EngineStatus.vue @@ -107,7 +107,7 @@ function openCaptionWindow() { function startEngine() { console.log(`@@${engineControl.modelPath}##`) - if(engineControl.modelPath.trim() === '') { + if(engineControl.engine === 'vosk' && engineControl.modelPath.trim() === '') { engineControl.emptyModelPathErr() return }