[Speex-dev] HELP?
Jean-Marc Valin
Jean-Marc.Valin
Thu Jul 8 15:38:42 PDT 2004
If you had read the manual, you would have seen that Speex takes 160
samples in narrowband mode and 320 in wideband mode (i.e. 20 ms). Also,
there are even sample encoder and decoder code (sampleenc.c and
sampledec.c) in the appendix.
Jean-Marc
Le jeu 08/07/2004 ? 18:35, Craft, Jerry a ?crit :
> Platform
> Intel
> Linux/Fedora Core 2
> ALSA
> Soundblaster 128 PCI
>
> I am capturing U8 (unsigned 8 bit mono) audio from the sound blaster and
> attempting to
> compress it with speex. I have built and installed speex on the computer
> and can compile
> and link with no problems. I have the sample programs (sampleenc.c and
> sampledec.c)
> which I am following. The only difference is my raw data is in a char array
> and not
> written to a file.
>
> Everytime I call speex_encode and speex_bits_write I get a return value of
> 38.
>
> I found the max byte size bit stream of 2000 in the speex_bits.h but no
> matter if
> I pass it 200 or 2000 I always get 38 bytes back.
>
> Any clues ??
>
> Jerry R Craft
> Titan Systems
> 7436 Mission Valley Road
> San Diego, Ca. 92108
> wk 619.278.2012
> cel 760.855.3329
>
>
>
> _______________________________________________
> Speex-dev mailing list
> Speex-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/speex-dev
--
Jean-Marc Valin
http://www.xiph.org/~jm/
LABORIUS
Universit? de Sherbrooke, Qu?bec, Canada
More information about the Speex-dev
mailing list