使用Python在Linux中获取系统音量(声音级别) [英] Get system volume (Sound level) in linux using Python

查看:649
本文介绍了使用Python在Linux中获取系统音量(声音级别)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Fedora 16并在python 2.7中修改程序.

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

如何获得系统音量(声音级别)?

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

推荐答案

对于ALSA,请使用 pyalsaaudio

For ALSA, use pyalsaaudio

对于Pulse,它有点原始.有 ctype绑定

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

这篇关于使用Python在Linux中获取系统音量(声音级别)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆