A zero-dependency, modern Python replacement for pydub — works on Python 3.13+ where pydub is broken
Project description
sonance
A zero-dependency, modern Python replacement for pydub.
Works on Python 3.9–3.14+, including Python 3.13 where pydub is broken due to the removal of audioop.
Installation
pip install sonance
Quick Start
from sonance import AudioSegment
# Load, manipulate, export — same API as pydub
seg = AudioSegment.from_file("audio.mp3")
louder = seg + 6 # +6 dB
first_10s = seg[:10000] # first 10 seconds
seg.export("out.wav", format="wav")
Migration from pydub
# Change this:
from pydub import AudioSegment
# To this:
from sonance import AudioSegment
# Or for zero-change migration:
import sonance as pydub
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sonance-0.1.0.tar.gz.
File metadata
- Download URL: sonance-0.1.0.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
029b237164ca4ca54a51750d4846bde48247c9b5702288db38ccb698749ed870
|
|
| MD5 |
7b4af44142730e9507ab4dfb9b2ba780
|
|
| BLAKE2b-256 |
5558e3e2624330b2f2a13a5ee1ca5df7d378787ce3fc2f899a7110ff9033d3ae
|
Provenance
The following attestation bundles were made for sonance-0.1.0.tar.gz:
Publisher:
publish.yml on agentine/sonance
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sonance-0.1.0.tar.gz -
Subject digest:
029b237164ca4ca54a51750d4846bde48247c9b5702288db38ccb698749ed870 - Sigstore transparency entry: 1095176589
- Sigstore integration time:
-
Permalink:
agentine/sonance@5d5949815d108762f4ad7074e0dc238cf3c5007f -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/agentine
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5d5949815d108762f4ad7074e0dc238cf3c5007f -
Trigger Event:
release
-
Statement type:
File details
Details for the file sonance-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sonance-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
967557ee29cb3afb64fcbf0ad1c7b05e65a16bbf50e50df6fd51d73c1bfb6e2c
|
|
| MD5 |
17d6a0df8208e1263bd838ada1aa2838
|
|
| BLAKE2b-256 |
1a50d1becd2bf5e49838cbab05324e4e72c7b2e962def9e1a393642ba0183dd2
|
Provenance
The following attestation bundles were made for sonance-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on agentine/sonance
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sonance-0.1.0-py3-none-any.whl -
Subject digest:
967557ee29cb3afb64fcbf0ad1c7b05e65a16bbf50e50df6fd51d73c1bfb6e2c - Sigstore transparency entry: 1095176716
- Sigstore integration time:
-
Permalink:
agentine/sonance@5d5949815d108762f4ad7074e0dc238cf3c5007f -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/agentine
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5d5949815d108762f4ad7074e0dc238cf3c5007f -
Trigger Event:
release
-
Statement type: