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: macos silero

Louis Beaumontdc4d7d595846
diff --git a/screenpipe-audio/Cargo.toml b/screenpipe-audio/Cargo.toml
index 331a2c145..a590b05cb 100644
--- a/screenpipe-audio/Cargo.toml
+++ b/screenpipe-audio/Cargo.toml
@@ -45,9 +45,6 @@ symphonia = { version = "0.5.4", features = ["aac", "isomp4", "opt-simd"] }
rand = "0.8.5"
rubato = "0.15.0"
-ort = { version = "2.0.0-rc.5", features = ["load-dynamic"], default-features = false }
-esaxx-rs = "0.1.10"
-
# Log
log = { workspace = true }
env_logger = "0.10"
@@ -66,6 +63,10 @@ reqwest = { workspace = true }
screenpipe-core = { path = "../screenpipe-core" }
+[target.'cfg(target_os = "windows")'.dependencies]
+ort = { version = "2.0.0-rc.5", features = ["load-dynamic"], default-features = false }
+esaxx-rs = "0.1.10"
+
[target.'cfg(target_os = "macos")'.dependencies]
once_cell = "1.17.1"
objc = "0.2.7"
diff --git a/screenpipe-server/src/bin/screenpipe-server.rs b/screenpipe-server/src/bin/screenpipe-server.rs
index 094451264..382120f98 100644
--- a/screenpipe-server/src/bin/screenpipe-server.rs
+++ b/screenpipe-server/src/bin/screenpipe-server.rs
@@ -272,6 +272,7 @@ async fn main() -> anyhow::Result<()> {
let ocr_engine_clone = cli.ocr_engine.clone();
let restart_interval = cli.restart_interval;
let vad_engine = cli.vad_engine.clone();
+ let vad_engine_clone = vad_engine.clone();
let (shutdown_tx, _) = broadcast::channel::<()>(1);
@@ -285,8 +286,6 @@ async fn main() -> anyhow::Result<()> {
let output_path_clone = Arc::new(local_data_dir.join("data").to_string_lossy().into_owned());
let vision_control_clone = Arc::clone(&vision_control);
let shutdown_tx_clone = shutdown_tx.clone();
- let friend_wearable_uid_clone = friend_wearable_uid.clone(); // Clone here
- let vad_engine_clone = vad_engine.clone(); // Clone it here for each iteration
let friend_wearable_uid_clone: Option<String> = friend_wearable_uid.clone(); // Clone here
let monitor_ids_clone = monitor_ids.clone();
@@ -412,6 +411,10 @@ async fn main() -> anyhow::Result<()> {
"│ OCR Engine │ {:<34} │",
format!("{:?}", ocr_engine_clone)
);
+ println!(
+ "│ VAD Engine │ {:<34} │",
+ format!("{:?}", vad_engine_clone)
+ );
println!(
"│ Monitor IDs │ {:<34} │",
format_cell(&format!("{:?}", monitor_ids), VALUE_WIDTH)