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: audio_search (#902)

Ezra Ellette62c971ece1ac
diff --git a/screenpipe-server/src/db.rs b/screenpipe-server/src/db.rs
index 0e88c34d0..ea662d826 100644
--- a/screenpipe-server/src/db.rs
+++ b/screenpipe-server/src/db.rs
@@ -825,7 +825,7 @@ impl DatabaseManager {
AND (?3 IS NULL OR audio_transcriptions.timestamp <= ?3)
AND (?4 IS NULL OR LENGTH(audio_transcriptions.transcription) >= ?4)
AND (?5 IS NULL OR LENGTH(audio_transcriptions.transcription) <= ?5)
- AND speakers.hallucination = 0
+ AND (speakers.id IS NULL OR speakers.hallucination = 0)
AND (json_array_length(?6) = 0 OR audio_transcriptions.speaker_id IN (SELECT value FROM json_each(?6)))
GROUP BY audio_transcriptions.audio_chunk_id, audio_transcriptions.offset_index
ORDER BY audio_transcriptions.timestamp DESC