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

release-app fix linux build

Louis Beaumont3359116546ad
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index c964c311b..fa7b8cfa6 100644
--- a/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "0.40.2"
+version = "0.40.3"
description = ""
authors = ["you"]
license = ""
diff --git a/screenpipe-audio/Cargo.toml b/screenpipe-audio/Cargo.toml
index b37c4ee13..6f4e2bb34 100644
--- a/screenpipe-audio/Cargo.toml
+++ b/screenpipe-audio/Cargo.toml
@@ -33,11 +33,9 @@ chrono = { version = "0.4.31", features = ["serde"] }
# Local Embeddings + STT
vad-rs = "0.1.4"
anyhow = "1.0.86"
-byteorder = "1.5.0"
hf-hub = "0.3.2"
# https://github.com/pdeljanov/Symphonia/tree/master?tab=readme-ov-file#optimizations
symphonia = { version = "0.5.4", features = ["aac", "isomp4", "opt-simd"] }
-rand = "0.8.5"
rubato = "0.15.0"
whisper-rs = { git = "https://github.com/tazz4843/whisper-rs.git", rev = "e0597486400ec436669e6ee3d8cc94b3859355f5", features = [
"tracing_backend",
@@ -53,7 +51,6 @@ bytemuck = "1.16.1"
# Async
tokio = { workspace = true }
-tokio-stream = "0.1.17"
# Detect speech/silence
webrtc-vad = "0.4.0"
@@ -74,7 +71,6 @@ dirs = "5.0.1"
lazy_static = { version = "1.4.0" }
realfft = "3.4.0"
-regex = "1.11.0"
ndarray = "0.16"
ort = "=2.0.0-rc.6"
knf-rs = { git = "https://github.com/Neptune650/knf-rs.git" }
@@ -82,7 +78,6 @@ ort-sys = "=2.0.0-rc.8"
futures = "0.3.31"
deepgram = "0.6.4"
bytes = { version = "1.9.0", features = ["serde"] }
-num-traits = "0.2.19"
[target.'cfg(target_os = "windows")'.dependencies]
ort = { version = "=2.0.0-rc.6", features = [
@@ -116,13 +111,5 @@ cuda = ["whisper-rs/cuda"]
name = "screenpipe-audio"
path = "examples/screenpipe-audio.rs"
-[[bench]]
-name = "pcm_decode_benchmark"
-harness = false
-
-[[bench]]
-name = "record_and_transcribe_benchmark"
-harness = false
-
[package.metadata.cargo-machete]
ignored = ["ort-sys"]
diff --git a/screenpipe-audio/benches/pcm_decode_benchmark.rs b/screenpipe-audio/benches/pcm_decode_benchmark.rs
deleted file mode 100644
index 135299960..000000000
--- a/screenpipe-audio/benches/pcm_decode_benchmark.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-// cargo bench --bench pcm_decode_benchmark
-use criterion::{black_box, criterion_group, criterion_main, Criterion};
-use screenpipe_audio::pcm_decode;
-use std::path::PathBuf;
-
-fn benchmark_pcm_decode(c: &mut Criterion) {
- // Assuming you have a sample audio file in your project for testing
- let test_file_path = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
- .join("test_data")
- .join("selah.mp4");
-
- c.bench_function("pcm_decode", |b| {
- b.iter(|| {
- let _ = pcm_decode(black_box(&test_file_path));
- })
- });
-}
-
-criterion_group!(benches, benchmark_pcm_decode);
-criterion_main!(benches);
diff --git a/screenpipe-audio/benches/record_and_transcribe_benchmark.rs b/screenpipe-audio/benches/record_and_transcribe_benchmark.rs
deleted file mode 100644
index 29a4167d9..000000000
--- a/screenpipe-audio/benches/record_and_transcribe_benchmark.rs
+++ /dev/null
@@ -1,74 +0,0 @@
-use criterion::{black_box, criterion_group, criterion_main, BenchmarkId, Criterion};
-use screenpipe_audio::core::device::{default_input_device, AudioDevice};
-use screenpipe_audio::core::record_and_transcribe;
-use screenpipe_audio::core::stream::AudioStream;
-use screenpipe_audio::AudioInput;
-use std::path::PathBuf;
-use std::sync::atomic::AtomicBool;
-use std::sync::Arc;
-use std::time::Duration;
-
-async fn setup_test() -> (
- Arc<AudioDevice>,
- PathBuf,
- crossbeam::channel::Sender<AudioInput>,
- Arc<AtomicBool>,
-) {
- let audio_device = default_input_device().unwrap(); // TODO feed voice in automatically somehow
- let output_path = PathBuf::from("/tmp/test_audio.mp4");
- let (whisper_sender, _) = crossbeam::channel::bounded(1000);
- let is_running = Arc::new(AtomicBool::new(true));
-
- (
- Arc::new(audio_device),
- output_path,
- whisper_sender,
- is_running,
- )
-}
-
-fn bench_record_and_transcribe(c: &mut Criterion) {
- let runtime = tokio::runtime::Builder::new_multi_thread()
- .worker_threads(4) // Adjust based on your system
- .enable_all()
- .build()
- .unwrap();
-
- let mut group = c.benchmark_group("Record and Transcribe");
- group.sample_size(10);
- group.measurement_time(Duration::from_secs(90)); // Increased from 30 to 60 seconds
-
- group.bench_function(BenchmarkId::new("Performance", ""), |b| {
- b.to_async(&runtime).iter_custom(|iters| async move {
- let mut total_duration = Duration::new(0, 0);
-
- for _ in 0..iters {
- let (audio_device, _, whisper_sender, is_running) = setup_test().await;
- let duration = Duration::from_secs(5); // 5 seconds of recording
-
- let audio_stream = AudioStream::from_device(audio_device, is_running.clone())
- .await
- .unwrap();
-
- let start = std::time::Instant::now();
- let result = record_and_transcribe(
- black_box(Arc::new(audio_stream)),
- black_box(duration),
- black_box(Arc::new(whisper_sender)),
- black_box(is_running),
- )
- .await;
- total_duration += start.elapsed();
-
- assert!(result.is_ok(), "Recording and transcription failed");
- }
-
- total_duration
- })
- });
-
- group.finish();
-}
-
-criterion_group!(benches, bench_record_and_transcribe);
-criterion_main!(benches);
diff --git a/screenpipe-db/Cargo.toml b/screenpipe-db/Cargo.toml
index ca1e1921c..2897d51ec 100644
--- a/screenpipe-db/Cargo.toml
+++ b/screenpipe-db/Cargo.toml
@@ -24,7 +24,6 @@ futures = { version = "0.3.31", features = ["std"] }
zerocopy = { version = "0.7.32" }
-tokio-util = { version = "0.7", features = ["io"] }
tokio = { version = "1.15", features = ["full", "tracing"] }
tracing = { workspace = true }
diff --git a/screenpipe-server/Cargo.toml b/screenpipe-server/Cargo.toml
index 5f5ba07d9..74980b1b5 100644
--- a/screenpipe-server/Cargo.toml
+++ b/screenpipe-server/Cargo.toml
@@ -43,7 +43,6 @@ tokenizers = { workspace = true }
anyhow = "1.0.86"
hf-hub = { workspace = true }
-rand = "0.8.5"
#opentelemetry
sentry = { workspace = true }
@@ -108,9 +107,6 @@ sha2 = "0.10.6"
# Fast random number generator
fastrand = "2.1.1"
-sqlite-vec = "0.1.3"
-libsqlite3-sys = { version = "0.26", features = ["bundled"] }
-zerocopy = { version = "0.7.32" }
port_check = "0.2.1"
walkdir = "2.3.4"
@@ -120,8 +116,6 @@ regex = "1.10.0"
lru = "0.13.0"
tokio-util = { version = "0.7", features = ["io"] }
-dashmap = "6.1.0"
-
once_cell = { workspace = true }
[dev-dependencies]
env_logger = "0.10"
@@ -130,7 +124,6 @@ tokio-tungstenite = "0.19.0"
# Benches
criterion = { workspace = true }
-rand = "0.8"
[features]
default = []
diff --git a/screenpipe-server/src/add.rs b/screenpipe-server/src/add.rs
index 398a91f3f..575ec1454 100644
--- a/screenpipe-server/src/add.rs
+++ b/screenpipe-server/src/add.rs
@@ -14,12 +14,12 @@ use screenpipe_vision::perform_ocr_windows;
use screenpipe_vision::perform_ocr_tesseract;
use serde_json::json;
-use tracing::warn;
use std::path::Path;
use std::path::PathBuf;
use std::sync::Arc;
use tokio::fs;
use tracing::error;
+use tracing::warn;
use tracing::{debug, info};
use uuid::Uuid;
use walkdir::WalkDir;
@@ -188,7 +188,7 @@ pub async fn handle_index_command(
_ => {
#[cfg(not(any(target_os = "macos", target_os = "windows")))]
{
- perform_ocr_tesseract(&frame, Arc::new([]))
+ return perform_ocr_tesseract(&frame, Vec::new());
}
warn!("unsupported ocr engine");
("".to_string(), "".to_string(), None)