[speex-dev] question on usage of the libraries

Jean-Marc Valin jean-marc.valin at hermes.usherb.ca
Fri Dec 13 11:49:27 PST 2002

> I think I'm doing something wrong :o) Don't know what though.
> Also, I could not find in the documentation how to convert the sample-data
> to floats. Now I'm just doing something like
> float_data[index] = (float)input_data[index];
> where input_data is a short *input_data "array". Is this correct? Or should
> I scale the data down to -1.0 <= x <= 1.0?

The scaling used by Speex is +- 32767 (16 bits) and the conversion
you're doing is right. Have you listened to the output? Does it sound
good (compare it to speexenc/speexdec)?


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 242 bytes
Desc: signature.asc
Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20021213/4eabbf71/signature.pgp

More information about the Speex-dev mailing list