0

Volume

I know that this won't work on sololearn or on smartphones,but I'm guessing that it might work on PCs or laptops.So, here's the question: is there a PYTHON code to increase and decrease volume of the PC,or a laptop.

4th Apr 2018, 4:33 PM
Vishwatma
7 ответов
+ 2
What do you mean by volume? Taking what you say literally, you are asking how to use Python to make your laptop bigger. Are you talking about storage, or RAM...? You're question is very confusing.
4th Apr 2018, 4:36 PM
J.G.
J.G. - avatar
+ 2
Oh!!! 😂 That's not what I was thinking of... "increase the volume of my laptop? why does he think he can make his laptop bigger using a code?" Okay, I see what you mean now, sorry.
4th Apr 2018, 4:41 PM
J.G.
J.G. - avatar
+ 2
from subprocess import call call(["amixer", "-D", "pulse", "sset", "Master", "0%"]) works on linux, don't know if it works on MS Windows.
4th Apr 2018, 4:49 PM
Bartosz Pieszko
Bartosz Pieszko - avatar
0
I'm talking about the speakers
4th Apr 2018, 4:37 PM
Vishwatma
0
by volume I mean the sound from the speakers
4th Apr 2018, 4:39 PM
Vishwatma
0
do you have a code for this?
4th Apr 2018, 4:42 PM
Vishwatma
0
thanks
4th Apr 2018, 4:52 PM
Vishwatma