Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pycaw , Python Audio Control Lib

from ctypes import cast, POINTER
from comtypes import CLSCTX_ALL
from pycaw.pycaw import AudioUtilities, IAudioEndpointVolume
devices = AudioUtilities.GetSpeakers()
interface = devices.Activate(
    IAudioEndpointVolume._iid_, CLSCTX_ALL, None)
volume = cast(interface, POINTER(IAudioEndpointVolume))
volume.GetMute()
volume.GetMasterVolumeLevel()
volume.GetVolumeRange()
volume.SetMasterVolumeLevel(-20.0, None)
Comment

PREVIOUS NEXT
Code Example
Python :: pandas terms for list of substring present in another list python 
Python :: python tabulate print only one row 
Python :: finding the min an max values of grayscale image or frame 
Python :: callbacks to function pysimplegui 
Python :: sphix dont see .py file 
Python :: scattter_matrix pandas 
Python :: python -m pip install --upgrade pip /usr/bin/python: No module named pip 
Python :: for loop pattern in python stack overflow 
Python :: online convert http query to json python 
Python :: styling filter form django 
Python :: python declare immutable variable 
Python :: wait_for_message definition 
Python :: java to python conversion 
Python :: HTTP Error 403: Forbidden django account signup email 
Python :: how to remove explicit string concatenation 
Python :: function of this cod in django in django performance = serializers.SerializerMethodField() # def get_performance(self, instance): # return PerformanceSerializer(instance.performance).data 
Python :: Python Split list into chunks using itertools Method 
Python :: List Change Sublist 
Python :: Tabpy Configuration file with custom settings 
Python :: how to make py file open in current directory 
Python :: programação orientada a objetos python - Pessoa 
Python :: how to loop over all dates in python 
Python :: running code once in a while loop python 
Python :: gwt height with tkinker 
Python :: countvectorizer minimum frequency 
Python :: drop values in column with single frequency 
Python :: how to make a square shape in python 
Python :: generate 3 pages pdf reportlab 
Python :: ignore transformers warning 
Python :: dataframe passed by reference or value 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =