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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
update cli
Louis Beaumont4ed4419545db
diff --git a/screenpipe-audio/src/bin/screenpipe-audio-forever.rs b/screenpipe-audio/src/bin/screenpipe-audio-forever.rsindex 1281387c7..2d635ae4e 100644--- a/screenpipe-audio/src/bin/screenpipe-audio-forever.rs+++ b/screenpipe-audio/src/bin/screenpipe-audio-forever.rs@@ -26,6 +26,9 @@ struct Args {#[clap(long, help = "List available audio devices")]list_audio_devices: bool,++ #[clap(long, help = "Audio chunk duration in seconds")]+ audio_chunk_duration: f32,}fn print_devices(devices: &[AudioDevice]) {@@ -76,7 +79,7 @@ async fn main() -> Result<()> {std::fs::remove_file("output_0.mp4").unwrap_or_default();std::fs::remove_file("output_1.mp4").unwrap_or_default();- let chunk_duration = Duration::from_secs(10);+ let chunk_duration = Duration::from_secs_f32(args.audio_chunk_duration);let output_path = PathBuf::from("output.mp4");let (whisper_sender, mut whisper_receiver, _) =create_whisper_channel(Arc::new(AudioTranscriptionEngine::WhisperDistilLargeV3)).await?;diff --git a/screenpipe-vision/src/bin/screenpipe-vision.rs b/screenpipe-vision/src/bin/screenpipe-vision.rsindex 1c7263884..d1247d38a 100644--- a/screenpipe-vision/src/bin/screenpipe-vision.rs+++ b/screenpipe-vision/src/bin/screenpipe-vision.rs@@ -13,6 +13,10 @@ struct Cli {/// Disable cloud OCR processing#[arg(long, default_value_t = false)]cloud_ocr_off: bool, // Add this flag++ /// FPS+ #[arg(long, default_value_t = 1.0)]+ fps: f32,}#[tokio::main]@@ -29,7 +33,7 @@ async fn main() {tokio::spawn(async move {continuous_capture(result_tx,- Duration::from_secs(1),+ Duration::from_secs_f32(1.0 / cli.fps),save_text_files,Arc::new(if cfg!(target_os = "macos") {OcrEngine::AppleNative@@ -54,6 +58,6 @@ async fn main() {);}- tokio::time::sleep(Duration::from_millis(100)).await;+ // tokio::time::sleep(Duration::from_secs_f32(1.0 / cli.fps)).await;}}