A package with functionality for offline audio processing
Project description
aus
Introduction
This is a Python library for working with audio. It comes in two flavors - a regular Python version called pyaus
, contained in the pyaus
directory, and a Cython version called caus
, contained in the caus
directory.
Building and installation
-
If you are running Windows, you can simply run the command
pip install aus-python
to install a prepackaged version from PyPi. -
If you are not running Windows, or if you want to build and install the package manually, follow these instructions:
-
Before building this package, first decide whether you wish to use the Python version or the Cython version. Copy all of the .py files from
pyaus
orcaus
to theaus
directory. -
You will need to have a Python virtual environment with
build
installed in it. Alternatively, you can simply installbuild
in your local Python installation. You may also need to install the packagesCython
,numpy
, andsetuptools
to build the package. -
Run the command
python -m build
. The package will be located in thedist
directory, in both.whl
and.tar.gz
format. -
To install the package in your local Python installation, simply navigate to the
dist
directory and run the commandpip install filename.whl
(replacefilename
with the actual name of the file in thedist
directory). -
You are now ready to import
aus
into your Python code. Note that the package name isaus-python
, because PyPi would not let me use the nameaus
. However, when importing into your Python code, you use the lineimport aus.audiofile
orimport aus.operations
etc.
-
Documentation
Documentation is available at https://aus.readthedocs.io/en/latest/.
Dependencies
You will need the following Python libraries: matplotlib
, numpy
, pedalboard
, regex
, scipy
. You will also need Cython
if you want to build the Cython version.
Modules
The package is divided into 8 modules:
aus.analysis
Tools for spectral analysis and analysis of audio waveforms. Many of these tools are based on formulas from Florian Eyben's "Real-Time Speech and Music Classification," published by Springer in 2016. Among other things, this module computes spectral centroid, entropy, slope, and flatness.
aus.audiofile
This module is for reading and writing audio files, using either the pedalboard
library or using (slower) code provided here.
aus.granulator
Funtionality for grain extraction
aus.operations
This module has various operations that can be performed on audio, such as spectral frame swapping, equal energy forcing, dc bias removal, and beat envelope generation.
aus.plot
Plotting functionality for audio and spectrum
aus.sampler
Tools for extracting samples from audio
aus.spectrum
Tools for spectral analysis
aus.synthesis
Tools for generating simple waveforms
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aus_python-0.0.31.tar.gz
.
File metadata
- Download URL: aus_python-0.0.31.tar.gz
- Upload date:
- Size: 91.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeac6df662194488e73848ef1886b4cdbfd86c4820525e4c42ee05ec7b7a69f4 |
|
MD5 | d15ac4d470715790208f88a4154d2ff4 |
|
BLAKE2b-256 | 5102d1a633b40dc71f1f7ada9e7a99f8cb107810699d5b2c17566795a60fde65 |
File details
Details for the file aus_python-0.0.31-py3-none-any.whl
.
File metadata
- Download URL: aus_python-0.0.31-py3-none-any.whl
- Upload date:
- Size: 39.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | baf34ebeb765af5a9b8907ca3e0076da0535b639413f2d5161b6775d6c0669c7 |
|
MD5 | 792f5ffa2eb64c670c99984add6899cc |
|
BLAKE2b-256 | b44532f7428ed3e7935be6f5ad0fb02a204fb6acb28eec0a95b926a9b07220f2 |