Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: switch whisper-rs back to upstream, fixes Windows x86 build (#2587)

Louis Beaumonta86c822a883f
diff --git a/crates/screenpipe-audio/Cargo.toml b/crates/screenpipe-audio/Cargo.toml
index d2fc73edf..f821efc74 100644
--- a/crates/screenpipe-audio/Cargo.toml
+++ b/crates/screenpipe-audio/Cargo.toml
@@ -43,7 +43,7 @@ hf-hub = { workspace = true }
# https://github.com/pdeljanov/Symphonia/tree/master?tab=readme-ov-file#optimizations
symphonia = { version = "0.5.4", features = ["aac", "isomp4", "opt-simd"] }
rubato = "0.15.0"
-whisper-rs = { git = "https://github.com/divanshu-go/whisper-rs.git", rev = "43a3a2cd4db3609fa266a0d695b00acb737be1b3", features = ["tracing_backend"] }
+whisper-rs = { git = "https://codeberg.org/tazz4843/whisper-rs.git", rev = "129b9826dc8c385f6a28198bdc4f8a275385fe85", features = ["tracing_backend"] }
# Log
log = { workspace = true }
diff --git a/crates/screenpipe-audio/src/transcription/engine.rs b/crates/screenpipe-audio/src/transcription/engine.rs
index 2b2930741..374ef1882 100644
--- a/crates/screenpipe-audio/src/transcription/engine.rs
+++ b/crates/screenpipe-audio/src/transcription/engine.rs
@@ -128,7 +128,7 @@ impl TranscriptionEngine {
info!("loading whisper model with GPU acceleration...");
let context = tokio::task::spawn_blocking(move || {
WhisperContext::new_with_params(
- &quantized_path.to_string_lossy(),
+ &quantized_path,
context_param,
)
.map(Arc::new)