pyc
pycaw
pypi i pycaw
pyc

pycaw

Python Core Audio Windows Library

by Andre Miras

20220416 (see all)
pypi i pycaw
Readme

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.

GitHub Stars

177

LAST COMMIT

1yr ago

MAINTAINERS

1

CONTRIBUTORS

12

OPEN ISSUES

19

OPEN PRs

1
VersionTagPublished
20220416
4mos ago
20210516
4mos ago
20181226
3yrs ago
No alternatives found
No tutorials found
Add a tutorial