Speex is an audio compression format designed specifically for speech. It is well-adapted to internet applications and provides useful features that are not present in most other CODECs.
Speex download: https://downloads.xiph.org/releases/speex/speex-1.2.1.tar.gz
Speexdsp download: https://downloads.xiph.org/releases/speex/speexdsp-1.2.1.tar.gz
This package consists of two separate tarballs. They need to be extracted and built independently.
Install Speex by running the following commands:
mkdir build &&
cd build &&
../configure --prefix=/usr \
--disable-static \
--docdir=/usr/share/doc/speex-1.2.1 &&
make
As the root user:
make install
Now extract and install the speexdsp package:
tar -xf ../../speexdsp-1.2.1.tar.gz &&
pushd speexdsp-1.2.1 &&
./configure --prefix=/usr \
--disable-static \
--docdir=/usr/share/doc/speexdsp-1.2.1 &&
make
Again, as the root user:
make install && popd
Install lib32-Speex by running the following commands:
rm -rf * &&
CC="gcc -m32" CXX="g++ -m32" \
PKG_CONFIG=/usr/bin/i686-pc-linux-gnu-pkg-config \
../configure --prefix=/usr \
--libdir=/usr/lib32 \
--host=i686-pc-linux-gnu \
--disable-static &&
make
As the root user:
make DESTDIR=$PWD/DESTDIR install && cp -vR DESTDIR/usr/lib32/* /usr/lib32 && rm -rf DESTDIR && ldconfig
Now extract and install the lib32-speexdsp package:
tar -xf ../../speexdsp-1.2.1.tar.gz &&
pushd speexdsp-1.2.1 &&
CC="gcc -m32" CXX="g++ -m32" \
PKG_CONFIG=/usr/bin/i686-pc-linux-gnu-pkg-config \
./configure --prefix=/usr \
--libdir=/usr/lib32 \
--host=i686-pc-linux-gnu \
--disable-static &&
make
Again, as the root user:
make DESTDIR=$PWD/DESTDIR install && cp -vR DESTDIR/usr/lib32/* /usr/lib32 && rm -rf DESTDIR && ldconfig && popd
Run ./configure --help for a full list of options.
--disable-static: This
switch prevents installation of static versions of the libraries.