Pedalboard: Spotify's Python Library for Audio Effects and Machine Learning
This repository profile is provided by osrepos.com, an open source repository discovery platform.
Summary
Pedalboard is a robust Python library developed by Spotify's Audio Intelligence Lab, designed for comprehensive audio processing tasks. It facilitates reading, writing, rendering, and applying a wide array of audio effects, including support for VST3® and Audio Unit plugins. Internally, Spotify leverages Pedalboard for data augmentation to enhance machine learning models and power innovative features like AI DJ, making advanced audio manipulation accessible within Python and TensorFlow environments.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
Pedalboard is a powerful Python library developed by Spotify's Audio Intelligence Lab, designed for comprehensive audio processing. It enables developers and researchers to read, write, render, and add a wide range of effects to audio. The library supports most popular audio file formats out of the box and, crucially, allows the integration of VST3® and Audio Unit formats for loading third-party software instruments and effects.
Internally at Spotify, Pedalboard is a cornerstone for data augmentation, significantly improving machine learning models. It also helps power innovative features such as Spotify's AI DJ and AI Voice Translation. Beyond its ML applications, Pedalboard streamlines content creation by making it possible to apply studio-quality effects to audio without the need for a traditional Digital Audio Workstation.
Installation
Getting started with Pedalboard is straightforward. The library is available via PyPI:
pip install pedalboard
For those new to Python, a comprehensive installation guide is available in the INSTALLATION.md file within the GitHub repository.
Pedalboard is thoroughly tested and compatible with Python 3.10, 3.11, 3.12, 3.13, and 3.14 across multiple platforms, including Linux (x86_64, aarch64), macOS (Intel and Apple Silicon), and Windows (amd64).
Examples
Pedalboard offers intuitive APIs for common audio tasks. Here's a quick start example demonstrating how to apply a chorus and reverb effect to an audio file:
from pedalboard import Pedalboard, Chorus, Reverb
from pedalboard.io import AudioFile
# Make a Pedalboard object, containing multiple audio plugins:
board = Pedalboard([Chorus(), Reverb(room_size=0.25)])
# Open an audio file for reading, just like a regular file:
with AudioFile('some-file.wav') as f:
# Open an audio file to write to:
with AudioFile('output.wav', 'w', f.samplerate, f.num_channels) as o:
# Read one second of audio at a time, until the file is empty:
while f.tell() < f.frames:
chunk = f.read(f.samplerate)
# Run the audio through our pedalboard:
effected = board(chunk, f.samplerate, reset=False)
# Write the output to our output file:
o.write(effected)
For more detailed examples, including making guitar-style pedalboards, using VST3®/Audio Unit plugins, creating parallel effects chains, running on live audio, and integrating with TensorFlow tf.data pipelines, refer to:
- The "examples" folder of the repository
- The "Pedalboard Demo" Colab notebook
- The YouTube video, "Working with Audio in Python (feat. Pedalboard)" by Peter Sobot
- An interactive web demo on Hugging Face Spaces and Gradio
Why Use Pedalboard?
Pedalboard stands out as a premier choice for audio processing in Python due to several key advantages:
- Comprehensive Audio I/O: It provides robust utilities for reading and writing various audio formats (AIFF, FLAC, MP3, OGG, WAV, AAC, AC3, WMA) with no external dependencies for core formats. It also supports on-the-fly resampling and live audio streaming.
- Rich Set of Built-in Effects: The library includes a diverse collection of audio transformations, from guitar-style effects like Chorus and Distortion to loudness control (Compressor, Limiter), equalizers (HighpassFilter, LowpassFilter), spatial effects (Delay, Reverb), and pitch manipulation.
- VST3® and Audio Unit Support: A significant feature is its ability to load and utilize third-party VST3® and Audio Unit instrument and effect plugins, greatly expanding its capabilities.
- High Performance: Engineered for efficiency, Pedalboard boasts strong thread-safety and optimized memory usage. It releases Python's Global Interpreter Lock (GIL), allowing for multi-core CPU utilization without
multiprocessing. It processes audio significantly faster than alternatives like pySoX and librosa.load. - Machine Learning Integration: With tested compatibility for TensorFlow, Pedalboard can be seamlessly integrated into
tf.datapipelines, making it an ideal tool for audio-centric machine learning projects.
Links
- GitHub Repository: https://github.com/spotify/pedalboard
- Official Documentation: https://spotify.github.io/pedalboard
- PyPI Package: https://pypi.org/project/pedalboard
- YouTube Video: "Working with Audio in Python (feat. Pedalboard)"
- Citing Pedalboard (Zenodo): https://doi.org/10.5281/zenodo.7817838
Related repositories
Similar repositories that may be relevant next.
OpenSandbox: A Secure and Extensible Sandbox Runtime for AI Agents
August 12, 2026
OpenSandbox is a powerful, general-purpose sandbox platform designed for AI applications. It provides secure, fast, and extensible runtime environments, supporting multi-language SDKs and Docker/Kubernetes deployments. This project is ideal for developing and evaluating AI agents in isolated, controlled settings.

FastMCP: The Pythonic Framework for Model Context Protocol Applications
August 11, 2026
FastMCP is a robust, Pythonic framework developed by PrefectHQ, designed to simplify the creation of Model Context Protocol (MCP) servers and clients. It provides a comprehensive application framework for connecting Large Language Models (LLMs) to tools and data, handling complexities like schema generation, validation, and protocol lifecycle. As the standard framework for MCP, FastMCP empowers developers to build powerful LLM-integrated applications efficiently.

nanobot: An Ultra-Lightweight, Self-Hosted Personal AI Agent Framework
August 9, 2026
nanobot is an ultra-lightweight, open-source, self-hosted personal AI agent framework built in Python. It offers a WebUI, tools, memory, multi-agent workflows, and automation capabilities, making it a versatile solution for personal AI tasks. Users can deploy it across various platforms, including chat apps, for seamless integration.

ReMe: An Advanced Memory Management Kit for AI Agents
August 7, 2026
ReMe is an innovative, local-first memory layer designed for AI agents, transforming conversations and resources into file-based long-term memory. It continuously indexes, links, and consolidates this information, enabling advanced recall and supporting the development of self-evolving agents. This kit helps agents remember and refine their experiences effectively.
Source repository
Open the original repository on GitHub.
16 counted GitHub visits