I wanted to write an alarm program, for waking up in mornings. I want it to play sound as loud as possible, so it needs to raise up volume to 100%. I also asked how to change volume with python?. @macmoonshine suggest me to use 'AppleScript'. it was good and worked for me, but it works only on python2(error on python3) and(not sure) only works for apple. how can I write a program that can control volume in python3 without using AppleScript? I'd appreciate your help(;
Asked
Active
Viewed 410 times
0
-
1Possible duplicate of [how to change volume with python?](https://stackoverflow.com/questions/45772011/how-to-change-volume-with-python) – Unatiel Aug 20 '17 at 12:08
-
Check macmoonshine's edited answer to your first question. – Unatiel Aug 20 '17 at 12:08
-
I did!^_^. it works! – Aug 20 '17 at 13:51
1 Answers
1
Just make a python2 file with the required code and os.startfile('Path to ur file')
or os.system('python2 path-to-file')
from your python2 code, its simple as that.

prp
- 914
- 1
- 9
- 24

Muneeb Ahmad Khurram
- 582
- 7
- 20