A Python wrapper for SoX, enabling audio processing, transformation, and analysis directly from Python code.
pysox is a Python wrapper for SoX (Sound eXchange), a command-line audio processing tool. It provides a Pythonic interface to perform audio transformations, analysis, and format conversions programmatically, solving the problem of integrating SoX's capabilities into Python-based audio workflows without relying on shell commands.
Python developers and researchers working with audio data, such as in music information retrieval, audio engineering, or data science projects requiring audio manipulation.
Developers choose pysox because it seamlessly integrates SoX's powerful audio processing into Python, offering features like in-memory array support and a clean API, which simplifies audio tasks compared to manual command-line calls or less comprehensive libraries.
Python wrapper around sox.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Provides a Pythonic interface to all SoX audio effects like companding, fading, and pitch shifting through the Transformer class, as demonstrated in the examples with effects logging.
Supports direct processing of in-memory NumPy arrays, enabling easy integration with data science workflows, shown in the array transformation examples that output to files or arrays.
Offers functions to extract metadata such as sample rate, number of samples, and silence detection from audio files, useful for preprocessing and analysis tasks.
The Combiner class allows concatenating and applying effects to multiple files in one go, streamlining audio pipeline automation, as illustrated in the concatenation example.
Requires a separate SoX installation with specific version (14.4.2+) and codec support, which complicates setup and deployment, especially on systems without package managers.
Some features, like the Combiner, do not support array input or output, restricting fully in-memory audio pipelines, as noted in the README examples.
Wraps SoX, which may lack support for newer audio standards or effects, potentially making it less suitable for modern applications needing advanced processing.