--- id: pycaw version: "20251023" license: unclear license_treatment: unclear maintenance: active --- # pycaw — Python Core Audio Windows Library License: unclear · Maintenance: active · Downloads: 175.7K/mo ## What it is and what it does Pycaw is a Windows-only Python library that exposes the Windows Core Audio API for programmatic control of audio devices and sessions. It lets you query audio devices, read and set volume levels (in decibels), check mute state, and manage sound device properties directly from Python code. The library wraps low-level COM interfaces through comtypes and relies on psutil for system integration. Typical use cases include building audio control panels, automating volume adjustments in applications, monitoring audio device state, or integrating audio management into larger Windows automation scripts. Because it is Windows-specific and built on COM interfaces, it has no equivalents on macOS or Linux and is not portable across platforms. Use it for: - Automate volume control in Windows desktop applications or scripts without user interaction - Query and monitor the state of audio devices and sessions for diagnostics or logging - Build custom audio control interfaces or dashboards that interact with Windows speakers and microphones - Integrate audio device management into Windows system automation or testing workflows ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Pycaw provides programmatic control of Windows audio devices, sessions, and volume levels through Python bindings to the Windows Core Audio API. Yes, if you are building Windows-only audio control features and need programmatic access to Core Audio APIs. The package is actively maintained, has low install friction, and no known vulnerabilities. The main caveat is the unclear license—verify the repository's license terms before use. Not suitable for cross-platform projects. ## Install pip install pycaw uv add pycaw poetry add pycaw ## Installing pycaw Before you install: Installation is straightforward with low friction; the package depends on comtypes and psutil, both stable and widely available. Maintenance is active with a recent release (295 days ago) and ongoing commits. License in practice: License status is unclear—no SPDX identifier or raw license text is available in the package metadata. Verify the actual license terms in the repository before use in proprietary or restricted projects. Quickstart: pip install pycaw from pycaw.pycaw import AudioUtilities device = AudioUtilities.GetSpeakers() volume = device.EndpointVolume print(f"Volume level: {volume.GetMasterVolumeLevel()} dB") volume.SetMasterVolumeLevel(-20.0, None) Windows-only; requires Visual C++ build tools (e.g., via `choco install visualcpp-build-tools`). Not supported on macOS or Linux. Verify before relying: - Exact Python version support (requires_python is unspecified in metadata) - Whether comtypes and psutil are automatically installed or must be pre-installed - Full scope of audio session and device management beyond volume control ## Package facts - License: not declared (unclear) - Python support: unspecified - Install friction: low - Maintenance: active - Downloads: 175.7K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags windows audio control python, volume control windows, audio device management windows, core audio windows api, speaker mute volume python, audio session control, windows sound device python, windows-only, audio-control, com-wrapper [View on SkillFed](https://skillfed.io/packages/pycaw) · [View on PyPI](https://pypi.org/project/pycaw/)