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
fix windows
Louis Beaumont43daa6b7ad66
diff --git a/screenpipe-app-tauri/components/settings.tsx b/screenpipe-app-tauri/components/settings.tsxindex 6e2fa3f35..4d9a357fc 100644--- a/screenpipe-app-tauri/components/settings.tsx+++ b/screenpipe-app-tauri/components/settings.tsx@@ -139,7 +139,7 @@ export function Settings({ className }: { className?: string }) {openai: <pre className="bg-gray-100 p-1 rounded-md">https://api.openai.com/v1</pre><br />for local providers like ollama usually it's- <pre className="bg-gray-100 p-1 rounded-md">http://localhost:11434</pre>+ <pre className="bg-gray-100 p-1 rounded-md">http://localhost:11434/v1</pre></p></TooltipContent></Tooltip>diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 46d603789..e8b586bb0 100644--- a/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "0.2.33"+version = "0.2.34"description = ""authors = ["you"]license = ""diff --git a/screenpipe-audio/src/vad_engine.rs b/screenpipe-audio/src/vad_engine.rsindex 4de63d0ff..630fb5d45 100644--- a/screenpipe-audio/src/vad_engine.rs+++ b/screenpipe-audio/src/vad_engine.rs@@ -1,8 +1,8 @@-use std::path::PathBuf;-use vad_rs::{Vad};use anyhow;-use std::io::Write;use log::debug;+use std::io::Write;+use std::path::PathBuf;+use vad_rs::Vad;pub enum VadEngineEnum {WebRtc,@@ -26,12 +26,11 @@ impl WebRtcVad {impl VadEngine for WebRtcVad {fn is_voice_segment(&mut self, audio_chunk: &[f32]) -> anyhow::Result<bool> {// Convert f32 to i16- let i16_chunk: Vec<i16> = audio_chunk- .iter()- .map(|&x| (x * 32767.0) as i16)- .collect();+ let i16_chunk: Vec<i16> = audio_chunk.iter().map(|&x| (x * 32767.0) as i16).collect();- let result = self.0.is_voice_segment(&i16_chunk)+ let result = self+ .0+ .is_voice_segment(&i16_chunk).map_err(|e| anyhow::anyhow!("WebRTC VAD error: {:?}", e))?;// debug!("WebRTC VAD result: is_voice_segment = {}", result);@@ -59,7 +58,8 @@ impl SileroVad {fn download_model() -> anyhow::Result<PathBuf> {debug!("Downloading SileroVAD model...");- let url = "https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/silero_vad.onnx";+ let url =+ "https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/silero_vad.onnx";let response = reqwest::blocking::get(url)?;let model_data = response.bytes()?;@@ -72,7 +72,6 @@ impl SileroVad {}}-#[cfg(not(target_os = "windows"))]impl VadEngine for SileroVad {fn is_voice_segment(&mut self, audio_chunk: &[f32]) -> anyhow::Result<bool> {const CHUNK_SIZE: usize = 1600; // 100 milliseconds@@ -101,9 +100,9 @@ pub fn create_vad_engine(engine: VadEngineEnum) -> anyhow::Result<Box<dyn VadEngVadEngineEnum::Silero => {let silero_vad = SileroVad::new()?;Ok(Box::new(silero_vad))- },+ }}}unsafe impl Send for WebRtcVad {}-unsafe impl Send for SileroVad {}\ No newline at end of file+unsafe impl Send for SileroVad {}