[Haskell-cafe] library to read/write audio files

Henning Thielemann lemming at henning-thielemann.de
Wed Dec 12 02:01:47 EST 2007

On Tue, 11 Dec 2007, John Lato wrote:

> I've been working on a library to encode/decode audio files (wave,
> aiff, etc.) to and from lazy bytestrings, and it's finally in a form
> where I'm willing to share.  It's available at
> http://mml.music.utexas.edu/jwlato/HSoundFile/, lightly cabalized and
> haddock-ified.  The basic item is a Data.SoundFile datatype and a
> SndFileCls class.  Each file format (wave, etc.) has a datatype with
> instances of SndFileCls and Data.Binary (thanks to Don S. for
> suggesting Data.Binary).  At least that's the idea, I've only
> implemented the Wave format so far, but I wanted to make it easy to
> add new formats.

These are great news. So far I used Sox to write files in several formats
- reading is not nicely possible with this approach, because Sox does not
output header information.

Would you like to advertise your library at:

I also reply to the Haskell Art Mailing list.

More information about the Haskell-Cafe mailing list