[英]How can I mute right/left speaker in ubuntu with python code?
I use os.system('amixer sset Master 0,-')
to disable right speaker but when I change it to os.system('amixer sset Master -,0')
it says that I'm using invalid option.我使用
os.system('amixer sset Master 0,-')
禁用右扬声器,但是当我将其更改为os.system('amixer sset Master -,0')
它说我正在使用无效选项。 Does anybody know what is the problem?有谁知道是什么问题? and if this code doesn't work could you suggest any codes to disable left/right speaker??
如果此代码不起作用,您能否建议任何禁用左/右扬声器的代码?
os.system("amixer -D pulse sset Master 50%,0%")
最后,上面的代码对我有用:) 更改主百分比以减少/增加每一侧的音量。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.