A Python library for audio.
pedalboard is a Python library for working with audio: reading, writing, rendering, adding effects, and more. It supports most popular audio file formats and a number of common audio effects out of the box, and also allows the use of VST3® and Audio Unit formats for loading third-party software instruments and effects.
pedalboard was built by Spotify's Audio Intelligence Lab to enable using studio-quality audio effects from within Python and TensorFlow. Internally at Spotify, pedalboard is used for data augmentation to improve machine learning models and to help power features like Spotify's AI DJ and AI Voice Translation. pedalboard also helps in the process of content creation, making it possible to add effects to audio without using a Digital Audio Workstation.
O(1) memory usageAudioStreamChorus, Distortion, Phaser, ClippingCompressor, Gain, LimiterHighpassFilter, LadderFilter, LowpassFilterConvolution, Delay, ReverbPitchShiftGSMFullRateCompressor, MP3CompressorResample, Bitcrushpedalboard.load_plugin)multiprocessing!tf.data pipelines!pedalboard is available via PyPI (via Platform Wheels):
pip install pedalboardIf you are new to Python, follow INSTALLATION.md for a robust guide.
pedalboard is thoroughly tested with Python 3.10, 3.11, 3.12, 3.13, 3.14, and 3.15.
manylinux and musllinux wheels built for x86_64 (Intel/AMD) and aarch64 (ARM/Apple Silicon)amd64 (x86-64, Intel/AMD)Note: If you'd rather watch a video instead of reading examples or documentation, watch Working with Audio in Python (feat. Pedalboard) on YouTube.
…Note: For more information about how to process audio through Pedalboard plugins, including how the
resetparameter works, see the documentation forpedalboard.Plugin.process.
……This example creates a delayed pitch-shift effect by running
multiple Pedalboards in parallel on the same audio. Pedalboard
objects are themselves Plugin objects, so you can nest them
as much as you like:
…pedalboard supports streaming live audio through
an AudioStream object,
allowing for real-time manipulation of audio by adding effects in Python.
…tf.data Pipelines…For more examples, see:
Contributions to pedalboard are welcomed! See CONTRIBUTING.md for details.
To cite pedalboard in academic work, use its entry on Zenodo:
To cite via BibTeX:
@software{sobot_peter_2023_7817838,
author = {Sobot, Peter},
title = {Pedalboard},
month = jul,
year = 2021,
publisher = {Zenodo},
doi = {10.5281/zenodo.7817838},
url = {https://doi.org/10.5281/zenodo.7817838}
}pedalboard is Copyright 2021-2026 Spotify AB.
pedalboard is licensed under the GNU General Public License v3. pedalboard includes a number of libraries that are statically compiled, and which carry the following licenses:
PitchShift plugin and time_stretch functions use the Rubber Band Library, which is dual-licensed under a commercial license and the GPLv2 (or newer). FFTW is also included to speed up Rubber Band, and is licensed under the GPLv2 (or newer).MP3Compressor plugin uses libmp3lame from the LAME project, which is licensed under the LGPLv2 and upgraded to the GPLv3 for inclusion in this project (as permitted by the LGPLv2).GSMFullRateCompressor plugin uses libgsm, which is licensed under the ISC license and compatible with the GPLv3.VST is a registered trademark of Steinberg Media Technologies GmbH.
No open issues yet, or sync has not completed.