Created
April 12, 2015 22:13
-
-
Save Fornoth/89996d2311ca60bf4a33 to your computer and use it in GitHub Desktop.
Get alsa volume using pyalsaaudio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import alsaaudio as alsa | |
mixer_name = alsa.mixers()[0] | |
mixer = alsa.Mixer(mixer_name) | |
print mixer.getvolume() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment