[SOLVED] find out which programs play sound python Python – Stack Overflow

Issue

This Content is from Stack Overflow. Question asked by Casperss0

I want to find out which programs are playing sound with a python code, I researched it a lot, even though I tried libraries like winsdk pycaw, I couldn’t get any results



Solution

The simplest way is to use standard winsound module. Please, refer to documentation

If you are now under Windows, there are:

the bell character on the terminal
AppKit to play MacOS system sounds
pygame to play custom sound files
simpleaudio to play custom sound files
the beepy package


This Question was asked in StackOverflow by Casperss0 and Answered by Bohdan It is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?