Anyone know of some example code that shows storing speex audio into a WAV? For a lot of reasons a WAV is a better choice than ogg for my application.
David Siebert wrote:> Anyone know of some example code that shows storing speex audio into a > WAV? For a lot of reasons a WAV is a better choice than ogg for my > application.If you have decoded the speex data to PCM, the easiest way to get it to WAV is to use libsndfile: http://www.mega-nerd.com/libsndfile/ Yes, it runs on *nix, windows and mac. Pre-compiled windows binaries are available at the above URL. Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- "Neither noise nor information is predictable." -- Ray Kurzweil
Erik de Castro Lopo wrote:> David Siebert wrote: > >> Anyone know of some example code that shows storing speex audio into a >> WAV? For a lot of reasons a WAV is a better choice than ogg for my >> application. > > If you have decoded the speex data to PCM, the easiest way to get > it to WAV is to use libsndfile: > > http://www.mega-nerd.com/libsndfile/ > > Yes, it runs on *nix, windows and mac. Pre-compiled windows binaries > are available at the above URL. > > ErikActually I was hoping to store speex compressed audio into a wav container. Not to trans code it.