Is it possible to detect when the system is recording sound and then doing some action in Python?

I started learning Python a few days ago and was curious about the practical use of the program.
Then I came up with the following: if my brother in his room is recording himself on the guitar, the LED plugs into the USB port and plugs in so that it lights up outside his door, and then I know he is recording and I take care not to make noise.
Main questions:

  • How can Python detect any write going on on the system?
  • How would I connect to usb so that I can actually turn on the LED?
+2


source to share


1 answer


for USB interface, you can read this related question .



to detect the entry, you must tell us which operating system your program intends to run on (but I'm not sure if you can detect that another application is being written)

0


source







All Articles