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-20230322.tar.gz
(22.2 kB
view details)
Built Distribution
pycaw-20230322-py3-none-any.whl
(24.6 kB
view details)
File details
Details for the file pycaw-20230322.tar.gz
.
File metadata
- Download URL: pycaw-20230322.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfcfa037456895baeac9fa3205679e68bafe76367c302449844081733e8d8c00 |
|
MD5 | de3018034912cc3bbfc29c59f7fd3e8d |
|
BLAKE2b-256 | 93942ca958dd5e0a26787ed451ac1a69c7a9525bddd9b9ec7e4ee73599bdbf46 |
File details
Details for the file pycaw-20230322-py3-none-any.whl
.
File metadata
- Download URL: pycaw-20230322-py3-none-any.whl
- Upload date:
- Size: 24.6 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 | 4a72dd1419cb40715cca61670e3b8649c7a2eb1fd195767947eda81781775a50 |
|
MD5 | 6d18abc828a2f6d79580d5ecb90b6022 |
|
BLAKE2b-256 | f94c83d55fe6e3bda3c40b4fb13a10da2be5970ecaddccf63bd9588b1d318b68 |