[Speex-dev] sampling rate in speex

Jean-Marc Valin jean-marc.valin at usherbrooke.ca
Thu Jul 5 08:15:52 PDT 2007


bhushan a écrit :
> Hi,
>    I am trying to use speex for online speech compression in my
> application code. I wanted to know the bits per sample for 8khz
> sampling rate. Presently i am using 16 bits/ sample, is it alright?

Bits per sample don't matter. If you call speex_encode_int(), then you
need to pass a short* (i.e. 16-bit), if you call speex_encode(), then
it's a float* and the result is pretty much the same. You can use
BCD-encoded ASCII if you feel like it -- as long as you implement the
wrapper for it ;-)

	Jean-Marc



More information about the Speex-dev mailing list