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

Jean-Marc Valin Jean-Marc.Valin at USherbrooke.ca
Fri Apr 16 13:42:11 PDT 2004

Le ven 16/04/2004 à 16:39, Kenji Chan a écrit :
> Ok, I'm using 1.1.4, so I should pass signed short(wav data) directly to
> speex_encode()?

First, I'd like to ak why you want to use 1.1.4. If you don't need the
new features (fixed-point or preprocessor), you should probably stick to
1.0.3, which has received more testing. If you choose to use 1.1.4, you
need to send shorts to speex_encode/speex_decode.

> But the samplecode that comes with 1.1.4 shows me to put short in float
> array, and pass the float array to speex_encode()

The document hasn't been updated for 1.1.x.


Jean-Marc Valin
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/e90e7b67/signature.pgp

More information about the Speex-dev mailing list