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

Bump app to v2.0.588

Louis Beaumont535815f2f8a9
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index 1cf9adb54..59f2b51f7 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -8183,7 +8183,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.0.587"
+version = "2.0.588"
dependencies = [
"anyhow",
"arboard",
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index 705fae8c6..e934b66f2 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "2.0.587"
+version = "2.0.588"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""
diff --git a/crates/screenpipe-audio/src/transcription/whisper/batch.rs b/crates/screenpipe-audio/src/transcription/whisper/batch.rs
index 45be6d0e7..2b0f1fa93 100644
--- a/crates/screenpipe-audio/src/transcription/whisper/batch.rs
+++ b/crates/screenpipe-audio/src/transcription/whisper/batch.rs
@@ -59,7 +59,7 @@ pub async fn process_with_whisper(
// Entropy threshold: high-entropy (repetitive/looping) output is suppressed
params.set_entropy_thold(2.4);
// Log-probability threshold: low-confidence segments are dropped
- params.set_logprob_thold(-1.0);
+ params.set_logprob_thold(-2.0);
whisper_state.pcm_to_mel(&audio, 2)?;
let (_, lang_tokens) = whisper_state.lang_detect(0, 2)?;
@@ -101,58 +101,5 @@ pub async fn process_with_whisper(
}
}
- // Post-processing: filter out known Whisper hallucination patterns.
- // When Whisper processes noise/non-speech, it often produces these short generic phrases
- // as the ENTIRE output. Real speech produces longer, contextual text.
- let trimmed = transcript.trim();
- if is_hallucination(trimmed) {
- debug!("filtered hallucination: {:?}", trimmed);
- return Ok(String::new());
- }
-
Ok(transcript)
}
-
-/// Check if transcription output is a known Whisper hallucination pattern.
-/// These are short generic phrases that Whisper produces on silence/noise/non-speech audio.
-/// Only matches when the phrase IS the entire output (not part of a longer transcription).
-fn is_hallucination(text: &str) -> bool {
- // Normalize: lowercase, strip punctuation and extra whitespace
- let normalized: String = text
- .to_lowercase()
- .chars()
- .filter(|c| c.is_alphanumeric() || c.is_whitespace())
- .collect::<String>()
- .split_whitespace()
- .collect::<Vec<_>>()
- .join(" ");
-
- if normalized.is_empty() {
- return false; // empty is fine, not hallucination
- }
-
- // Known hallucination phrases (normalized, no punctuation)
- const HALLUCINATIONS: &[&str] = &[
- "thank you",
- "thanks for watching",
- "thanks for listening",
- "so lets go",
- "lets go",
- "bye",
- "bye bye",
- "goodbye",
- "please subscribe",
- "subscribe",
- "like and subscribe",
- "you",
- "yeah",
- "oh",
- "hmm",
- "music",
- "applause",
- "laughter",
- "silence",
- ];
-
- HALLUCINATIONS.contains(&normalized.as_str())
-}
diff --git a/crates/screenpipe-audio/src/vad/silero.rs b/crates/screenpipe-audio/src/vad/silero.rs
index 012daf251..8f31522ec 100644
--- a/crates/screenpipe-audio/src/vad/silero.rs
+++ b/crates/screenpipe-audio/src/vad/silero.rs
@@ -182,6 +182,9 @@ impl SileroVad {
impl VadEngine for SileroVad {
fn is_voice_segment(&mut self, audio_chunk: &[f32]) -> anyhow::Result<bool> {
+ // Silero VAD v5 requires fixed 512 samples for 16kHz (~32ms).
+ // Process all windows but only update history once per frame (with max prob)
+ // to preserve FRAME_HISTORY as a history across frames, not within a frame.
const CHUNK_SIZE: usize = 512;
let threshold = self.effective_speech_threshold();
@@ -196,21 +199,23 @@ impl VadEngine for SileroVad {
anyhow::anyhow!("Vad compute error: {}", e)
})?;
- self.update_status(result.prob);
if result.prob > max_prob {
max_prob = result.prob;
}
}
+ self.update_status(max_prob);
Ok(max_prob > threshold)
}
fn audio_type(&mut self, audio_chunk: &[f32]) -> anyhow::Result<VadStatus> {
+ // Silero VAD v5 requires fixed 512 samples for 16kHz (~32ms).
+ // Process all windows but only update history once per frame (with max prob)
+ // to preserve FRAME_HISTORY as a history across frames, not within a frame.
const CHUNK_SIZE: usize = 512;
let threshold = self.effective_speech_threshold();
let mut max_prob: f32 = 0.0;
- let mut last_status = VadStatus::Unknown;
for window in audio_chunk.chunks(CHUNK_SIZE) {
let mut chunk_data = window.to_vec();
@@ -221,17 +226,18 @@ impl VadEngine for SileroVad {
anyhow::anyhow!("Vad compute error: {}", e)
})?;
- last_status = self.update_status(result.prob);
if result.prob > max_prob {
max_prob = result.prob;
}
}
+ let status = self.update_status(max_prob);
+
if max_prob > threshold {
return Ok(VadStatus::Speech);
}
- match last_status {
+ match status {
VadStatus::Unknown => Ok(VadStatus::Unknown),
_ => Ok(VadStatus::Silence),
}