Skip to content

acelletti/wavy

Repository files navigation

Wavy

image

image

image

image

image

Introduction

A pure python module for working with WAVE files with support for all common file formats for both RIFF and RIFX.

When working with WAVE files, there are two main pure python modules available:

  • builtin.wave

    Python built-in module, lacks support for float and 24bit integer. Provides raw data instead of an array of values.

  • scipy.wave

    Scipy does not support 24bit integer files. The module strength and weakness is its simplicity, if all you need to do is read and write, this might be for you.

The wave module provides a fully featured dedicated module that can be used as an alternative to the above if flexibility and ease of use are desirable.

Comparison

The following table shows a comparison of supported functionality:

Functionality builtin.wave scipy.wave wavy
RIFF Format Support check-circle check-circle check-circle
RIFX Format Support times-circle check-circle check-circle
Read Audio Information check-circle times-circle check-circle
Read Data As Array times-circle check-circle check-circle
Read Tag Information times-circle times-circle check-circle

The following table shows a comparison of supported formats for uncompressed WAVE files:

Installation

The latest stable version is available on PyPI.

Either add wavy to your requirements.txt file or install with pip:

Usage

Read File

Open a file using the module use wavy.read:

Get the data for the file:

Get File Info

To read the file information without loading the data use wavy.info:

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Module for working with wave files

Resources

License

Stars

Watchers

Forks

Packages

No packages published