[Speex-dev] question about coding

Leonardi Andrea andrea.tn at quipo.it
Fri May 26 10:35:09 PDT 2006


Thanks for the answer.
So data are stored in little-endian format on the WAVE file. But have I to encode in big endian format or little endian is ok?! 
Thanks


---------- Original Message ----------------------------------
From: "John Miles" <jmiles at pop.net>
Date:  Tue, 23 May 2006 12:15:05 -0700

>You are probably reading little-endian samples on a big-endian platform, and
>failing to flip the byte order.  By convention, PCM samples are generally
>little-endian words, and the effect of playing them with the wrong byte
>order is just what you describe hearing, with the expected  sound buried
>under 8 bits' worth of random-sounding noise.
>
>-- john
>
>
>>
>> Hi,
>> I'm trying to encode a raw audio file with speex. No problem if I
>> normally decode it (as done in the samplenc.c, for example).
>> But if I separate odd and even samples and I try to encode
>> separately these two files (one is [odd odd odd odd..], the other
>> [even even even even..], then when I decode and I join the
>> samples in one file [odd even odd even odd even..] I heard a
>> terrible white noise, and the voice in background very weak.
>> Does anyone know the reason?
>> Thanks
>> _______________________________________________
>> Speex-dev mailing list
>> Speex-dev at xiph.org
>> http://lists.xiph.org/mailman/listinfo/speex-dev
>>
>
>_______________________________________________
>Speex-dev mailing list
>Speex-dev at xiph.org
>http://lists.xiph.org/mailman/listinfo/speex-dev
>___________________________________________________________________
>Quipo Free Internet - 2 email, 150 Mb di spazio web e molto di più.
>ADSL, Hardware & Software Online Store
>
>
 



More information about the Speex-dev mailing list