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 core.rs
kerosina7ece166d4d63
diff --git a/screenpipe-audio/src/core.rs b/screenpipe-audio/src/core.rsindex 954e05a49..6d33cdb8f 100644--- a/screenpipe-audio/src/core.rs+++ b/screenpipe-audio/src/core.rs@@ -355,7 +355,9 @@ pub async fn list_audio_devices() -> Result<Vec<AudioDevice>> {pub fn default_input_device() -> Result<AudioDevice> {let host = cpal::default_host();- let device = host.default_input_device().unwrap();+ let device = host+ .default_input_device()+ .ok_or(anyhow!("No default input device detected"))?;Ok(AudioDevice::new(device.name()?, DeviceType::Input))}// this should be optional ?