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 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.
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-20240210.tar.gz
(22.4 kB
view details)
Built Distribution
pycaw-20240210-py3-none-any.whl
(24.8 kB
view details)
File details
Details for the file pycaw-20240210.tar.gz
.
File metadata
- Download URL: pycaw-20240210.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55e49359e9f227053f4fa15817a02d4a7bc52fc3db32e123894719a123c41d06 |
|
MD5 | 8c774dd5c2ad5e94d3c1e26610c932b1 |
|
BLAKE2b-256 | 3b1af1fa3ceca06eceb5184b907413306b99dd790855ffdf2aee8210fa0fc192 |
File details
Details for the file pycaw-20240210-py3-none-any.whl
.
File metadata
- Download URL: pycaw-20240210-py3-none-any.whl
- Upload date:
- Size: 24.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbbe0ee67a7d32714240e26913266a386ae4375778c417a7e8ad6076eca62f1e |
|
MD5 | ef666c64a771bff24c3f46b70192a67d |
|
BLAKE2b-256 | c2e289e3e096d8926f19cbcf2991ae86d19e6705ea75ad0212862461cb4b83d8 |