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

passing cli flag

matthew-heartful12f75bbfe24e
diff --git a/screenpipe-audio/src/bin/screenpipe-audio.rs b/screenpipe-audio/src/bin/screenpipe-audio.rs
index 157293580..7c1fcb47e 100644
--- a/screenpipe-audio/src/bin/screenpipe-audio.rs
+++ b/screenpipe-audio/src/bin/screenpipe-audio.rs
@@ -25,6 +25,9 @@ struct Args {
#[clap(long, help = "List available audio devices")]
list_audio_devices: bool,
+
+ #[clap(long, help = "Disable cloud audio processing")]
+ cloud_audio_off: bool,
}
fn print_devices(devices: &[AudioDevice]) {
@@ -74,7 +77,8 @@ async fn main() -> Result<()> {
let chunk_duration = Duration::from_secs(5);
let output_path = PathBuf::from("output.mp4");
- let (whisper_sender, mut whisper_receiver) = create_whisper_channel().await?;
+ let cloud_audio = !args.cloud_audio_off;
+ let (whisper_sender, mut whisper_receiver) = create_whisper_channel(cloud_audio).await?;
// Spawn threads for each device
let recording_threads: Vec<_> = devices
.into_iter()
@@ -128,4 +132,4 @@ async fn main() -> Result<()> {
}
Ok(())
-}
+}
\ No newline at end of file