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
try fix windows audio output
Louis Beaumont6cb6dd0158eb
diff --git a/activity-log-8-20-24, 12-13 PM.json b/activity-log-8-20-24, 12-13 PM.jsonnew file mode 100644index 000000000..da3c8e9c9--- /dev/null+++ b/activity-log-8-20-24, 12-13 PM.json@@ -0,0 +1,329 @@+[+ {+ "topics": [+ "discussion",+ "project"+ ],+ "tags": [+ "work",+ "team"+ ],+ "summary": "Discussed project details and assigned tasks.",+ "timestamp": "2024-08-20T10:13:49Z",+ "sources": [+ "/Users/louisbeaumont/.screenpipe/data/2024-08-20_10-13-20.mp4"+ ]+ },+ {+ "topics": [+ "programming",+ "Rust"+ ],+ "tags": [+ "learning",+ "development"+ ],+ "summary": "Working on Rust programming, focusing on Cursor Tab functionality.",+ "timestamp": "2024-08-20T10:14:54Z",+ "sources": [+ "/Users/louisbeaumont/.screenpipe/data/2024-08-20_10-13-20.mp4"+ ]+ },+ {+ "topics": [+ "cursor",+ "activity",+ "monitor"+ ],+ "tags": [+ "screen recording",+ "user interaction",+ "technology"+ ],+ "summary": "User interacted with the Cursor app on their monitor.",+ "timestamp": "2024-08-20T10:16:05Z",+ "sources": [+ "/Users/louisbeaumont/.screenpipe/data/2024-08-20_10-13-20.mp4"+ ]+ },+ {+ "topics": [+ "rust",+ "debugging"+ ],+ "tags": [+ "programming",+ "development"+ ],+ "summary": "Debugged a Rust application using the rust-analyzer.",+ "timestamp": "2024-08-20T10:17:15Z",+ "sources": [+ "/Users/louisbeaumont/.screenpipe/data/2024-08-20_10-13-20.mp4"+ ]+ },+ {+ "topics": [+ "meeting",+ "discussion"+ ],+ "tags": [+ "work",+ "team"+ ],+ "summary": "Discussed project requirements.",+ "timestamp": "2024-08-20T10:19:39Z",+ "sources": [+ "/Users/louisbeaumont/.screenpipe/data/2024-08-20_10-13-20.mp4"+ ]+ },+ {+ "topics": [+ "Cursor",+ "Tab"+ ],+ "tags": [+ "app activity"+ ],+ "summary": "User interacted with the Cursor app, specifically on the 'main.js — screen-pipe' window.",+ "timestamp": "2024-08-20T10:20:50Z",+ "sources": [+ "/Users/louisbeaumont/.screenpipe/data/2024-08-20_10-13-20.mp4"+ ]+ },+ {+ "topics": [+ "cursor",+ "tab"+ ],+ "tags": [+ "activity",+ "input"+ ],+ "summary": "Pressed 'Tab' key on Cursor app",+ "timestamp": "2024-08-20T10:22:03Z",+ "sources": [+ "/Users/louisbeaumont/.screenpipe/data/2024-08-20_10-13-20.mp4"+ ]+ },+ {+ "topics": [+ "clock",+ "setting"+ ],+ "tags": [+ "adjustment",+ "time",+ "important"+ ],+ "summary": "Adjusted the clock settings.",+ "timestamp": "2024-08-20T10:24:22Z",+ "sources": [+ "/Users/louisbeaumont/.screenpipe/data/2024-08-20_10-22-32.mp4"+ ]+ },+ {+ "topics": [+ "Cursor",+ "Tab"+ ],+ "tags": [+ "code",+ "editor"+ ],+ "summary": "Navigated through code using Cursor Tab.",+ "timestamp": "2024-08-20T10:25:23Z",+ "sources": [+ "/Users/louisbeaumont/.screenpipe/data/2024-08-20_10-22-32.mp4"+ ]+ },+ {+ "topics": [+ "meeting",+ "discussion",+ "Reddit"+ ],+ "tags": [+ "online",+ "social media",+ "community"+ ],+ "summary": "Participated in a Reddit discussion on the Arc app.",+ "timestamp": "2024-08-20T10:26:31Z",+ "sources": [+ "/Users/louisbeaumont/.screenpipe/data/2024-08-20_10-26-23.mp4"+ ]+ },+ {+ "topics": [+ "meeting",+ "discussion"+ ],+ "tags": [+ "work",+ "team"+ ],+ "summary": "Discussed project requirements and brainstormed ideas.",+ "timestamp": "2024-08-18T13:56:39Z",+ "sources": [+ "/Users/louisbeaumont/.screenpipe/data/2024-08-20_10-26-23.mp4"+ ]+ },+ {+ "topics": [+ "discussion",+ "AI"+ ],+ "tags": [+ "work",+ "team",+ "tech"+ ],+ "summary": "Discussed AI integration with Arc app on FOSS AI platform.",+ "timestamp": "2024-08-20T10:26:23Z",+ "sources": [+ "/Users/louisbeaumont/.screenpipe/data/2024-08-20_10-26-23.mp4"+ ]+ },+ {+ "topics": [+ "Builder"+ ],+ "tags": [+ "Arc",+ "waitlist welcome"+ ],+ "summary": "Participated in the Builder activity on Arc",+ "timestamp": "2024-08-20T10:30:00Z",+ "sources": [+ "/Users/louisbeaumont/.screenpipe/data/2024-08-20_10-26-23.mp4"+ ]+ },+ {+ "topics": [+ "video",+ "conference",+ "discussion"+ ],+ "tags": [+ "work",+ "team",+ "meeting"+ ],+ "summary": "Attended a video conference discussing project updates and action items.",+ "timestamp": "2024-08-20T10:31:07Z",+ "sources": [+ "/Users/louisbeaumont/.screenpipe/data/2024-08-20_10-30-13.mp4"+ ]+ },+ {+ "topics": [+ "waitlist",+ "welcome"+ ],+ "tags": [+ "Arc",+ "app"+ ],+ "summary": "Engaged with the waitlist welcome process on the Arc app.",+ "timestamp": "2024-08-20T10:32:25Z",+ "sources": [+ "/Users/louisbeaumont/.screenpipe/data/2024-08-20_10-30-13.mp4"+ ]+ },+ {+ "topics": [+ "waitlist",+ "welcome"+ ],+ "tags": [+ "Arc",+ "app",+ "user onboarding"+ ],+ "summary": "Assisted users through the waitlist welcome process in Arc app.",+ "timestamp": "2024-08-20T10:33:31Z",+ "sources": [+ "/Users/louisbeaumont/.screenpipe/data/2024-08-20_10-30-13.mp4"+ ]+ },+ {+ "topics": [+ "chat",+ "introduction"+ ],+ "tags": [+ "welcome",+ "initial contact",+ " Arc app"+ ],+ "summary": "Introduced myself as Louis, founder of Screenpipe, and initiated a chat session.",+ "timestamp": "2024-08-20T10:30:13Z",+ "sources": [+ "/Users/louisbeaumont/.screenpipe/data/2024-08-20_10-30-13.mp4"+ ]+ },+ {+ "topics": [+ "marketing",+ "audience",+ "email"+ ],+ "tags": [+ "communication",+ "customer",+ "automation"+ ],+ "summary": "Sent an email to new audience member",+ "timestamp": "2024-08-20T10:35:47Z",+ "sources": [+ "/Users/louisbeaumont/.screenpipe/data/2024-08-20_10-34-44.mp4"+ ]+ },+ {+ "topics": [+ "meeting",+ "discussion",+ "brainstorming"+ ],+ "tags": [+ "work",+ "team",+ "productivity"+ ],+ "summary": "Discussed new ideas and brainstormed future plans.",+ "timestamp": "2024-08-20T10:38:02Z",+ "sources": [+ "/Users/louisbeaumont/.screenpipe/data/2024-08-20_10-34-44.mp4"+ ]+ },+ {+ "topics": [+ "discussion",+ "meeting"+ ],+ "tags": [+ "work",+ "team"+ ],+ "summary": "Discussed project requirements with the team on Discord.",+ "timestamp": "2024-08-20T10:39:23Z",+ "sources": [+ "/Users/louisbeaumont/.screenpipe/data/2024-08-20_10-34-44.mp4"+ ]+ },+ {+ "topics": [+ "discussion",+ "work",+ "team"+ ],+ "tags": [+ "important"+ ],+ "summary": "Discussed project requirements and assigned tasks with the team on Discord.",+ "timestamp": "2024-08-20T10:40:29Z",+ "sources": [+ "/Users/louisbeaumont/.screenpipe/data/2024-08-20_10-39-31.mp4"+ ]+ }+]\ No newline at end of filediff --git a/screenpipe-audio/src/core.rs b/screenpipe-audio/src/core.rsindex fc1693781..10ed28aa7 100644--- a/screenpipe-audio/src/core.rs+++ b/screenpipe-audio/src/core.rs@@ -287,27 +287,59 @@ pub async fn record_and_transcribe(let output_path_clone = Arc::new(output_path);let output_path_clone_2 = Arc::clone(&output_path_clone);+ // Define the error callback function+ let error_callback = move |err: StreamError| {+ error!("An error occurred on the audio stream: {}", err);+ if err.to_string().contains("device is no longer valid") {+ warn!("Audio device disconnected. Stopping recording.");+ is_running_clone_2.store(false, Ordering::Relaxed);+ }+ };// Spawn a thread to handle the non-Send streamthread::spawn(move || {let stream = match config.sample_format() {- cpal::SampleFormat::F32 => cpal_audio_device.build_input_stream(+ cpal::SampleFormat::I8 => cpal_audio_device.build_input_stream(&config.into(),- move |data: &[f32], _: &_| {+ move |data: &[i8], _: &_| {if is_running_clone_3.load(Ordering::Relaxed) {let _ = tx.blocking_send(bytemuck::cast_slice(data).to_vec());}},- move |err: StreamError| {- error!("An error occurred on the audio stream: {}", err);- if err.to_string().contains("device is no longer valid") {- warn!("Audio device disconnected. Stopping recording.");- is_running_clone_2.store(false, Ordering::Relaxed);+ error_callback,+ None,+ ),+ cpal::SampleFormat::I16 => cpal_audio_device.build_input_stream(+ &config.into(),+ move |data: &[i16], _: &_| {+ if is_running_clone_3.load(Ordering::Relaxed) {+ let _ = tx.blocking_send(bytemuck::cast_slice(data).to_vec());+ }+ },+ error_callback,+ None,+ ),+ cpal::SampleFormat::I32 => cpal_audio_device.build_input_stream(+ &config.into(),+ move |data: &[i32], _: &_| {+ if is_running_clone_3.load(Ordering::Relaxed) {+ let _ = tx.blocking_send(bytemuck::cast_slice(data).to_vec());+ }+ },+ error_callback,+ None,+ ),+ cpal::SampleFormat::F32 => cpal_audio_device.build_input_stream(+ &config.into(),+ move |data: &[f32], _: &_| {+ if is_running_clone_3.load(Ordering::Relaxed) {+ let _ = tx.blocking_send(bytemuck::cast_slice(data).to_vec());}},+ error_callback,None,),- f => {- error!("Unsupported sample format: {:?}", f);+ _ => {+ error!("Unsupported sample format: {:?}", config.sample_format());return;}};diff --git a/screenpipe-server/src/bin/screenpipe-server.rs b/screenpipe-server/src/bin/screenpipe-server.rsindex 507d1f8f9..27d48cbd0 100644--- a/screenpipe-server/src/bin/screenpipe-server.rs+++ b/screenpipe-server/src/bin/screenpipe-server.rs@@ -331,7 +331,8 @@ async fn main() -> anyhow::Result<()> {#[cfg(feature = "pipes")]if !cli.pipe.is_empty() {use tokio::process::Command;- let status = Command::new("screenpipe-pipe-runner")+ // ! HACK until we have clean way to store the bin+ let status = Command::new("target/release/screenpipe-pipe-runner").arg("--pipe").args(&cli.pipe).status()