Answer the question
In order to leave comments, you need to log in
How to programmatically determine what music is playing?
I am writing a python voice assistant for Windows. It is necessary that when music or a movie is turned on on the computer, the program stops listening to commands for a while.
Question - is it possible to programmatically determine from Python whether sound is currently playing in Windows?
Answer the question
In order to leave comments, you need to log in
1. Create a trigger hook to capture the audio output device by any program (to get the binding: audio device => process => windows
) these audio devices.
3. Create a list of those windows / processes in which you need to block the perception from the microphone and monitor: closed everything from the list or paused - that means turn on the microphone monitoring, otherwise turn it off again.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question