SkillAgentSearch skills...

Pycaw

Python Core Audio Windows Library

Install / Use

/learn @AndreMiras/Pycaw
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Pycaw (Python Core Audio Windows)

Tests Coverage Status PyPI release PyPI version Documentation

Pycaw is a Python library designed exclusively for controlling audio devices on Windows systems. It allows programmatic access to audio sessions, volume control, and sound device management on the Windows platform.

Note: Pycaw does not support macOS or Linux. It is built specifically for Windows using Core Audio APIs. If you're looking for similar functionality on other platforms, you'll need alternative libraries.

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 pycaw.pycaw import AudioUtilities
device = AudioUtilities.GetSpeakers()
volume = device.EndpointVolume
print(f"Audio output: {device.FriendlyName}")
print(f"- Muted: {bool(volume.GetMute())}")
print(f"- Volume level: {volume.GetMasterVolumeLevel()} dB")
print(f"- Volume range: {volume.GetVolumeRange()[0]} dB - {volume.GetVolumeRange()[1]} dB")
volume.SetMasterVolumeLevel(-20.0, None)

See more in the examples directory or visit the documentation.

Tests

See in the tests directory.

Related Skills

View on GitHub
GitHub Stars438
CategoryDevelopment
Updated18d ago
Forks70

Languages

Python

Security Score

95/100

Audited on Mar 13, 2026

No findings