Skip to content

Instantly share code, notes, and snippets.

@Fornoth
Created April 12, 2015 22:13
Show Gist options
  • Save Fornoth/89996d2311ca60bf4a33 to your computer and use it in GitHub Desktop.
Save Fornoth/89996d2311ca60bf4a33 to your computer and use it in GitHub Desktop.
Get alsa volume using pyalsaaudio
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