[speex-dev] What is the format of the PCM/WAV data for speex_encode & speex_decode?
stevek at stevek.com
Fri Apr 16 13:24:25 PDT 2004
Kenji Chan wrote:
> I'm confused about the format of the PCM/WAV data for speex_encode &
> 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?
It changed between speec 1.0 and 1.1. 1.1 (and CVS) uses short, but
1.0 uses float. I believe that the floats should be in the range of
short (i.e -32k to 32k).
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'speex-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Speex-dev