This release is a pre-release and may not be stable for production use.
AudAugio (pronounced like “adagio”) is a Python library for augmenting audio for machine learning. It includes a built-in set of common augmentations as well as the ability to easily define new ones, as well as a framework for applying and layering those augmentations.
Installation
Install AudAugio with pip:
pip install audaugio
If you want to use one of the built-in augmentations that relies on SoX, you’ll need to install it separately. You can do that at the SoX SourceForge page. Augmentations that rely on SoX note that in their documentation, and are listed here:
Equalizer Augmentation
Low Pass Augmentation
High Pass Augmentation
Use
Below is an example of how to use AudAugio to augment an audio file:
import librosa
import audaugio
y, sr = librosa.load('sample.wav')
chain = audaugio.CombinatoricChain(audaugio.PitchShiftAugmentation(1),
audaugio.BackgroundNoiseAugmentation(.005),
audaugio.EqualizerAugmentation(800, .15, -15))
augmented_audio = chain(y, sr)
for i, a in enumerate(augmented_audio):
librosa.output.write_wav("output/{0}.wav".format(i), a, sr)
For more, read the documentation for AudAugio.
Augmentation Chains
Augmentations are applied through augmentation chains. There are two kinds of chains - combinatoric chains and linear chains. Combinatorically applying the augmentations creates a modified and unmodified version of the signal for each augmentation, which are then each augmented further by the remaining augmentations in the chain. For example, if a single signal is combinatorically augmented with both a pitch shift augmentation and a background noise augmentation, there will be four resulting augmented signals:
The dry signal
The pitch shifted signal
The signal with background noise added
The pitch shifted signal with background noise added
Linear chains do not retain the unmodified signal after processing. If same chain as above was applied, the only signal returned would be the pitch shifted signal with background noise added.
Contact
Contact Brian Margolis (brianmargolis [at] u.northwestern.edu) with any questions or issues. Please look at the “issues” page before reporting problems.
Metadata
Release files for AudAugio 0.0.2a0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| AudAugio-0.0.2a0.tar.gz | 7.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| AudAugio-0.0.2a0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.9 kB
Release files / AudAugio-0.0.2a0.tar.gz
| Download URL | AudAugio-0.0.2a0.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b25cebbbc419b1c5901e63c5b9e6f24790fa577ae17301073a68c5ed48a1807e
|
|
BLAKE2b-256 checksum How to use checksums |
2845cab43b048ce857065d82834325a403d5123279f9039dda18be9f4913bd1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3
|
Release files / AudAugio-0.0.2a0-py3-none-any.whl
| Download URL | AudAugio-0.0.2a0-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0034e0c2c7d90b750021e0016f95187829894d66adc24fb1e2c80976d928805
|
|
BLAKE2b-256 checksum How to use checksums |
4702723f9920d00ed08e192bed8cdcf6cd2b2c8c728d45fc8b137de66ef0f330
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3
|
Security for AudAugio 0.0.2a0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.