Skip to content

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

Make block async

kerosina94d9d49d3e64
diff --git a/screenpipe-audio/src/stt.rs b/screenpipe-audio/src/stt.rs
index 6d0648f12..54912e037 100644
--- a/screenpipe-audio/src/stt.rs
+++ b/screenpipe-audio/src/stt.rs
@@ -826,7 +826,7 @@ pub async fn create_whisper_channel(
let transcription_result = if cfg!(target_os = "macos") {
#[cfg(target_os = "macos")]
{
- autoreleasepool(|| {
+ autoreleasepool(|| async {
match stt(&input, &whisper_model, audio_transcription_engine.clone(), &mut *vad_engine, deepgram_api_key.clone(), &output_path).await {
Ok((transcription, path)) => TranscriptionResult {
input: input.clone(),