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.
Metadata
Release files for pycaw 20230407
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pycaw-20230407.tar.gz | 22.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycaw-20230407-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 46.9 kB
Release files / pycaw-20230407.tar.gz
| Download URL | pycaw-20230407.tar.gz |
|---|---|
| Size | 22.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32b18cfd972fecad2bc97e746107e3c1323e41666f7c70541b2fac5046b33eb8
|
|
BLAKE2b-256 checksum How to use checksums |
4ccd7bc2ecbb7527fa5eb4ddb1ab3ba15f9796235d51f17c788d3e7c5520689e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / pycaw-20230407-py3-none-any.whl
| Download URL | pycaw-20230407-py3-none-any.whl |
|---|---|
| Size | 24.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97ccceda83d09d00c811b84a766d6b0bca211c284bd8d40475463e0f9aceeea0
|
|
BLAKE2b-256 checksum How to use checksums |
42385621e552ed99a1d4f9d8d49cb48a19a0e3ce09450c52a0e80b82edf205d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|