I'm interested to check if any process (Linux, macOS or Windows) are using microphone. I've already found this on Check if microphone is used by a process but there is no answer.
I need something similar:
if process.usesMicrophone():
do something
or
if microphone.isActive(process):
do something
Can anybody help me? I'm not interested to record any audio. Just checking if a process uses or doesn't use microphone