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

feat: VAD sensitivity in CLI & app ui settings

Louis Beaumont9936ae35ce39
diff --git a/screenpipe-app-tauri/src-tauri/src/sidecar.rs b/screenpipe-app-tauri/src-tauri/src/sidecar.rs
index 3dcd42bf2..41a3b9bfa 100644
--- a/screenpipe-app-tauri/src-tauri/src/sidecar.rs
+++ b/screenpipe-app-tauri/src-tauri/src/sidecar.rs
@@ -189,6 +189,14 @@ fn spawn_sidecar(app: &tauri::AppHandle) -> Result<CommandChild, String> {
})
.map_err(|e| e.to_string())?;
+ let vad_sensitivity = with_store(app.clone(), stores.clone(), path.clone(), |store| {
+ Ok(store
+ .get("vadSensitivity")
+ .and_then(|v| v.as_str().map(String::from))
+ .unwrap_or(String::from("high")))
+ })
+ .map_err(|e| e.to_string())?;
+
let port_str = port.to_string();
let mut args = vec!["--port", port_str.as_str()];
let fps_str = fps.to_string();
@@ -269,6 +277,11 @@ fn spawn_sidecar(app: &tauri::AppHandle) -> Result<CommandChild, String> {
args.push(current_pid_str.as_str());
}
+ if vad_sensitivity != "high" {
+ args.push("--vad-sensitivity");
+ args.push(vad_sensitivity.as_str());
+ }
+
// args.push("--debug");
if cfg!(windows) {