Skip to content

Commit

Permalink
Merge pull request #174 from solaoi/main
Browse files Browse the repository at this point in the history
set proper whisper-rs
  • Loading branch information
solaoi authored Oct 21, 2024
2 parents c9db10a + ad4552c commit db6d088
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 0 additions & 5 deletions src-tauri/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit db6d088

Please sign in to comment.