Skip to main content

pycaw

Tests Coverage Status PyPI release PyPI version

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

Install

Latest stable release:

pip install pycaw

Development branch:

pip install https://github.com/AndreMiras/pycaw/archive/develop.zip

System requirements:

choco install visualcpp-build-tools

Usage

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.GetMute()
volume.GetMasterVolumeLevel()
volume.GetVolumeRange()
volume.SetMasterVolumeLevel(-20.0, None)

See more in the examples directory.

Tests

See in the tests directory.

Metadata

Release files for pycaw 20240210

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycaw 20240210
File Size Uploaded
pycaw-20240210.tar.gz 22.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pycaw 20240210
File Interpreter ABI Platform
pycaw-20240210-py3-none-any.whl Python 3 none any Details

Total release size: 47.2 kB

Release files / pycaw-20240210.tar.gz

Download URL pycaw-20240210.tar.gz
Size 22.4 kB
Tags Source
SHA-256 checksum
How to use checksums
55e49359e9f227053f4fa15817a02d4a7bc52fc3db32e123894719a123c41d06
BLAKE2b-256 checksum
How to use checksums
3b1af1fa3ceca06eceb5184b907413306b99dd790855ffdf2aee8210fa0fc192
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.13

Release files / pycaw-20240210-py3-none-any.whl

Download URL pycaw-20240210-py3-none-any.whl
Size 24.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fbbe0ee67a7d32714240e26913266a386ae4375778c417a7e8ad6076eca62f1e
BLAKE2b-256 checksum
How to use checksums
c2e289e3e096d8926f19cbcf2991ae86d19e6705ea75ad0212862461cb4b83d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.13

Release history Release notifications | RSS feed

This release

20240210 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page