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: rename stt crate to audiopipe in all deps and source
Louis Beaumont127069a7a646
diff --git a/Cargo.lock b/Cargo.lockindex 46b0f8cf0..07680668c 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -488,6 +488,19 @@ dependencies = ["zbus",]+[[package]]+name = "audiopipe"+version = "0.2.0"+source = "git+https://github.com/screenpipe/audiopipe.git?rev=c846356#c8463561962437c4bf55c364d6b6104bee742974"+dependencies = [+ "hf-hub 0.4.3",+ "qwen3-asr-sys",+ "serde",+ "serde_json",+ "thiserror 2.0.18",+ "tracing",+]+[[package]]name = "autocfg"version = "1.5.0"@@ -4892,7 +4905,7 @@ dependencies = [[[package]]name = "qwen3-asr-sys"version = "0.1.0"-source = "git+https://github.com/screenpipe/audiopipe.git?rev=bf38610#bf38610d6a30cf6ce4e75d506c6b39ad1b25d9c1"+source = "git+https://github.com/screenpipe/audiopipe.git?rev=c846356#c8463561962437c4bf55c364d6b6104bee742974"dependencies = ["cc","cmake",@@ -5502,6 +5515,7 @@ name = "screenpipe-audio"version = "0.3.158"dependencies = ["anyhow",+ "audiopipe","bytemuck","bytes","chrono",@@ -5541,7 +5555,6 @@ dependencies = ["serde","serde_json","strsim 0.10.0",- "stt","symphonia","sysinfo","tempfile",@@ -5665,6 +5678,7 @@ version = "0.3.158"dependencies = ["anyhow","async-trait",+ "audiopipe","axum","base64 0.22.1","bincode",@@ -5704,7 +5718,6 @@ dependencies = ["serde_json","sha2","sqlx",- "stt","sysinfo","tempfile","tokio",@@ -6494,19 +6507,6 @@ dependencies = ["syn 2.0.117",]-[[package]]-name = "stt"-version = "0.1.0"-source = "git+https://github.com/screenpipe/audiopipe.git?rev=bf38610#bf38610d6a30cf6ce4e75d506c6b39ad1b25d9c1"-dependencies = [- "hf-hub 0.4.3",- "qwen3-asr-sys",- "serde",- "serde_json",- "thiserror 2.0.18",- "tracing",-]-[[package]]name = "subprocess"version = "0.2.15"diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lockindex eb2c7680b..aa3c74451 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -798,6 +798,19 @@ dependencies = ["zbus",]+[[package]]+name = "audiopipe"+version = "0.2.0"+source = "git+https://github.com/screenpipe/audiopipe.git?rev=c846356#c8463561962437c4bf55c364d6b6104bee742974"+dependencies = [+ "hf-hub 0.4.3",+ "qwen3-asr-sys",+ "serde",+ "serde_json",+ "thiserror 2.0.18",+ "tracing",+]+[[package]]name = "auto-launch"version = "0.5.0"@@ -7333,7 +7346,7 @@ dependencies = [[[package]]name = "qwen3-asr-sys"version = "0.1.0"-source = "git+https://github.com/screenpipe/audiopipe.git?rev=bf38610#bf38610d6a30cf6ce4e75d506c6b39ad1b25d9c1"+source = "git+https://github.com/screenpipe/audiopipe.git?rev=c846356#c8463561962437c4bf55c364d6b6104bee742974"dependencies = ["cc","cmake",@@ -8309,6 +8322,7 @@ name = "screenpipe-audio"version = "0.3.158"dependencies = ["anyhow",+ "audiopipe","bytemuck","bytes","chrono",@@ -8345,7 +8359,6 @@ dependencies = ["screenpipe-events","serde","serde_json",- "stt","symphonia","sysinfo","tokio",@@ -8464,6 +8477,7 @@ version = "0.3.158"dependencies = ["anyhow","async-trait",+ "audiopipe","axum 0.7.9","base64 0.22.1","bincode",@@ -8500,7 +8514,6 @@ dependencies = ["serde_json","sha2","sqlx",- "stt","sysinfo","tempfile","tokio",@@ -9715,19 +9728,6 @@ dependencies = ["syn 2.0.117",]-[[package]]-name = "stt"-version = "0.1.0"-source = "git+https://github.com/screenpipe/audiopipe.git?rev=bf38610#bf38610d6a30cf6ce4e75d506c6b39ad1b25d9c1"-dependencies = [- "hf-hub 0.4.3",- "qwen3-asr-sys",- "serde",- "serde_json",- "thiserror 2.0.18",- "tracing",-]-[[package]]name = "subprocess"version = "0.2.15"diff --git a/crates/screenpipe-audio/Cargo.toml b/crates/screenpipe-audio/Cargo.tomlindex 577f90999..cc44a3689 100644--- a/crates/screenpipe-audio/Cargo.toml+++ b/crates/screenpipe-audio/Cargo.toml@@ -81,7 +81,7 @@ ort-sys = "=2.0.0-rc.6"knf-rs = { git = "https://github.com/Neptune650/knf-rs.git" }futures = "0.3.31"deepgram = "0.6.4"-stt = { git = "https://github.com/screenpipe/audiopipe.git", rev = "bf38610", default-features = false, features = ["qwen3-asr-ggml"], optional = true }+audiopipe = { git = "https://github.com/screenpipe/audiopipe.git", rev = "c846356", default-features = false, features = ["qwen3-asr-ggml"], optional = true }bytes = { version = "1.9.0", features = ["serde"] }rand = "0.9.0"@@ -118,10 +118,10 @@ metal = ["whisper-rs/metal"]cuda = ["whisper-rs/cuda"]vulkan = ["whisper-rs/vulkan"]pulseaudio = ["dep:libpulse-binding", "dep:libpulse-simple-binding"]-qwen3-asr = ["dep:stt"]+qwen3-asr = ["dep:audiopipe"]# GGML GPU backends for Qwen3-ASR (Metal auto-detects on macOS)-coreml = ["stt/metal"]-directml = ["stt/vulkan-ggml"]+coreml = ["audiopipe/metal"]+directml = ["audiopipe/vulkan-ggml"][[example]]name = "screenpipe-audio"diff --git a/crates/screenpipe-audio/src/audio_manager/manager.rs b/crates/screenpipe-audio/src/audio_manager/manager.rsindex 4b7b143e0..443658e4f 100644--- a/crates/screenpipe-audio/src/audio_manager/manager.rs+++ b/crates/screenpipe-audio/src/audio_manager/manager.rs@@ -458,7 +458,7 @@ impl AudioManager {{if *audio_transcription_engine == AudioTranscriptionEngine::Qwen3Asr {match tokio::task::spawn_blocking(|| {- stt::Model::from_pretrained("qwen3-asr-0.6b-ggml")+ audiopipe::Model::from_pretrained("qwen3-asr-0.6b-ggml")}).await{diff --git a/crates/screenpipe-audio/src/transcription/stt.rs b/crates/screenpipe-audio/src/transcription/stt.rsindex c2ba9e869..b793ac907 100644--- a/crates/screenpipe-audio/src/transcription/stt.rs+++ b/crates/screenpipe-audio/src/transcription/stt.rs@@ -37,9 +37,9 @@ pub trait AlternateStt: Send {pub type AlternateSttEngine = Arc<StdMutex<Box<dyn AlternateStt + Send>>>;#[cfg(feature = "qwen3-asr")]-impl AlternateStt for stt::Model {+impl AlternateStt for audiopipe::Model {fn transcribe(&mut self, audio: &[f32], sample_rate: u32) -> Result<String> {- let opts = stt::TranscribeOptions::default();+ let opts = audiopipe::TranscribeOptions::default();let result = self.transcribe_with_sample_rate(audio, sample_rate, opts).map_err(|e| anyhow::anyhow!("{}", e))?;diff --git a/crates/screenpipe-server/Cargo.toml b/crates/screenpipe-server/Cargo.tomlindex 588f58c36..e0de80e57 100644--- a/crates/screenpipe-server/Cargo.toml+++ b/crates/screenpipe-server/Cargo.toml@@ -17,7 +17,7 @@ oasgen = { workspace = true }screenpipe-events = { path = "../screenpipe-events" }screenpipe-vision = { path = "../screenpipe-vision" }screenpipe-audio = { path = "../screenpipe-audio" }-stt = { git = "https://github.com/screenpipe/audiopipe.git", rev = "bf38610", default-features = false, features = ["qwen3-asr-ggml"], optional = true }+audiopipe = { git = "https://github.com/screenpipe/audiopipe.git", rev = "c846356", default-features = false, features = ["qwen3-asr-ggml"], optional = true }screenpipe-core = { path = "../screenpipe-core", features = ["security", "cloud-sync"] }screenpipe-db = { path = "../screenpipe-db" }screenpipe-accessibility = { path = "../screenpipe-accessibility", features = ["db"] }@@ -124,7 +124,7 @@ vulkan = ["screenpipe-audio/vulkan"]debug-console = ["console-subscriber"]pulseaudio = ["screenpipe-audio/pulseaudio"]apple-intelligence = ["dep:screenpipe-apple-intelligence"]-qwen3-asr = ["screenpipe-audio/qwen3-asr", "dep:stt"]+qwen3-asr = ["screenpipe-audio/qwen3-asr", "dep:audiopipe"]coreml = ["screenpipe-audio/coreml"]directml = ["screenpipe-audio/directml"]diff --git a/crates/screenpipe-server/src/routes/retranscribe.rs b/crates/screenpipe-server/src/routes/retranscribe.rsindex 29e56f217..eca96101c 100644--- a/crates/screenpipe-server/src/routes/retranscribe.rs+++ b/crates/screenpipe-server/src/routes/retranscribe.rs@@ -134,7 +134,7 @@ pub async fn retranscribe_handler({use screenpipe_audio::core::engine::AudioTranscriptionEngine;if *engine == AudioTranscriptionEngine::Qwen3Asr {- match stt::Model::from_pretrained("qwen3-asr-0.6b-ggml") {+ match audiopipe::Model::from_pretrained("qwen3-asr-0.6b-ggml") {Ok(model) => {info!("loaded qwen3-asr model for retranscription");Some(std::sync::Arc::new(std::sync::Mutex::new(