Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pysox - python bindings for libsox

Installation from source

Required prerequisite are the development libraries of sox at version 14.3.x, i.e. the header files and libraries to link against. Specifically you need sox.h in your include path and libsox.so and libsox.a in your link path. Pysox will not compile against any sox version prior to 14.3.0.

Then simply run:

python setup.py build

python setup.py install

Usage

See the examples included in the source, or the api doc at http://packages.python.org/pysox/

import pysox

#open an audio file
testwav = pysox.CSoxStream("test.wav")
#create an audio file with the same parameters as the input file
out = pysox.CSoxStream('out.wav', 'w', testwav.get_signal())

#create an effects chain using the signal and encoding parameters of our files
chain = pysox.CEffectsChain(testwav, out)
chain.add_effect(pysox.CEffect("vol",[b'18db']))
chain.flow_effects()
#cleanup
out.close()

Python 3

This package is compatible with python 3, tested on 2.6.6, 2.7.1, 3.0.1, 3.1.3 and 3.2. It is however not compatible with python 2.5 and prior.

Metadata

Release files for pysox 0.3.6.alpha

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysox 0.3.6.alpha
File Size Uploaded Provenance
pysox-0.3.6.alpha.tar.gz 169.7 kB Without provenance Details

Release files / pysox-0.3.6.alpha.tar.gz

Download URL pysox-0.3.6.alpha.tar.gz
Size 169.7 kB
Tags Source
SHA-256 checksum
How to use checksums
81419944f04e718e283db6430d91396e878df2f988c72797a477ba0f4c8e2cb2
BLAKE2b-256 checksum
How to use checksums
7f5efbf8b5fb0734b345f5905da55ec113a0c9dcfb4853368100ac360b32fb34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pysox 0.3.6.alpha

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page