Speex-1.2.1

Introduction to Speex

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.

Package Information

Additional Downloads

Speex Dependencies

Required

libogg-1.3.5 and Pkgconf Personalties (for lib32)

Installation of Speex

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

lib32 Installation of Speex

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

Command Explanations

--disable-static: This switch prevents installation of static versions of the libraries.

Contents

Installed Programs: speexenc and speexdec
Installed Libraries: libspeex and libspeexdsp
Installed Directories: /usr/include/speex and /usr/share/doc/speex-1.2.1

Short Descriptions

speexdec

decodes a Speex file and produces a WAV or raw file

speexenc

encodes a WAV or raw file using Speex

libspeex

provides functions for the audio encoding/decoding programs

libspeexdsp

is a speech processing library that goes along with the Speex codec