jpemartins / speex.js

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

Creating speex in ogg container #16

Open tilomitra opened 10 years ago

tilomitra commented 10 years ago

Hey, do you have an example which takes a speex input and generates speex in an ogg container? In the examples, I see that you are encoding WAV to Ogg, but I don't see an example where you take Speex data and wrap it in an Ogg container. Is this possible? Thanks! Great work with this code, btw!

jpemartins commented 10 years ago

Hi,

Great work with this code, btw

Thanks!

Hey, do you have an example which takes a speex input and generates speex in an ogg container? In the examples, I see that you are encoding WAV to Ogg, but I don't see an example where you take Speex data and wrap it in an Ogg container. Is this possible?

Yeah sure, the decodeFile takes the ogg speex encoded data from the Ogg, and encodeFile function takes the Speex data and wrap it in a Ogg container.

Note that the links I pointed out here contain actual line numbers.