Python Core Audio Windows Library
Project description
pycaw
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pycaw-20210516.tar.gz
(14.2 kB
view details)
File details
Details for the file pycaw-20210516.tar.gz
.
File metadata
- Download URL: pycaw-20210516.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1cc463c011e44849c6969817a28bb9e3e7117cafaf81625840664d757bccc52 |
|
MD5 | e744d6f7b5e0649b0076a50ca941713d |
|
BLAKE2b-256 | 5c2aa710c0f9cc0e5822a5def4f20f29bc28f6deedd6d60bae5c2362e565f8f0 |