Adjust OSX System Audio Volume in Python
Posted
by Benson
on Stack Overflow
See other posts from Stack Overflow
or by Benson
Published on 2010-04-02T05:51:56Z
Indexed on
2010/04/02
5:53 UTC
Read the original article
Hit count: 306
I would like to adjust the system audio volume in OSX from a python script. This question about implementing keyboard shortcuts tells me how to do it in applescript, but I'd really like to do it from my python script without using os.system, popen, etc. Ideally I'd like to ramp up the volume slowly with some python code like this:
set_volume(0)
for i in range(50):
set_volume(i*2)
time.sleep(1)
© Stack Overflow or respective owner