Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sonance-0.1.0.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sonance-0.1.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

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

Hashes for sonance-0.1.0.tar.gz
Algorithm Hash digest
SHA256 029b237164ca4ca54a51750d4846bde48247c9b5702288db38ccb698749ed870
MD5 7b4af44142730e9507ab4dfb9b2ba780
BLAKE2b-256 5558e3e2624330b2f2a13a5ee1ca5df7d378787ce3fc2f899a7110ff9033d3ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for sonance-0.1.0.tar.gz:

Publisher: publish.yml on agentine/sonance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for sonance-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 967557ee29cb3afb64fcbf0ad1c7b05e65a16bbf50e50df6fd51d73c1bfb6e2c
MD5 17d6a0df8208e1263bd838ada1aa2838
BLAKE2b-256 1a50d1becd2bf5e49838cbab05324e4e72c7b2e962def9e1a393642ba0183dd2

See more details on using hashes here.

Provenance

The following attestation bundles were made for sonance-0.1.0-py3-none-any.whl:

Publisher: publish.yml on agentine/sonance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page