Python wrapper around the Rubber Band Library for audio pitch shifting and time stretching. Current version 0.4.0, works on Python >=3.7. Releases are infrequent.
pip install pyrubberbandNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: loading audio with librosa, then pitch shifting and time stretching.
Install system-level rubberband: on Debian/Ubuntu: sudo apt install rubberband-cli; on macOS: brew install rubberband; on Windows, download precompiled DLL or use conda-forge: conda install -c conda-forge rubberband.
Use named parameter 'sr' instead of 'samplerate'.
Ensure audio data is converted to float: audio = audio.astype(np.float32)
pip install pyrubberband
Install rubberband system-wide (e.g., apt install rubberband-cli) or use conda environment with conda install -c conda-forge rubberband.
Use 'sr' instead of 'samplerate' in function calls.