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 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-20230407.tar.gz
(22.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pycaw-20230407-py3-none-any.whl
(24.7 kB
view details)
File details
Details for the file pycaw-20230407.tar.gz.
File metadata
- Download URL: pycaw-20230407.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32b18cfd972fecad2bc97e746107e3c1323e41666f7c70541b2fac5046b33eb8
|
|
| MD5 |
cf24a841d12b95e85095a8457ca6dda1
|
|
| BLAKE2b-256 |
4ccd7bc2ecbb7527fa5eb4ddb1ab3ba15f9796235d51f17c788d3e7c5520689e
|
File details
Details for the file pycaw-20230407-py3-none-any.whl.
File metadata
- Download URL: pycaw-20230407-py3-none-any.whl
- Upload date:
- Size: 24.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97ccceda83d09d00c811b84a766d6b0bca211c284bd8d40475463e0f9aceeea0
|
|
| MD5 |
beeb93297e76cd8357647d88bc84ce27
|
|
| BLAKE2b-256 |
42385621e552ed99a1d4f9d8d49cb48a19a0e3ce09450c52a0e80b82edf205d4
|