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

fix build

Louis Beaumontf0a35b6817b7
diff --git a/screenpipe-audio/Cargo.toml b/screenpipe-audio/Cargo.toml
index a590b05cb..e1d9dfff0 100644
--- a/screenpipe-audio/Cargo.toml
+++ b/screenpipe-audio/Cargo.toml
@@ -66,6 +66,8 @@ screenpipe-core = { path = "../screenpipe-core" }
[target.'cfg(target_os = "windows")'.dependencies]
ort = { version = "2.0.0-rc.5", features = ["load-dynamic"], default-features = false }
esaxx-rs = "0.1.10"
+samplerate = { version = "0.2.4" }
+libsamplerate-sys = "0.1.10"
[target.'cfg(target_os = "macos")'.dependencies]
once_cell = "1.17.1"
diff --git a/screenpipe-audio/src/core.rs b/screenpipe-audio/src/core.rs
index 9ec4d4df6..f73a937cb 100644
--- a/screenpipe-audio/src/core.rs
+++ b/screenpipe-audio/src/core.rs
@@ -464,7 +464,7 @@ pub fn default_input_device() -> Result<AudioDevice> {
let device = host.default_input_device().unwrap();
Ok(AudioDevice::new(device.name()?, DeviceType::Input))
}
-
+// this should be optional ?
pub async fn default_output_device() -> Result<AudioDevice> {
#[cfg(target_os = "macos")]
{