Skip to main content

pycaw

Tests 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 visualcppbuildtools

Usage

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)

See more in the examples directory.

Tests

See in the tests directory.

Metadata

Release files for pycaw 20220416

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 20220416
File Size Uploaded
pycaw-20220416.tar.gz 18.6 kB Details

Built distribution (wheel)

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

Total release size: 41.1 kB

Release files / pycaw-20220416.tar.gz

Download URL pycaw-20220416.tar.gz
Size 18.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3a606ab0913a9f6197bc2e7cb2f3f21a1d0034fb372dd9cad8bd5085a98742e3
BLAKE2b-256 checksum
How to use checksums
2e7e9d170a02052995a95b430570f93681147b3c40a620e3e00aadb921dbd8e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

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

Download URL pycaw-20220416-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd7a60fdb32c94f13baa063c8009b76df7ca5ccc91b53c7ebd76c4c642a7453d
BLAKE2b-256 checksum
How to use checksums
e0ea42b844c6da36bafcbab9c4ec7486ee6c7ae25f22ae4bec8883fb0c1444a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release history Release notifications | RSS feed

This release

20220416 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