[flac-dev] FLAC-compress data with Python

Nouvelle Collection nouvellecollection at gmail.com
Sat Mar 15 02:58:29 PDT 2014


Hello,

I would like to compress some data, stored in a Numpy Array (Python) with
something like (*):

flac.compress(my_array)

without having to put data in a .wav file, without having to deal with
containers, etc.,
i.e. :
*raw data in / raw data out*

Do you have an idea on how to do that with FLAC?

This could be useful for audio data of course (stored in simple arrays),
but also for other kind of sampled data : I can imagine that FLAC can be
useful on lots of different kinds of data (mainly for those whose waveforms
look like continuous function, like audio data), isn't it true ?

Best regards,
basj



(*) in a similar fashion than all Python tools like :  json.dumps(mydata),
lz4.dumps(mydata), pickle.dumps(myobject),
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/flac-dev/attachments/20140315/f76febf6/attachment.htm 


More information about the flac-dev mailing list