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(audio): remove cuda/directml from ORT — causes init panic on non-NVIDIA GPUs

louis030195d6552554208b
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index a5012eefd..03d94f871 100755
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -1601,6 +1601,15 @@ dependencies = [
"strsim",
]
+[[package]]
+name = "clap_complete"
+version = "4.5.65"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "430b4dc2b5e3861848de79627b2bedc9f3342c7da5173a14eaa5d0f8dc18ae5d"
+dependencies = [
+ "clap",
+]
+
[[package]]
name = "clap_derive"
version = "4.5.55"
@@ -5069,7 +5078,7 @@ source = "git+https://github.com/Neptune650/knf-rs.git#b782e6bb02db495ce767f0094
dependencies = [
"eyre",
"knf-rs-sys",
- "ndarray",
+ "ndarray 0.16.1",
]
[[package]]
@@ -5863,6 +5872,19 @@ dependencies = [
"tempfile",
]
+[[package]]
+name = "ndarray"
+version = "0.15.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "adb12d4e967ec485a5f71c6311fe28158e9d6f4bc4a447b474184d0f91a8fa32"
+dependencies = [
+ "matrixmultiply",
+ "num-complex",
+ "num-integer",
+ "num-traits",
+ "rawpointer",
+]
+
[[package]]
name = "ndarray"
version = "0.16.1"
@@ -6943,7 +6965,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a5f95fe501e1cb81dec2f66ee3129025759b602817aa2c77ff421390c418cc34"
dependencies = [
"half",
- "ndarray",
+ "ndarray 0.16.1",
"ort-sys",
"tracing",
]
@@ -8347,6 +8369,16 @@ dependencies = [
"ordered-multimap",
]
+[[package]]
+name = "rust-stemmers"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e46a2036019fdb888131db7a4c847a1063a7493f971ed94ea82c67eada63ca54"
+dependencies = [
+ "serde",
+ "serde_derive",
+]
+
[[package]]
name = "rustc-demangle"
version = "0.1.27"
@@ -8687,7 +8719,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.0.447"
+version = "2.0.423"
dependencies = [
"anyhow",
"async-stream",
@@ -8732,6 +8764,7 @@ dependencies = [
"screenpipe-vision",
"sentry 0.42.0",
"serde",
+ "serde_derive",
"serde_json",
"specta",
"specta-typescript",
@@ -8803,7 +8836,7 @@ dependencies = [
"libpulse-simple-binding",
"libsamplerate-sys",
"log",
- "ndarray",
+ "ndarray 0.16.1",
"oasgen",
"objc",
"once_cell",
@@ -8842,7 +8875,6 @@ dependencies = [
"candle-nn",
"candle-transformers",
"chacha20poly1305",
- "chrono",
"clap",
"core-foundation 0.10.1",
"core-graphics 0.24.0",
@@ -8862,7 +8894,6 @@ dependencies = [
"reqwest 0.12.12",
"serde",
"serde_json",
- "serde_yaml",
"sha2",
"thiserror 1.0.69",
"tokenizers",
@@ -8944,27 +8975,34 @@ dependencies = [
"axum 0.7.9",
"base64 0.22.1",
"bincode",
+ "candle-core",
+ "candle-nn",
+ "candle-transformers",
"chrono",
"cidre 0.14.0",
"clap",
+ "clap_complete",
"colored",
"crossbeam",
"dashmap",
"dirs 5.0.1",
"fastrand",
"futures",
+ "hf-hub 0.3.2 (git+https://github.com/neo773/hf-hub)",
"hostname",
"image 0.25.9",
"imageproc",
"lru",
"md5",
"moka",
+ "ndarray 0.15.6",
"nix 0.29.0",
"oasgen",
"once_cell",
"port_check",
"regex",
"reqwest 0.12.12",
+ "rust-stemmers",
"screenpipe-accessibility",
"screenpipe-apple-intelligence",
"screenpipe-audio",
@@ -8979,6 +9017,7 @@ dependencies = [
"sqlx",
"sysinfo",
"tempfile",
+ "tokenizers",
"tokio",
"tokio-stream",
"tokio-util",
@@ -8988,6 +9027,7 @@ dependencies = [
"tracing-appender",
"tracing-subscriber",
"uuid",
+ "walkdir",
"windows 0.58.0",
]
@@ -12332,7 +12372,7 @@ version = "0.2.0"
source = "git+https://github.com/screenpipe/vad-rs-1.git#3af3b1829ab4d8f018f271fe53c6f382f15ca3a6"
dependencies = [
"eyre",
- "ndarray",
+ "ndarray 0.16.1",
"ort",
"ort-sys",
"ringbuffer",
diff --git a/crates/screenpipe-audio/Cargo.toml b/crates/screenpipe-audio/Cargo.toml
index eed008eb6..5d62b8b9b 100644
--- a/crates/screenpipe-audio/Cargo.toml
+++ b/crates/screenpipe-audio/Cargo.toml
@@ -91,8 +91,6 @@ libpulse-simple-binding = { version = "2.28", optional = true }
ort = { version = "=2.0.0-rc.6", features = [
"download-binaries",
"copy-dylibs",
- "directml",
- "cuda",
] }
esaxx-rs = "0.1.10"
samplerate = { version = "0.2.4" }