Skip to main content

Python Core Audio Windows Library

Project description

pycaw

Tests PyPI release PyPI version

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 visualcppbuildtools

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycaw-20220416.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

pycaw-20220416-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

File details

Details for the file pycaw-20220416.tar.gz.

File metadata

  • Download URL: pycaw-20220416.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for pycaw-20220416.tar.gz
Algorithm Hash digest
SHA256 3a606ab0913a9f6197bc2e7cb2f3f21a1d0034fb372dd9cad8bd5085a98742e3
MD5 c8c2f7fa93a5194e3769383a94aa24ca
BLAKE2b-256 2e7e9d170a02052995a95b430570f93681147b3c40a620e3e00aadb921dbd8e7

See more details on using hashes here.

File details

Details for the file pycaw-20220416-py3-none-any.whl.

File metadata

  • Download URL: pycaw-20220416-py3-none-any.whl
  • Upload date:
  • Size: 22.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for pycaw-20220416-py3-none-any.whl
Algorithm Hash digest
SHA256 dd7a60fdb32c94f13baa063c8009b76df7ca5ccc91b53c7ebd76c4c642a7453d
MD5 c806654ba2dcae32b03bb089bdcab4bb
BLAKE2b-256 e0ea42b844c6da36bafcbab9c4ec7486ee6c7ae25f22ae4bec8883fb0c1444a3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page