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
Release files for descript-audiotools 0.7.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| descript-audiotools-0.7.2.tar.gz | 99.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| descript_audiotools-0.7.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 206.1 kB
Release files / descript-audiotools-0.7.2.tar.gz
| Download URL | descript-audiotools-0.7.2.tar.gz |
|---|---|
| Size | 99.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2cdd363025c771b8acc53d5ef9ec77e34f92e182272c4be7fd0118a99b6a5e2a
|
|
BLAKE2b-256 checksum How to use checksums |
8ce78c4d16e8ff5785103877a7782a41585b23ea3a457681cca20fe1d79f0810
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Release files / descript_audiotools-0.7.2-py2.py3-none-any.whl
| Download URL | descript_audiotools-0.7.2-py2.py3-none-any.whl |
|---|---|
| Size | 106.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
bb7a4e837f92395e43894d99a89406485325b88c6f158caf59e18876cf5b06ea
|
|
BLAKE2b-256 checksum How to use checksums |
68b872a58cb3b241d869811be4f9328a37f1563dc9c48af8c0467cb681f9ed46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|