Pydub (Pozalabs Fork)
Note: This is a fork tailored for Pozalabs internal use. The API may differ significantly from upstream.
Pydub lets you do stuff to audio in a way that isn't stupid.
This is a Pozalabs fork of jiaaro/pydub, published as pozalabs-pydub on PyPI.
Changes from Upstream
Requirements
- Python 3.11+ (upstream supports Python 2.7+)
- All legacy Python 2 compatibility code has been removed
Performance (Rust/PyO3 Extensions)
overlay_segments- Pre-allocated buffer overlay replacing audioop.add/mul (16-bit 4-5x, 32-bit 11-16x faster)extend_24bit_to_32bit- Zero-copy 24-bit to 32-bit sample extension via direct PyBytes allocation (~400x faster than pure Python)fade_segment- Single-pass fade replacing per-sample audioop.mul loop (used by fade/fade_in/fade_out). Upstream applies gain per millisecond (>100ms) or per sample (<=100ms); this implementation always applies gain per sample for consistent precisionmix_segments- N-segment single-pass mix in Rust (~2.9x faster than sequential overlay chaining with 19 segments)
New Features
- Compressed audio I/O -
from_file()auto-detects and decompresses gzip/zstd files;export()accepts an optionalcompressorparameter - Audio level metering -
measure_audio_level()for RMS, peak, and LUFS measurement - Waveform data -
get_normalized_amplitudes()computes normalized amplitude values for waveform visualization - Silent audio generation - Create silent audio matching the original segment's parameters
- Multi-segment mix -
AudioSegment.mix(*segs)classmethod for mixing N segments simultaneously - Audio processing framework - Command-based processor architecture for merge, overlay, and format conversion
- Python 3.13 support - Via
audioop-ltsdependency
Removed
from_file_using_temporary_files- Redundant legacy method replaced byfrom_file(pipe I/O, codec inference, compression support)AudioSegment.ffmpeg- Legacy class property alias forAudioSegment.convertereffects/scipy_effectsmodules - All dynamically registered effects (normalize,speedup,compress_dynamic_range,invert_phase,low_pass_filter,high_pass_filter,pan,apply_gain_stereo,strip_silence,eq, etc.) and theregister_pydub_effectdecorator
Type Safety
- Comprehensive type hints using
Self,Literal,TypedDict,Unpack _AudioParamsdataclass with validation for initialization parameters
Build System
pyproject.tomlwith maturin backend, managed by uv- Rust(PyO3) native extension compiled via maturin
- Wheel distribution via GitHub Actions
Dependencies
backports.zstd(>=1.3.0) - Zstandard compression (Python <3.14, stdlibcompression.zstdon 3.14+)
For general usage, API documentation, and ffmpeg setup, see the upstream README.
License
MIT License - Copyright 2011 James Robert
Metadata
Release files for pozalabs-pydub 0.43.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pozalabs_pydub-0.43.0.tar.gz | 27.4 MB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| pozalabs_pydub-0.43.0-cp311-abi3-win_amd64.whl | CPython 3.11 | abi3 | Windows x86-64 | Details |
| pozalabs_pydub-0.43.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.11 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| pozalabs_pydub-0.43.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.11 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| pozalabs_pydub-0.43.0-cp311-abi3-macosx_11_0_arm64.whl | CPython 3.11 | abi3 | macOS 11.0+ ARM64 | Details |
| pozalabs_pydub-0.43.0-cp311-abi3-macosx_10_12_x86_64.whl | CPython 3.11 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 29.0 MB
Release files / pozalabs_pydub-0.43.0.tar.gz
| Download URL | pozalabs_pydub-0.43.0.tar.gz |
|---|---|
| Size | 27.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80fd265fe86d21db83db441b06248ffdd0e572eae6994d2091c765ef45800b42
|
|
BLAKE2b-256 checksum How to use checksums |
faa15bdf38459114f0b407e68d52fa36c1e2b3feb3b0069c186962871d3e7b98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 27, 2026.
Transparency logRelease files / pozalabs_pydub-0.43.0-cp311-abi3-win_amd64.whl
| Download URL | pozalabs_pydub-0.43.0-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 206.0 kB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
59461120c5650cec21169566b1d5f1a03b4ac0d8f53559009a1a057258f6e217
|
|
BLAKE2b-256 checksum How to use checksums |
2d23c2ac5c372f99e791f93a38b070991b6256d967c445f4f54e298c6446b830
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 27, 2026.
Transparency logRelease files / pozalabs_pydub-0.43.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pozalabs_pydub-0.43.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 350.3 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
ff4ed34957f256525dc758e7eb24925e089a47b2b8a502c1991ca633e1f51244
|
|
BLAKE2b-256 checksum How to use checksums |
9a8505b083e8730322a1cafad1d00f6542c9c3970e92bed2a6be4925f60d5012
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 27, 2026.
Transparency logRelease files / pozalabs_pydub-0.43.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | pozalabs_pydub-0.43.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 346.0 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
8bc8a790ffb504ef1fc6853d4906b5b2eda255d42ba3b4885ab6b1d9c20e3cc5
|
|
BLAKE2b-256 checksum How to use checksums |
4152008217fb9e9bfa61f7e58dceef67b7158c5f081ba1c626d2919dee490e82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 27, 2026.
Transparency logRelease files / pozalabs_pydub-0.43.0-cp311-abi3-macosx_11_0_arm64.whl
| Download URL | pozalabs_pydub-0.43.0-cp311-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 311.4 kB |
| Tags | CPython 3.11 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b4bf6fc8f6d3551217e3ed8a8ef9736492bbbe40c7d900628765e6618fce84c6
|
|
BLAKE2b-256 checksum How to use checksums |
b2e293c997444ef777d4bb549124522daef2d2e43358a7db1d578f1e80eed72a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 27, 2026.
Transparency logRelease files / pozalabs_pydub-0.43.0-cp311-abi3-macosx_10_12_x86_64.whl
| Download URL | pozalabs_pydub-0.43.0-cp311-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 315.2 kB |
| Tags | CPython 3.11 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
ad9139960c2ef101ccbe692f19d1f2d214c9cc2bbbfad7b87ab5eddd468aded8
|
|
BLAKE2b-256 checksum How to use checksums |
8a91132e8a52320c8aaea9d3e00e498535ebae46ad61ee8ac09c8582c83f04fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 27, 2026.
Transparency log