Hi all, I've built Speex 1.03 on Mac OS X. I encoded a raw PCM file successfully using: /usr/local/bin/speexenc raw_samples.raw --rate 44100 --be --16bit raw_enc.spx Warning: Speex is only optimized for 8, 16 and 32 kHz. It will still work at 44100 Hz but your mileage may vary Encoding 44100 Hz audio using ultra-wideband (sub-band CELP) mode (mono) If I decode to .wav, it works fine. However, if I decode to .raw, it does not work (the decoded file when viewed on GoldWave on Windows appears to be all noise. I've tried 16-bit, signed, unsigned, big endian and little endian, mono and stereo PCM - none make a difference - the decoded file always appears to be noise). Here's the decode I did: /usr/local/bin/speexdec raw_enc.spx raw_dec.raw Decoding 44100 Hz audio using ultra-wideband (sub-band CELP) mode (mono) Encoded with Speex 1.0.3 Has anyone run into this before? And if I can tack on one more question: On 1.03, the second parameter to speex_encode is a float *. But on 1.14, it's a short *. Why the change? Thanks, Wade --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
I noticed a little while back that Andrew@teledesign.co.uk posted he was going to port the speex onto a TI DSP. Any news on this or similar developements? --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
> If I decode to .wav, it works fine. However, if I decode to .raw, it > does not work (the decoded file when viewed on GoldWave on Windows > appears to be all noise. I've tried 16-bit, signed, unsigned, big > endian and little endian, mono and stereo PCM - none make a difference > - the decoded file always appears to be noise).Can you try manually swapping the bytes on the raw output and see if you get something useful (I think by default wav is always little endian while raw is native endian)?> On 1.03, the second parameter to speex_encode is a float *. But on > 1.14, it's a short *. Why the change?One of the reasons is that with 1.1.x, I introduced a fixed-point (integer) port and I wanted to have the same API for the float and the fixed-point version. The other reason is that it makes it harder for people to screw up the scaling. Jean-Marc -- Jean-Marc Valin http://www.xiph.org/~jm/ LABORIUS Université de Sherbrooke, Québec, Canada -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 190 bytes Desc: Ceci est une partie de message numériquement signée. Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20040329/3fdef36f/signature-0001.pgp
On Mar 29, 2004, at 5:05 PM, Jean-Marc Valin wrote:> Can you try manually swapping the bytes on the raw output and see if > you > get something useful (I think by default wav is always little endian > while raw is native endian)?Well, my apologies. Apparently I got confused when trying all the different formats and somehow skipped little endian. The decoded raw file is in little endian format and works fine. The decoded .wav is also in little endian format. Looking at speexdec.c, the problem is it hardcodes output into little endian format. If you don't mind, I'd like to fix that, as well as add soundcard support for the Macintosh. I'm pretty busy, but I should be able to get to it pretty soon. Longer term, I'd also like to take a shot at adding Altivec support on the Mac. I'm no Altivec guru, but I know the right people to ask for help, so I'm pretty confident I could do it, given enough time. Thanks for a great library - I look forward to contributing what I can. Wade --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.