Bogo-Sort / qoa-python

MIT License
1 stars 1 forks source link

QOA-Python

The Quite OK Audio Format for Fast, Lossy Compression

A Python wrapper around qoa Written using the CFFI library.

Why?

Install

pip install qoa

Usage

You can use the qoa library to encode and decode audio files. Here's a basic example:

import qoa

# Read an audio file
np_array = qoa.read('path/to/file')

# Write an audio file
qoa.write(np_array , 'path/to/file')

# Encode an audio file
buffer = qoa.encode(np_array)