Skip to main content

Lossless codec for multichannel audio

Project description

Straw

PyTest Status

Straw is a lossless audio codec intended for efficiently storing multichannel audio

Current state

Stability Status

This project is still a work in progress and as such is not yet ready to be used safely.

The interface and imports are subject to frequent change.

The use of this library in its current form is strongly discouraged!

Installation

Create a Python virtual environment, activate it and install the dependencies

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Usage

Library

The library usage is analogous to soundfile:

import straw

data, sample_rate = straw.read("existing_file.straw")
straw.write("new_file.straw", data, sample_rate)

Standalone encoder/decoder

First activate the virtual environment:

source venv/bin/activate
export PYTHONPATH=$PYTHONPATH:src

Encoding:

python3 main.py -i /path/to/input.wav -o /path/to/output.straw

Decoding:

python3 main.py -d -i /path/to/input.straw -o /path/to/output.wav

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

straw-codec-0.2.tar.gz (30.8 kB view details)

Uploaded Source

File details

Details for the file straw-codec-0.2.tar.gz.

File metadata

  • Download URL: straw-codec-0.2.tar.gz
  • Upload date:
  • Size: 30.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for straw-codec-0.2.tar.gz
Algorithm Hash digest
SHA256 84a63043be57b30962cc3782b3d87661657b915d4d665ea66e044ac771ad6d0d
MD5 80770469300d1d81ce324a6d7036800c
BLAKE2b-256 1c6d4e8254b6a54f1ee38ae5f28fcafda146466b44b3c255aac1ee53110d32d3

See more details on using hashes here.

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