Utilities for handling audio.
Project description
AudioTools
Object-oriented handling of audio signals, with fast augmentation routines, batching, padding, and more.
Installation
pip install git+https://github.com/descriptinc/audiotools
OR
git clone https://github.com/descriptinc/audiotools
cd audiotools
pip install .
Documentation
For documentation, see the docs.
Deploying documentation
To build the documentation, do:
cd docs/
make html
open _build/html/index.html
Once you're satisfied with your docs, push them to the gh-pages branch via
cd docs
bash publish_docs.sh
Quickstart
import audiotools
from audiotools import AudioSignal
signal = AudioSignal("tests/audio/spk/f10_script4_produced.wav", offset=5, duration=5)
signal.play() # Play back the signal in your terminal using ffplay
signal.low_pass(8000) # Low-pass the signal
signal.play() # Play back the low-passed version of the signal
For more, see the documentation.
Install hooks
First install the pre-commit util:
https://pre-commit.com/#install
pip install pre-commit # with pip
brew install pre-commit # on Mac
Then install the git hooks
pre-commit install
# check .pre-commit-config.yaml for details of hooks
Upon git commit
, the pre-commit hooks will be run automatically on the stage files (i.e. added by git add
)
N.B. By default, pre-commit checks only run on staged files
If you need to run it on all files:
pre-commit run --all-files
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
descript-audiotools-0.7.1.tar.gz
(99.3 kB
view hashes)
Built Distribution
Close
Hashes for descript-audiotools-0.7.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd80b41b1ea183ddfe9d28355438294d654c413d2421110d1f0cb4deaa6677d1 |
|
MD5 | c757121372a00475262bdb8f597a98d1 |
|
BLAKE2b-256 | a9ffaeb54583d96df88db29086a82f630e30536e4e9145f61657f127c59d0101 |
Close
Hashes for descript_audiotools-0.7.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0507f24dd54dc3e3c2a37c200f567d314049fd2c62fea66e146c9cd6d2a244f3 |
|
MD5 | ec2647d347bbe9335e4fa4aacb0fa89b |
|
BLAKE2b-256 | 69bba0f7436a58c192ea5bbfc27e97454b009a788756f8451b5720000a92358d |