Audiotools
Object-oriented handling of audio data, with GPU-powered augmentations, and more.
Install / Use
/learn @descriptinc/AudiotoolsREADME
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
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
342.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
