Packages
Pydub provides a high-level Python interface for loading, manipulating, and exporting audio files with simple operations like slicing, concatenation, and format conversion.
However, the abandoned status since 2021-03-10 means no future fixes or compatibility updates—use it only if you can tolerate potential issues with newer Python…
librosa provides audio and music signal processing algorithms and tools for building music information retrieval systems in Python.
Install it if you need to work with audio features, music analysis, or MIR tasks.
Performs high-quality sample-rate conversion (resampling) for audio signals, supporting both one-shot and streaming modes via a Python wrapper around libsoxr.
MoviePy is a Python library for video editing that reads, processes, and writes video and audio files by converting them to numpy arrays for frame-level manipulation and effect application.
Reads metadata (artist, title, duration, bitrate, and more) from audio files in formats including MP3, MP4, FLAC, OGG, WAV, and others, without writing or modifying tags.
Install it if you need to extract metadata from audio files without the overhead of a heavier library.
Kaldiio reads and writes Kaldi archive (ark) and script (scp) files in pure Python, handling matrices, vectors, and audio data with support for binary, text, and compressed formats.
However, verify the license status before use in proprietary contexts, and note that maintenance is aging—critical bug fixes may be slow.
mir_eval computes standard accuracy metrics for music and audio information retrieval tasks, enabling transparent evaluation of audio processing algorithms.
Install it if you are evaluating audio or music processing algorithms and need reproducible metric computation.
aubio is a Python wrapper around a C library for music and audio analysis, providing tools to detect onsets, track pitch, identify beats, and extract spectral features from audio files and streams.
Provides Python wrappers for time-stretching and pitch-shifting audio via the Rubberband command-line tool, processing audio files on disk.
Shifts the pitch and timbre of audio signals using Short-Time Fourier Transform (STFT) analysis, with optional formant preservation to avoid the Mickey Mouse effect.