[speex-dev] Decoding .spx with 1.0 on ppc produces noise!

Jean-Marc Valin jean-marc.valin at hermes.usherb.ca
Wed Apr 16 15:03:16 PDT 2003


> I got my hands on the LCA 2003 CD today and I tried to listen to it on
> my powerbook running Linux. Instead of getting speech, I got an earfull
> of noise! Attempting the same experiment on an i386 with the same CD
> produced understandable speech.

Looks like an endianness problem. I don't have access to a big endian
machine, so you'll have to help me on this one.

> It seems that the output routine in speexdec converts the output data to
> little endian short format, which is incorrect on the ppc architecture.
> The data written to the sound device should be in native endian format
> (this may be different from what is required if the data is being
> written to a file). However, removing the endian conversion does not fix
> the problem, and speexdec continues to play noise.

First thing, could you check that WORDS_BIGENDIAN is set (by configure).
Also, try decoding to wave and see if it works. With wave output, you
should leave the little-endian conversion on. If it doesn't work, could
you send me the file (or just the beginning if it's long).

        Jean-Marc


-- 
Jean-Marc Valin, M.Sc.A.
LABORIUS (http://www.gel.usherb.ca/laborius)
Université de Sherbrooke, Québec, Canada

<p>
-------------- 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/20030416/a601fc79/signature-0001.pgp


More information about the Speex-dev mailing list