Skip to content

parlance-zz/flacpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FLACPy

FLACPy is a high-performance Python extension for handling FLAC (Free Lossless Audio Codec) file operations. This library is intended to resolve some of the shortcomings of existing popular libraries w.r.t. performance and metadata.

Features

  • Fastest possible FLAC file encoding and decoding with libFLAC. If loading using a start offset and length the library will only read and decode the required portion of the file.
  • Arbitrary metadata can be read/written when loading/saving without redundant file i/o.
  • Audio data uses NumPy arrays and metadata uses Python dicts.
  • Save FLAC files with a specified bit depth and compression level
  • Save FLAC files with seektables for fast loading when using a start offset and length.

Installation

To install FLACPy, you can use pip:

pip install flacpy

Make sure you have the required dependencies installed, including NumPy and the FLAC libraries.

Usage

Here is a simple example of how to use FLACPy:

import flacpy

# Example usage of FLACPy functions

For more detailed usage, please refer to the examples/basic_usage.py file.

Testing

To run the tests for FLACPy, navigate to the tests directory and execute:

pytest test_flacpy.py

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contributors

parlance-zz

Feel free to reach out for any questions or contributions!

About

Efficient FLAC file i/o for Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published