pycaw 2c python audio control lib

Solutions on MaxInterview for pycaw 2c python audio control lib by the best coders in the world

showing results for - "pycaw 2c python audio control lib"
Oskar
06 Jan 2018
1from ctypes import cast, POINTER
2from comtypes import CLSCTX_ALL
3from pycaw.pycaw import AudioUtilities, IAudioEndpointVolume
4devices = AudioUtilities.GetSpeakers()
5interface = devices.Activate(
6    IAudioEndpointVolume._iid_, CLSCTX_ALL, None)
7volume = cast(interface, POINTER(IAudioEndpointVolume))
8volume.GetMute()
9volume.GetMasterVolumeLevel()
10volume.GetVolumeRange()
11volume.SetMasterVolumeLevel(-20.0, None)
similar questions
queries leading to this page
pycaw 2c python audio control lib