speex解码初体验

  |   0 评论   |   0 浏览

背景

speex和wav的相互转换。

初体验

下载

安装ogg

wget https://downloads.xiph.org/releases/ogg/libogg-1.3.4.zip
unzip libogg-1.3.4.zip
cd libogg-1.3.4
./configure
make
sudo make install

安装speex

wget http://downloads.us.xiph.org/releases/speex/speex-1.2.0.tar.gz
tar xvf speex-1.2.0.tar.gz
cd speex-1.2.0
./configure
make

编译

g++ wav_io.c speexdec.c -L /usr/local/lib -logg -lspeex -o speexdec

使用

./speexdec ../../6550166aa7bf4fdfb2061bebbe6c178a.spx

调试

gdb --args ./speexdec ../../6550166aa7bf4fdfb2061bebbe6c178a.spx