Skip to main content

Using the pyaudio and zignal libraries to play audio on a soundcard

Project description

zoundcard

This library is using the pyaudio and zignal libraries to play audio on a soundcard. This code was previously a part of the zignal library but split out into its own.

Pre-requisites

This library relies on pyaudio, which depends on the python development headers and the portaudio development files. On debian/ubuntu,

sudo apt install python3-dev portaudio19-dev

Installation

It is recommended to create a virtual environment and let pip install the dependencies automatically.

python3 -m venv <name-of-virtualenv>
. <name-of-virtualenv>/bin/activate
pip install zoundcard

Local development

Create a python3 virtualenv and install from the local source code to make the library editable.

python3 -m venv venv_dev
. venv_dev/bin/activate
pip install --editable .[dev]

Style checks

Validate the imports

isort src/**/*.py --check-only

Show suggested edits

isort src/**/*.py --diff

Style guide enforcement using flake8

flake8 --extend-ignore=E265 --statistics src/

Unit tests

python -m unittest -v src/tests/test_*.py

Build a release

python3 -m venv venv_build
. ./venv_build/bin/activate
pip install --upgrade pip build twine
python3 -m build

Upload packages

Upload to pypi.org using twine

twine upload dist/*

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

zoundcard-0.1.0.tar.gz (9.3 kB view hashes)

Uploaded Source

Built Distribution

zoundcard-0.1.0-py3-none-any.whl (8.3 kB view hashes)

Uploaded Python 3

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