Replies: 1 comment
-
@jprisant thx! maybe you can check out the code of our meeting assistant: https://github.com/mediar-ai/screenpipe/tree/main/pipes/meeting usually you can do simple checks like if audio transcription with text seems to span over more than 5 min it's usually a meeting we have an experimental API that will stream you when a meeting start and stop based on voice activity detection and other stuff, would love any feedback import { pipe, EventStreamResponse } from "@screenpipe/browser";
async function listenForMeetingEvents(): Promise<void> {
// subscribe to the global events stream (images are not required for meeting events)
for await (const event of pipe.streamEvents(false)) {
switch (event.name) {
case "meeting_started": {
const { app, timestamp } = event.data as { app: string; timestamp: string };
console.log(`meeting started from app: ${app} at ${timestamp}`);
// Send a desktop notification to the user
await pipe.sendDesktopNotification({
title: "meeting started",
body: `meeting started from ${app}`,
});
break;
}
case "meeting_ended": {
const { app, timestamp } = event.data as { app: string; timestamp: string };
console.log(`meeting ended from app: ${app} at ${timestamp}`);
await pipe.sendDesktopNotification({
title: "meeting ended",
body: `meeting ended from ${app}`,
});
break;
}
default:
// other events are ignored
break;
}
}
}
// start listening for meeting events
listenForMeetingEvents().catch((err) => console.error("error listening for meeting events:", err)); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Screenpipe is awesome.
However, I am curious if there is a way to more thoughtfully limit audio recording to certain contexts.
Screenpipe is recording and pulling music lyrics, youtube videos, movies, etc :-D.
I'm trying to find a way to delete that content, but am also struggling to figure that out.
Beta Was this translation helpful? Give feedback.
All reactions