Trying to find a way for my script to check if there's any sound/audio being played currently on the computer. And if so, is there any way to find which app is playing sound?
相关问题
- Can we recover audio from MFCC coefficients?
- Is there a way to play audio on a mobile browser w
- Is it possible to know the duration of an MP3 befo
- Playing specific system sound with Qt
- Set audio input level using portaudio
相关文章
- Android Visualizer class throwing runtime exceptio
- how to handle os.system sigkill signal inside pyth
- Simulate Microphone (virtual mic)
- Android Studio Mediaplayer how to fade in and out
- Detect or Approximate Bluetooth Latency on Android
- How to play a specific frequency with Javascript?
- Failed to load because no supported source was fou
- Cross platform audio analysis library
Maybe this helps:
One thing that happens when a sound is played is that the power management blocks the computer to go to sleep. With
pmset -g
you can see all the Power Management stuff that is going on.So, when sleep is prevented by "coreaudiod" the machine is playing obviously some sound.
Here what
pmset -g
spits out when iTunes is playing: