Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect when audio is active #41

Open
Kahn opened this issue May 20, 2020 · 4 comments
Open

Detect when audio is active #41

Kahn opened this issue May 20, 2020 · 4 comments

Comments

@Kahn
Copy link

Kahn commented May 20, 2020

I've not looked into what APIs might be available but I would love to have the AFK detection be able to detect when I'm on a video conference and listening / speaking versus actually AFK. Given the various audio privacy features I'm hopeful we can find some hooks to check for active programs bound to a mic input versus just speaker output.

It might be sane to say if a microphone is present AND it's bound to an application then extend the AFK timeout to say 30 minutes. This wouldn't really cover webinar style one way presentations but at least we can get halfway there :)

@ErikBjare
Copy link
Member

If you want to build this I'd suggest you do this as a separate watcher, especially due to the many cross-platform concerns.

We already do something similar for the web watcher, but it isn't yet taken into account in the Activity view (although there is an old PR that partially implements it).

Extending the AFK timeout is not the right way to do it, then any >30min meetings would be completely marked as AFK.

@ErikBjare
Copy link
Member

This has been discussed before btw, either in issues or on the forum. You might want to search for those discussions.

@corradio
Copy link

Is this being worked on somewhere? This would be immensely helpful.

@jifalops
Copy link

jifalops commented Apr 29, 2022

Bump. I went afk with youtube music playing and it logged several hours on the most recent chrome tab (linux+extension).

Bravo on not getting tripped up by "installed" chrome apps like RescueTime did. I only found Activity Watch through a popular stack overflow question, and I had spent days searching and trying things. (I initially was looking for a "time tracker" which turns out to usually mean stopwatches and project management, I just wanted an easy way to log how I spent my time.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants