diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml index 6fce253e..07a39823 100644 --- a/.github/workflows/release-app.yml +++ b/.github/workflows/release-app.yml @@ -8,9 +8,9 @@ name: Release App on: - # push: - # tags: - # - "v*" + push: + tags: + - "v*" workflow_dispatch: jobs: diff --git a/output_0.mp4 b/output_0.mp4 new file mode 100644 index 00000000..2b54a1a6 Binary files /dev/null and b/output_0.mp4 differ diff --git a/screenpipe-audio/src/stt.rs b/screenpipe-audio/src/stt.rs index 7cdd977e..fc4f044c 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 async fn transcribe_with_deepgram(api_key: &str, audio_data: &[f32]) -> Result { debug!("Starting Deepgram transcription"); let client = Client::new(); diff --git a/screenpipe-server/src/core.rs b/screenpipe-server/src/core.rs index 7f2a4082..4c30fbd4 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 +}