[Speex-dev] Noise problem while encoding and decoding

欧阳微微 oovoov008 at gmail.com
Sat Jul 19 09:29:23 PDT 2008


Hi, everyone!

I'm a newbie of speex develog. I tried to encode and decode with the
sample program in the speex manual. I compile those program with

    gcc sampleenc.c -o enc -lspeex
    gcc sampledec.c -o dec -lspeex

I run these two program in this way and then speak loudly:
    ./enc /dev/dsp ¦ ./dec /dev/dsp

I thought I would hear my voice. However, what i heard was a lot of
noise. I can hardly recognize my voice.

Then I tried in another way.

cat /dev/dsp > from
./enc from ¦ ./dec to
cat to > /dev/dsp

But still the same.

However, the voice  is very clear if I run the following command:
cat from > /dev/dsp

I am really confused. Would you please help me? My OS is Fedora8.
Speex Version is speex-1.2beta3.

Thanks a lot!

Oov


More information about the Speex-dev mailing list