简体   繁体   中英

Speex decoder doesn't produce expected result

I have encrypted data from JAVA j-speex

I am trying to decode this data using the speex decoder in JavaScript.

Most of data is giving -2 and -1 and very few data is giving correct decoded data.

I am getting some sound with noise. It is not as clear as I expect.

Befor var spx = new Speex({ rate: 16000, size: 16, quality: 6, mode: 0 //lpcm: false } ); It is gives lot of -2(corrupted stream),-1(Invalid Stream) and very few correct decoded data. When i change into the Speex parameter its giving proper decoded data. After changing the Speex Setting: var spx = new Speex({ quality: 7, mode: 1, bits_size: 70, lpcm: false } );

Thanks,

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM