def set_output_volume(volume):
 cmd = 'osascript -e "set volume output volume {0}"'.format(volume)
 call = __salt__['cmd.run_all'](cmd, output_loglevel='debug', python_shell=False)
 _check_cmd(call)
 return get_output_volume()

def set_output_volume ( volume ) : cmd = 'osascript -e "set volume output volume {0}"' . format ( volume ) call = __salt__ [ 'cmd.run_all' ] ( cmd , output_loglevel = 'debug' , python_shell = False ) _check_cmd ( call ) return get_output_volume ( )
set the volume of sound .