From b2ca6c00fc381b1ea9c72ae0de4c50c4ad9c949a Mon Sep 17 00:00:00 2001 From: Louis Beaumont Date: Tue, 3 Sep 2024 13:22:04 -0700 Subject: [PATCH] try fix windows access is denied --- screenpipe-audio/src/core.rs | 9 +++++---- screenpipe-vision/src/microsoft.rs | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/screenpipe-audio/src/core.rs b/screenpipe-audio/src/core.rs index 437053916..f0d024421 100644 --- a/screenpipe-audio/src/core.rs +++ b/screenpipe-audio/src/core.rs @@ -412,10 +412,11 @@ pub async fn record_and_transcribe( error!("Error joining audio thread: {:?}", e); } - tokio::fs::File::open(&output_path_clone_2.to_path_buf()) - .await? - .sync_all() - .await?; + // Commented to chekc if its the "Access is denied on windows" error + // tokio::fs::File::open(&output_path_clone_2.to_path_buf()) + // .await? + // .sync_all() + // .await?; debug!("Sending audio to audio model"); if let Err(e) = whisper_sender.send(AudioInput { diff --git a/screenpipe-vision/src/microsoft.rs b/screenpipe-vision/src/microsoft.rs index 925f8def6..1d95b2ed3 100644 --- a/screenpipe-vision/src/microsoft.rs +++ b/screenpipe-vision/src/microsoft.rs @@ -39,4 +39,4 @@ pub async fn perform_ocr_windows(image: &DynamicImage) -> (String, String, Optio .to_string(); (text, json_output, Some(1.0)) -} \ No newline at end of file +}