Skip to content

Commit

Permalink
try fix windows access is denied
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Sep 3, 2024
1 parent 2ca65c5 commit b2ca6c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions screenpipe-audio/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion screenpipe-vision/src/microsoft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ pub async fn perform_ocr_windows(image: &DynamicImage) -> (String, String, Optio
.to_string();

(text, json_output, Some(1.0))
}
}

0 comments on commit b2ca6c0

Please sign in to comment.