Skip to main content

Lossless codec for multichannel audio

Project description

Straw

PyPI

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

Current state

PyTest Status Stability Status

The interface and imports are still subject to change.

Installation

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

From PyPI

# system-wide
pip install straw-codec
# local
pip install --user straw-codec

From GitHub

# clone this repo
git clone https://github.com/KLZ-0/straw.git && cd straw
# install
pip install .

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

Encoding:

straw -i /path/to/input.wav -o /path/to/output.straw

Decoding:

straw -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.3.tar.gz (30.8 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: straw-codec-0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 a0f672c94deb0606db9dc473564fa719b795fac04fa02b517c413c915cc857f8
MD5 d9941bfb26f4b11c872e9f97e2c5a739
BLAKE2b-256 9ffbfaecf4c0e59ae430dd95f21afd95d511b170680a1dfbfc19a2a481dea694

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