I
I
Ivan2017-03-12 12:51:29
Python
Ivan, 2017-03-12 12:51:29

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

2 answer(s)
X
xmoonlight, 2017-03-12
@iwqn

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.

A
Alex K, 2017-03-16
@Cyl

Scrambling on frequency marks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question