jpemartins / speex.js

Speex codec in Javascript. Mirror from https://code.ua.pt/projects/speex-js
214 stars 63 forks source link

is it possible to convert wav to spx format using javascript? #4

Closed vcoder14 closed 10 years ago

jpemartins commented 11 years ago

At the moment it only decodes/encodes the speex bytestream, which is then encapsulated in the Ogg container format. Although is this Ogg encapsulation only decoding is implemented (src/ogg.js for reference).

In short, for WAV -> PCM -> Speex it is possible. But WAV -> PCM -> Speex -> OGG no (for now).

vcoder14 commented 11 years ago

Hi, Thanks for your reply! Is it possible to save the speex encoded from wav ? if it so could you please help me to make it so, if i am not bothering you much?

On Sun, May 26, 2013 at 11:58 PM, João Martins notifications@github.comwrote:

At the moment it only decodes/encodes the speex bytestream, which is then encapsulated in the Ogg container format. Although is this Ogg encapsulation only decoding is implemented (src/ogg.jshttps://github.com/jpemartins/speex.js/blob/master/src/ogg.jsfor reference).

In short, for WAV -> PCM -> Speex it is possible. But WAV -> PCM -> Speex -> OGG no (for now).

— Reply to this email directly or view it on GitHubhttps://github.com/jpemartins/speex.js/issues/4#issuecomment-18467282 .

jpemartins commented 10 years ago

Fixed in bedffc214b2780cbdaeda32a65df10d676632359.

Checkout the demo app. You can now encode to OGG and download the file later on.