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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: only use metal on mac
Louis Beaumont43a6ac2a2a21
diff --git a/Cargo.toml b/Cargo.tomlindex 9d5e43b0f..8940212bb 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -13,8 +13,8 @@ edition = "2021"[workspace.dependencies]log = "0.4"-candle = { package = "candle-core", version = "0.6.0", features = ["metal"] } # not sure if this cause problem if user uses CPU or CUDA? should it be a feature?-candle-nn = { package = "candle-nn", version = "0.6.0", features = ["metal"] }-candle-transformers = { package = "candle-transformers", version = "0.6.0", features = ["metal"] }+candle = { package = "candle-core", version = "0.6.0" }+candle-nn = { package = "candle-nn", version = "0.6.0" }+candle-transformers = { package = "candle-transformers", version = "0.6.0" }tokenizers = "0.19.1"diff --git a/README.md b/README.mdindex 74ba43cf6..c5076369c 100644--- a/README.md+++ b/README.md@@ -111,6 +111,8 @@ cd screen-pipecargo build --release./target/release/pipe+# if you are on mac, use "cargo build --release --features metal" to leverage M series acceleration+# or only stream audio + speech to text to stdout./target/release/pipe-audiodiff --git a/screenpipe-audio/Cargo.toml b/screenpipe-audio/Cargo.tomlindex a06eeed5a..fc37faa9d 100644--- a/screenpipe-audio/Cargo.toml+++ b/screenpipe-audio/Cargo.toml@@ -42,10 +42,11 @@ rubato = "0.15.0"log = { workspace = true }env_logger = "0.10"-[dev-dependencies]tempfile = "3.3.0"+[features]+metal = ["candle/metal", "candle-nn/metal", "candle-transformers/metal"][[bin]]name = "pipe-audio"