From b0654b035dde29f4c90941834285a286d257c3d2 Mon Sep 17 00:00:00 2001 From: thewh1teagle <61390950+thewh1teagle@users.noreply.github.com> Date: Thu, 8 Aug 2024 07:44:03 +0300 Subject: [PATCH 1/7] fix pre build with static crt --- scripts/pre_build.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/pre_build.js b/scripts/pre_build.js index fc0afef..3e6b4ae 100755 --- a/scripts/pre_build.js +++ b/scripts/pre_build.js @@ -220,6 +220,7 @@ if (!process.env.GITHUB_ENV) { } console.log('bun install') if (platform == 'windows') { + console.log(`$env:RUSTFLAGS = "-C target-feature=+crt-static"`) console.log(`$env:FFMPEG_DIR = "${exports.ffmpeg}"`) console.log(`$env:OPENBLAS_PATH = "${exports.openBlas}"`) console.log(`$env:LIBCLANG_PATH = "${exports.libClang}"`) @@ -269,6 +270,10 @@ if (process.env.GITHUB_ENV) { await fs.appendFile(process.env.GITHUB_ENV, embed_metal) } if (platform == 'windows') { + const rustFlags = `RUSTFLAGS="-C target-feature=+crt-static"\n` + console.log('Adding ENV', rustFlags) + await fs.appendFile(process.env.GITHUB_ENV, rustFlags) + const openblas = `OPENBLAS_PATH=${exports.openBlas}\n` console.log('Adding ENV', openblas) await fs.appendFile(process.env.GITHUB_ENV, openblas) From d176fe2734ee3f7aecec1618bea52b6b32ae1eec Mon Sep 17 00:00:00 2001 From: thewh1teagle <61390950+thewh1teagle@users.noreply.github.com> Date: Thu, 8 Aug 2024 07:44:59 +0300 Subject: [PATCH 2/7] misc --- scripts/pre_build.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/pre_build.js b/scripts/pre_build.js index 3e6b4ae..fe01f15 100755 --- a/scripts/pre_build.js +++ b/scripts/pre_build.js @@ -270,6 +270,7 @@ if (process.env.GITHUB_ENV) { await fs.appendFile(process.env.GITHUB_ENV, embed_metal) } if (platform == 'windows') { + // ort + whisper.cpp + fbank-rs... something there requires static linking of msvc const rustFlags = `RUSTFLAGS="-C target-feature=+crt-static"\n` console.log('Adding ENV', rustFlags) await fs.appendFile(process.env.GITHUB_ENV, rustFlags) From 59ff510bfdfeaa9ef9e06706f0a79ce927c20417 Mon Sep 17 00:00:00 2001 From: thewh1teagle <61390950+thewh1teagle@users.noreply.github.com> Date: Thu, 8 Aug 2024 07:50:55 +0300 Subject: [PATCH 3/7] fix pre build --- scripts/pre_build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pre_build.js b/scripts/pre_build.js index fe01f15..6ec2fb8 100755 --- a/scripts/pre_build.js +++ b/scripts/pre_build.js @@ -271,7 +271,7 @@ if (process.env.GITHUB_ENV) { } if (platform == 'windows') { // ort + whisper.cpp + fbank-rs... something there requires static linking of msvc - const rustFlags = `RUSTFLAGS="-C target-feature=+crt-static"\n` + const rustFlags = `RUSTFLAGS=-C target-feature=+crt-static\n` console.log('Adding ENV', rustFlags) await fs.appendFile(process.env.GITHUB_ENV, rustFlags) From 095f8e5a34c84eb1ef83e0284522143b9b959573 Mon Sep 17 00:00:00 2001 From: thewh1teagle <61390950+thewh1teagle@users.noreply.github.com> Date: Thu, 8 Aug 2024 08:01:12 +0300 Subject: [PATCH 4/7] v2.4.0-beta.0 --- desktop/src-tauri/tauri.conf.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/src-tauri/tauri.conf.json b/desktop/src-tauri/tauri.conf.json index f28c448..df11d6f 100644 --- a/desktop/src-tauri/tauri.conf.json +++ b/desktop/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "./gen/schemas/desktop-schema.json", "productName": "vibe", - "version": "2.3.0", + "version": "2.4.0-beta.0", "identifier": "github.com.thewh1teagle.vibe", "app": { "windows": [], From 6f25294a5dd0cd9c14d075d921bfa1db0b2e21dc Mon Sep 17 00:00:00 2001 From: thewh1teagle <61390950+thewh1teagle@users.noreply.github.com> Date: Thu, 8 Aug 2024 08:12:27 +0300 Subject: [PATCH 5/7] fix pre build --- scripts/pre_build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pre_build.js b/scripts/pre_build.js index 6ec2fb8..2d83b1b 100755 --- a/scripts/pre_build.js +++ b/scripts/pre_build.js @@ -205,7 +205,7 @@ if (hasFeature('rocm')) { } // Diarization -if (!fs.exists(config.diarization.embedModelFilename)) { +if (!(await fs.exists(config.diarization.embedModelFilename))) { await $`wget -nc --show-progress ${config.diarization.embedModelUrl} -O ${config.diarization.embedModelFilename}` await $`wget -nc --show-progress ${config.diarization.segmentModelUrl} -O ${config.diarization.segmentModelFilename}` } From 397007501f542b965ca919c5d95fcdbc50597627 Mon Sep 17 00:00:00 2001 From: thewh1teagle <61390950+thewh1teagle@users.noreply.github.com> Date: Thu, 8 Aug 2024 08:19:59 +0300 Subject: [PATCH 6/7] fix pre build --- scripts/pre_build.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/pre_build.js b/scripts/pre_build.js index 2d83b1b..89a774f 100755 --- a/scripts/pre_build.js +++ b/scripts/pre_build.js @@ -206,8 +206,13 @@ if (hasFeature('rocm')) { // Diarization if (!(await fs.exists(config.diarization.embedModelFilename))) { - await $`wget -nc --show-progress ${config.diarization.embedModelUrl} -O ${config.diarization.embedModelFilename}` - await $`wget -nc --show-progress ${config.diarization.segmentModelUrl} -O ${config.diarization.segmentModelFilename}` + if (platform == 'windows') { + await $`C:\\msys64\\usr\\bin\\wget.exe -nc --show-progress ${config.diarization.embedModelUrl} -O ${config.diarization.embedModelFilename}` + await $`C:\\msys64\\usr\\bin\\wget.exe -nc --show-progress ${config.diarization.segmentModelUrl} -O ${config.diarization.segmentModelFilename}` + } else { + await $`wget -nc --show-progress ${config.diarization.embedModelUrl} -O ${config.diarization.embedModelFilename}` + await $`wget -nc --show-progress ${config.diarization.segmentModelUrl} -O ${config.diarization.segmentModelFilename}` + } } // Development hints From 4c291a1ed42c13c1337d894d385d7c13e2a3dd40 Mon Sep 17 00:00:00 2001 From: thewh1teagle <61390950+thewh1teagle@users.noreply.github.com> Date: Thu, 8 Aug 2024 08:24:30 +0300 Subject: [PATCH 7/7] misc --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ce5b457..0223e0a 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ - ⏳ Transcribe system audio - 🎤 Transcribe from microphone - 🖥️ CLI support: Use Vibe directly from the command line interface! (see `--help`) -- 👥 ~Speaker diarization~ (coming soon) +- 👥 Speaker diarization - 📱 ~iOS & Android support~ (coming soon) - 📥 Integrate custom models from your own site: Use `vibe://download/?url=` - 📹 Choose caption length optimized for videos / reels