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

switch to audio when a speaker is selected in search (#960)

Ezra Ellettea5e04bc1455b
diff --git a/screenpipe-app-tauri/bun.lockb b/screenpipe-app-tauri/bun.lockb
index 2177d211c..c42805e66 100755
Binary files a/screenpipe-app-tauri/bun.lockb and b/screenpipe-app-tauri/bun.lockb differ
diff --git a/screenpipe-app-tauri/components/search-chat.tsx b/screenpipe-app-tauri/components/search-chat.tsx
index 205fbb313..85514ac9b 100644
--- a/screenpipe-app-tauri/components/search-chat.tsx
+++ b/screenpipe-app-tauri/components/search-chat.tsx
@@ -294,6 +294,16 @@ export function SearchChat({
const [speakerSearchQuery, setSpeakerSearchQuery] = useState("");
+ useEffect(() => {
+ if (Object.keys(selectedSpeakers).length > 0) {
+ setSelectedTypes({
+ ocr: false,
+ ui: false,
+ audio: true,
+ });
+ }
+ }, [selectedSpeakers]);
+
useEffect(() => {
setCurrentPlatform(platform());
}, []);
@@ -338,6 +348,14 @@ export function SearchChat({
const newTypes = { ...selectedTypes, [type]: !selectedTypes[type] };
setSelectedTypes(newTypes);
+ if (Object.keys(selectedSpeakers).length > 0) {
+ setSelectedTypes({
+ ocr: false,
+ ui: false,
+ audio: true,
+ });
+ }
+
// Convert checkbox state to content type
if (!newTypes.ocr && !newTypes.audio && !newTypes.ui) {
setContentType("all"); // fallback to all if nothing selected
@@ -1532,6 +1550,20 @@ export function SearchChat({
<SpeechIcon className="h-4 w-4" />
<span>speakers</span>
</Label>
+ <TooltipProvider>
+ <Tooltip>
+ <TooltipTrigger asChild>
+ <HelpCircle className="h-4 w-4 text-gray-400 cursor-help" />
+ </TooltipTrigger>
+ <TooltipContent>
+ <p>
+ select the speakers to include in the search results. this
+ will only show results from the selected speakers. note:
+ only audio results can be returned
+ </p>
+ </TooltipContent>
+ </Tooltip>
+ </TooltipProvider>
<Popover open={openSpeakers} onOpenChange={setOpenSpeakers}>
<PopoverTrigger asChild>
<Button
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lock
index 61f080ceb..1c1e9520f 100755
--- a/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -4966,7 +4966,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "0.16.8"
+version = "0.16.9"
dependencies = [
"anyhow",
"axum",
diff --git a/screenpipe-app-tauri/src-tauri/ui_monitor-aarch64-apple-darwin b/screenpipe-app-tauri/src-tauri/ui_monitor-aarch64-apple-darwin
index b8610eb78..8c8ef0920 100755
Binary files a/screenpipe-app-tauri/src-tauri/ui_monitor-aarch64-apple-darwin and b/screenpipe-app-tauri/src-tauri/ui_monitor-aarch64-apple-darwin differ
diff --git a/screenpipe-app-tauri/src-tauri/ui_monitor-x86_64-apple-darwin b/screenpipe-app-tauri/src-tauri/ui_monitor-x86_64-apple-darwin
index b8597c2ba..1ee1fa0af 100755
Binary files a/screenpipe-app-tauri/src-tauri/ui_monitor-x86_64-apple-darwin and b/screenpipe-app-tauri/src-tauri/ui_monitor-x86_64-apple-darwin differ
diff --git a/screenpipe-vision/bin/ui_monitor-aarch64-apple-darwin b/screenpipe-vision/bin/ui_monitor-aarch64-apple-darwin
index 1546bce73..27dc6d78e 100755
Binary files a/screenpipe-vision/bin/ui_monitor-aarch64-apple-darwin and b/screenpipe-vision/bin/ui_monitor-aarch64-apple-darwin differ
diff --git a/screenpipe-vision/lib/libscreenpipe_arm64.dylib b/screenpipe-vision/lib/libscreenpipe_arm64.dylib
index 817087c34..d936a8fe0 100755
Binary files a/screenpipe-vision/lib/libscreenpipe_arm64.dylib and b/screenpipe-vision/lib/libscreenpipe_arm64.dylib differ