Skip to main content

Python Core Audio Windows Library

Project description


Tests Coverage Status PyPI release PyPI version

Python Core Audio Windows Library, working for both Python2 and Python3.


Latest stable release:

pip install pycaw

Development branch:

pip install

System requirements:

choco install visualcpp-build-tools


from comtypes import CLSCTX_ALL
from pycaw.pycaw import AudioUtilities, IAudioEndpointVolume
devices = AudioUtilities.GetSpeakers()
interface = devices.Activate(
    IAudioEndpointVolume._iid_, CLSCTX_ALL, None)
volume = interface.QueryInterface(IAudioEndpointVolume)
volume.SetMasterVolumeLevel(-20.0, None)

See more in the examples directory.


See in the tests directory.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycaw-20240210.tar.gz (22.4 kB view hashes)

Uploaded Source

Built Distribution

pycaw-20240210-py3-none-any.whl (24.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page