MCPcopy Index your code
hub / github.com/descriptinc/audiotools

github.com/descriptinc/audiotools @0.7.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.7.4 ↗ · + Follow
575 symbols 2,300 edges 58 files 208 documented · 36%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

Core symbols most depended-on inside this repo

deepcopy
called by 67
audiotools/core/audio_signal.py
clone
called by 51
audiotools/core/audio_signal.py
to
called by 40
audiotools/core/audio_signal.py
excerpt
called by 31
audiotools/core/audio_signal.py
batch
called by 30
audiotools/core/audio_signal.py
loudness
called by 29
audiotools/core/loudness.py
integrated_loudness
called by 25
audiotools/core/loudness.py
instantiate
called by 23
audiotools/data/transforms.py

Shape

Method 303
Function 200
Class 72

Languages

Python100%

Modules by API surface

audiotools/data/transforms.py122 symbols
audiotools/core/audio_signal.py63 symbols
tests/core/test_loudness.py24 symbols
tests/data/test_transforms.py23 symbols
tests/core/test_audio_signal.py23 symbols
audiotools/core/effects.py23 symbols
audiotools/ml/decorators.py22 symbols
audiotools/data/datasets.py20 symbols
audiotools/core/util.py19 symbols
audiotools/ml/accelerator.py17 symbols
tests/core/test_effects.py16 symbols
audiotools/preference.py14 symbols

For agents

$ claude mcp add audiotools \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact