A library for audio data augmentation. Inspired by albumentations.
Project description
Audiomentations
A python library for doing audio data augmentation
Setup
pip install audiomentations
Usage example
from audiomentations import Compose, AddGaussianNoise, TimeStretch
import numpy as np
SAMPLE_RATE = 16000
augmenter = Compose([
AddGaussianNoise(min_amplitude=0.001, max_amplitude=0.015, p=0.5),
TimeStretch(min_rate=0.8, max_rate=1.25, p=0.5),
])
samples = np.zeros((20,), dtype=np.float32)
samples = augmenter(samples=samples, sample_rate=SAMPLE_RATE)
Development
Code style
Format the code with black
Run tests
nosetests
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
audiomentations-0.2.0.tar.gz
(2.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file audiomentations-0.2.0.tar.gz.
File metadata
- Download URL: audiomentations-0.2.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b837553ea4ea346f1c87d563ed996e4eecbb0524ee2f668664f9b8f2d6c7c89
|
|
| MD5 |
8afc1754f3996052150db5c5c83e9b4d
|
|
| BLAKE2b-256 |
dea39d14a856e83e5fb383d8d858dc2343fbb7b6c51774c99979b2f6b4c5a711
|
File details
Details for the file audiomentations-0.2.0-py3-none-any.whl.
File metadata
- Download URL: audiomentations-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa5e8e37cdc4345f7030951720ae1a976388c263bbd609000a3ae3cee6b06298
|
|
| MD5 |
84674c3f8e4561f7570901aac209b850
|
|
| BLAKE2b-256 |
1682333af580c87479470e4742bb643c53aee5dbfa3fa8d59bebfd9883ab6961
|