pydub
High-level Python library for simple audio editing: slice, concatenate, convert, and apply gain.
| Language | Python |
|---|---|
| Category | Synthesis & DSP |
| License | MIT |
| Platforms | macOS Windows Linux |
| Install | pip install pydub |
| First released | 2011 |
| Maintained | Yes |
| Links | Website · Source |
Strengths
- Very simple, readable API for common edits
- Wide format support via ffmpeg/libav
- Permissive MIT license
Limitations
- Requires external ffmpeg/libav for most formats
- Editing-focused: no analysis or synthesis
Best for
Quick, scripted audio-file editing and format conversion.
Minimal example
from pydub import AudioSegment
sound = AudioSegment.from_file('in.mp3')
louder = sound + 6
louder.export('out.mp3', format='mp3')