I'd want to turn on a physical red light anytime I'm actively in a Google Meet or on the phone so co-workers know I'm busy. Is there a Keyboard Maestro function that can check for microphone usage and activate an If This Then That (IFTTT) outlet? The Shokz OpenComm Headset has a busy light, but it's on the wrong side of my head to see from the office door. My office is the primary communications hub for the business; it's a steady stream of phone calls, co-workers, service requests, water cooler talk, clients, meetings, etc."
Apple M2 with 15.X Sequoia
Google Meet in Chrome 134.X
Elevate Desktop Phone Program
Keyboard Maestro 11.X
Shokz OpenComm Headset
Couldn't you just install a mirror (a convex mirror) on the side of your desk to reflect the red light? People could see the light in the mirror.
The question is, is there a macOS function that can check for mic usage. If so, then KM can also do it.
The first thing you should do is try this command in a terminal window:
lsof | grep "CoreAudio"
If the results of this command differ from when your microphone is in use, versus when it's not in use, then no doubt we can get KM to read the results of that command and trigger some IFTTT device.
Another thing that may work is if you notice a microphone icon in your system menu bar when you are using your mic. If so, then we can get KM to detect that condition.
Both of these mechanisms work for me, but I don't know if the results will differ with the software and hardware that you are using.
My question above was, "If the results of this command differ from when your microphone is in use, versus when it's not in use", so are you saying that this line appears when the microphone is in use, but not when it's not in use?
If that's what you are saying, then this macro may solve your problem: