Skip to main content

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 descript-audiotools-unofficial 0.7.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for descript-audiotools-unofficial 0.7.4
File Size Uploaded
descript_audiotools_unofficial-0.7.4.tar.gz 100.7 kB Details

Release files / descript_audiotools_unofficial-0.7.4.tar.gz

Download URL descript_audiotools_unofficial-0.7.4.tar.gz
Size 100.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5d5e1f6a0bf44b593ba6a67b25981d2c0bf6ab3eff4d6495b169e227b8e2b666
BLAKE2b-256 checksum
How to use checksums
5d897156222d62c218561217803041b9a727dfb1729739b5c12940e63c403d3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.16

Release history Release notifications | RSS feed

This release

0.7.4 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page