Skip to main content

Control audio using ALSA API easily

Project description

alsa-ctl

PyPI

Control audio using ALSA API easily.

Dependencies

alsa-ctl depends on the following programs in your PATH:

  • amixer

Installation

From pypi (recommended):

pip install alsa-ctl

From git repo (for dev version)

pip install git+https://github.com/DCsunset/alsa-ctl

Or clone and install locally (for dev):

git clone https://github.com/DCsunset/alsa-ctl
cd alsa-ctl
pip install .

Usage

CLI

Use the command alsa-ctl directly:

alsa-ctl --help
alsa-ctl get_card
alsa-ctl get_volume

See help messages for more usage.

Library

from alsa_ctl.lib import list_cards
print(list_cards())

LICENSE

AGPL-3.0. Copyright notice:

alsa-ctl
Copyright (C) 2022-2023 DCsunset

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

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

alsa-ctl-0.1.1.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

alsa_ctl-0.1.1-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file alsa-ctl-0.1.1.tar.gz.

File metadata

  • Download URL: alsa-ctl-0.1.1.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for alsa-ctl-0.1.1.tar.gz
Algorithm Hash digest
SHA256 42b102db314849bc822392b720ac0acb8ad41f7cd46732d96ac3bd6b2c537ede
MD5 b0653fb1746f0e32bead4ca6efa5f869
BLAKE2b-256 cd7816b4691c1873a08ab49061d38764893a0c2e3997c861ef054062c926e8af

See more details on using hashes here.

File details

Details for the file alsa_ctl-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: alsa_ctl-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for alsa_ctl-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8eaa6be556fded016c32617b9720a2eda414f19d38ba6abbc796948e9a5921a8
MD5 47d458029c35f23c9efcccc9ae150f8e
BLAKE2b-256 289410b1af84d52762101c8208b5771f20c8c29d3b54539496850bae8c5943d6

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