Search code examples
pythonlinuxaudiovolume

Get system volume (Sound level) in linux using Python


I am using Fedora 16 and modifying a program in python 2.7.

How do I get the systems volume (Sound level)?


Solution

  • For ALSA, use pyalsaaudio

    For Pulse, its a bit raw. There are ctype bindings