Author Topic: Detecting if Google Chrome is playing audio  (Read 788 times)

Roar

  • Newbie
  • *
  • Posts: 3
Detecting if Google Chrome is playing audio
« on: January 28, 2020, 09:28:04 PM »
Okay, so leaning more into the VoiceAttack radio station/mp3 player vibe, I have another hot question for you. Is there a way to have Voiceattack detect whether or not Google Chrome is playing audio? Alternatively, it would work if Voiceattack could detect ANY other audio than Voiceattack.

The practical purpose of this is, in theory, to be able run on a loop every few seconds and detect whether or not a music stream is playing music on a Google Chrome tab. If it's playing audio, it would mute Voiceattack. If the website isn't playing audio, it would unmute Voiceattack.

This might be super easy and I'm just dumb about that sort of thing.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4761
  • RTFM
Re: Detecting if Google Chrome is playing audio
« Reply #1 on: January 29, 2020, 04:48:31 PM »
That is theoretically possible, using the library referenced in this StackExchange thread.

If you have C# programming knowledge you could implement this as an inline function or a plugin.