leroylee13
Posts: 2
Joined: Tue May 01, 2018 5:34 am

detect in Python volume of sound being played on pi 3b+

Tue May 01, 2018 6:08 am

I would like to be able to detect the volume of sound being played on pi 3b+ and use the value in Python to control external switch. I've read that PulseAudio or even ALSA can return volume, but I have no clue how to set it up or to obtain the value.
My goal is to control open a skeleton jaw when volume reaches a certain level, and close when volume is near 0.
Any help would be appreciated.


Return to “Graphics, sound and multimedia”

Who is online

Users browsing this forum: No registered users and 3 guests