[speex-dev] What is the format of the PCM/WAV data for speex_encode & speex_decode?

Jean-Marc Valin Jean-Marc.Valin at USherbrooke.ca
Fri Apr 16 13:25:04 PDT 2004


Speex 1.0.3 uses floats, but the unstable version 1.1.x uses short.

        Jean-Marc

Le ven 16/04/2004 à 16:04, Kenji Chan a écrit :
> I’m confused about the format of the PCM/WAV data for speex_encode &
> speex_decode
> 
>     speex_encode(enc_state, input_frame, &bits); 
> 
> In the manual, it says “input_frame is a (float *) pointing to the
> beginning of a speech frame” (for encode)
> 
> But I’ve found that in speexenc.c and testenc.c, short* is used
> instead of float*
> 
>  
> 
> So, isn’t it signed 16 bit samples(if 16bit) or float?
> 
> For vorbis, I have to convert signed 16bit to float before encoding,
> how’s about speex?
> 
>  
> 
>  

-- 
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/20040416/d14a32ea/signature.pgp


More information about the Speex-dev mailing list