Speex-1.2.1

#### Gaming Linux® From Scratch - Version 13.0

### Chapter 7. Audio

- Prev

  Opus-1.6.1

- Next

  libsndfile-1.2.2

- Up
- Home

# 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

- 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

### Speex Dependencies

Required
libogg-1.3.6

## 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

### Note

Run ./configure --help for a full list of options.

`--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

- Prev

  Opus-1.6.1

- Next

  libsndfile-1.2.2

- Up
- Home