From ad4552c5c718ba9cadde327139fb21ade3db953f Mon Sep 17 00:00:00 2001 From: Kodai Aoyama Date: Mon, 21 Oct 2024 10:25:14 +0900 Subject: [PATCH] set proper whisper-rs --- src-tauri/Cargo.lock | 8 ++++---- src-tauri/Cargo.toml | 3 +-- src-tauri/build.rs | 5 ----- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index f05c24c..8881409 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -8823,16 +8823,16 @@ dependencies = [ [[package]] name = "whisper-rs" -version = "0.13.1" -source = "git+https://github.com/arizhih/whisper-rs.git?branch=whisper-cpp-1-7-x#9f56a7350b31ce09f6e95be928beeea837684a59" +version = "0.12.1" +source = "git+https://github.com/tazz4843/whisper-rs.git?rev=67924ca#67924ca473d1b17140bc7bd3d04fed3a779608d3" dependencies = [ "whisper-rs-sys", ] [[package]] name = "whisper-rs-sys" -version = "0.11.1" -source = "git+https://github.com/arizhih/whisper-rs.git?branch=whisper-cpp-1-7-x#9f56a7350b31ce09f6e95be928beeea837684a59" +version = "0.10.1" +source = "git+https://github.com/tazz4843/whisper-rs.git?rev=67924ca#67924ca473d1b17140bc7bd3d04fed3a779608d3" dependencies = [ "bindgen", "cfg-if", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index de75e48..8b087a2 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -50,8 +50,7 @@ mistralrs = { git = "https://github.com/EricLBuehler/mistral.rs.git", rev = "32e tauri-plugin-clipboard = "1.1.4" sbv2_core = { version = "0.1.4", features = ["dynamic"] } # whisper-rs = { version = "0.11.1", features = ["metal"] } -# whisper-rs = { git = "https://github.com/tazz4843/whisper-rs.git", rev = "67924ca", features = ["metal"] } -whisper-rs = { git = "https://github.com/arizhih/whisper-rs.git", branch = "whisper-cpp-1-7-x", features = ["metal"] } +whisper-rs = { git = "https://github.com/tazz4843/whisper-rs.git", rev = "67924ca", features = ["metal"] } [dependencies.tauri-plugin-sql] git = "https://github.com/tauri-apps/plugins-workspace" diff --git a/src-tauri/build.rs b/src-tauri/build.rs index 6e843b8..cadabfa 100644 --- a/src-tauri/build.rs +++ b/src-tauri/build.rs @@ -5,11 +5,6 @@ fn env_var(var: &str) -> String { } fn main() { - // for whisper-rs - println!("cargo:rustc-flags=-lc++"); - // println!("cargo:rustc-link-lib=dylib=c++"); - println!("cargo:rustc-link-lib=framework=Accelerate"); - // for vosk let lib_path = PathBuf::from(env_var("CARGO_MANIFEST_DIR")).join("lib"); println!(