jpemartins / speex.js

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

can't decode speex with ogg, always throw error:notification: More than two wideband layers found. The stream is corrupted. #6

Closed lovemyliwu closed 10 years ago

lovemyliwu commented 10 years ago

i can play on android and pc, why speex.js play throw error

lovemyliwu commented 10 years ago

[solved]ok, i decode speex with ogg then encode again on the server side by use speex-tool, after that, speex.js can decode and play now. i don't know what happed to the record side, we use android ndk compile libspeex and record.

jpemartins commented 10 years ago

Thanks a lot for trying this out.

Probably you were recording in wideband mode? Speex.js only supports narrow mode :-/ 8000hz sample rate. Either that or something weird in my ogg demux.