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: do not add empty transcriptions to db
Louis Beaumont70039a90f315
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.ymlindex 6fce253ee..07a398232 100644--- a/.github/workflows/release-app.yml+++ b/.github/workflows/release-app.yml@@ -8,9 +8,9 @@name: Release Appon:- # push:- # tags:- # - "v*"+ push:+ tags:+ - "v*"workflow_dispatch:jobs:diff --git a/output_0.mp4 b/output_0.mp4new file mode 100644index 000000000..2b54a1a62Binary files /dev/null and b/output_0.mp4 differdiff --git a/screenpipe-audio/src/stt.rs b/screenpipe-audio/src/stt.rsindex 7cdd977e9..fc4f044c9 100644--- a/screenpipe-audio/src/stt.rs+++ b/screenpipe-audio/src/stt.rs@@ -410,6 +410,7 @@ fn get_deepgram_api_key() -> String {"7ed2a159a094337b01fd8178b914b7ae0e77822d".to_string()}+// TODO: this should use async reqwest not blocking, cause crash issue because all our code is asyncfn transcribe_with_deepgram(api_key: &str, audio_data: &[f32]) -> Result<String> {debug!("Starting Deepgram transcription");let client = Client::new();diff --git a/screenpipe-server/src/core.rs b/screenpipe-server/src/core.rsindex 7f2a40821..4c30fbd46 100644--- a/screenpipe-server/src/core.rs+++ b/screenpipe-server/src/core.rs@@ -222,7 +222,7 @@ async fn record_audio(.to_str().expect("Failed to create valid path").to_string();- debug!(+ debug!("Starting record_and_transcribe for device {} (iteration {})",audio_device_clone, iteration);@@ -297,8 +297,12 @@ async fn process_audio_result(db: &DatabaseManager, result: TranscriptionResult));return;}- info!("Inserting audio chunk: {:?}", result.transcription);let transcription = result.transcription.unwrap();+ // if audio text is empty skip, add debug log+ if transcription.is_empty() {+ return;+ }+ info!("Inserting audio chunk: {:?}", transcription);match db.insert_audio_chunk(&result.input.path).await {Ok(audio_chunk_id) => {if let Err(e) = db@@ -321,4 +325,4 @@ async fn process_audio_result(db: &DatabaseManager, result: TranscriptionResult)result.input.device, e),}-}\ No newline at end of file+}