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
Metadata
Release files for tts-webui.descript-audiotools 0.7.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tts_webui_descript_audiotools-0.7.5-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for tts_webui_descript_audiotools-0.7.5-py2.py3-none-any.whl |
Release files / tts_webui_descript_audiotools-0.7.5-py2.py3-none-any.whl
| Download URL | tts_webui_descript_audiotools-0.7.5-py2.py3-none-any.whl |
|---|---|
| Size | 108.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
52bf1c60e961d48100aef08eb27e954684381764c8d46fdcf948d7a556b2a268
|
|
BLAKE2b-256 checksum How to use checksums |
22529007a23dba3a2547f9ab7930db636a882f04a6cac67ad99a81d82afb65ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|
Security for tts-webui.descript-audiotools 0.7.5
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.