# Install speex with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Audio codec designed for speech. Version 1.2.1 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:speex
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install speex
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install speex
```

  Evidence: MacPorts ports tree: audio/speex/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add speex
```

  Evidence: Alpine Linux edge package indexes: speex from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install libspeex-dev
```

  Evidence: Debian stable package indexes: libspeex-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install speex
```

  Evidence: Fedora Rawhide package metadata: speex from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#speex
```

  Evidence: nixpkgs package indexes: speex from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S speex
```

  Evidence: Arch Linux sync databases: speex from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libspeex1
```

  Evidence: openSUSE Tumbleweed package metadata: libspeex1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:speex
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/speex>
- **Version:** 1.2.1
- **Source summary:** Audio codec designed for speech
- **Homepage:** <https://speex.org/>
- **Repository:** <https://gitlab.xiph.org/xiph/speex>
- **Upstream docs:** <https://www.speex.org/docs>
- **License:** BSD-3-Clause
- **Source archive:** <https://ftp.osuosl.org/pub/xiph/releases/speex/speex-1.2.1.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- speexdec (cli)
- speexenc (cli)
- speexdec (alias)
- speexenc (alias)

## Dependencies

- libogg

## Build dependencies

- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.2.1
- Local data: ok
- Upstream repository: https://speex.org/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

Speex is Xiph.Org's free, patent-free speech codec and accompanying command-line encoder and decoder. Although the codec has been superseded by Opus, it remains important in package collections because old voice software, audio files, and speech-processing stacks still need a maintained codec library and conversion tools.

### Project history

The official Speex site describes the project as an Open Source/Free Software audio compression format designed for speech, intended to lower the barrier for voice applications by offering a free alternative to proprietary speech codecs. The manual credits Jean-Marc Valin and Xiph.org Foundation and covers the 2002-2007 Speex codec documentation period.

### Adoption history

Speex was distributed as source through the Xiph ecosystem and packaged broadly across Unix-like systems. The official downloads page says development versions are available through Git and identifies Speex 1.2.1 and SpeexDSP 1.2.1 as the current stable releases; the input package facts show it in Homebrew, Debian, Fedora, Arch, Alpine, MacPorts, Nix, Ubuntu, and openSUSE-style package sets.

### How it is used

CLI users mostly encounter Speex through speexenc and speexdec for encoding and decoding speech audio, while developers link the codec library. The official site highlights speech-specific features such as narrowband, wideband, and ultra-wideband modes, VBR, VAD, DTX, packet-loss concealment, echo cancellation, and noise suppression.

### Why package nerds care

Speex is a package-manager preservation case: no longer the recommended modern codec, but still part of the free audio stack and still needed for compatibility. Packagers care about the split between the deprecated codec and the still-useful SpeexDSP code, the Xiph GitLab migration, and keeping old voice applications buildable while steering new software toward Opus.

### Timeline

- 2002-2007: Speex manual copyright period documented for Jean-Marc Valin and Xiph.org Foundation.
- 2009: XiphWiki says the source was split into Speex Codec and Speex DSP.
- 2013: XiphWiki says the codec part has been deprecated since 2013.
- 2016: Speex 1.2.0 tag created in the official GitLab repository.
- 2022: Speex 1.2.1 and SpeexDSP 1.2.1 identified by the official downloads page as current stable releases.

### Related projects

- Opus is the Xiph-recommended successor for new lossy audio and speech codec use.
- SpeexDSP remains a related signal-processing library with resampling and other DSP code.

### Sources

- <https://gitlab.xiph.org/xiph/speex>
- <https://wiki.xiph.org/OpusFAQ>
- <https://wiki.xiph.org/Speex>
- <https://www.speex.org/>
- <https://www.speex.org/downloads/>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** speex
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - libspeex-dev - 1.2.1-3: normalized package name match | Debian stable package indexes: libspeex-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Speex codec library (development files) | https://www.speex.org/
- Debian apt - libspeex1 - 1.2.1-3: normalized package name match | Debian stable package indexes: libspeex1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Speex codec library (runtime library) | https://www.speex.org/
- Debian apt - speex - 1.2.1-3: normalized package name match | Debian stable package indexes: speex from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Command-line tools for Speex codec | https://www.speex.org/
- Debian apt - speex-doc - 1.2.1-3: normalized package name match | Debian stable package indexes: speex-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Documentation for speex | https://www.speex.org/
- Nix - speex: normalized package name match | nixpkgs package indexes: speex from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - libspeex-dev - 1.2.1-2ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libspeex-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | The Speex codec library development files | https://www.speex.org/
- Ubuntu apt - libspeex1 - 1.2.1-2ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libspeex1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | The Speex codec runtime library | https://www.speex.org/
- Ubuntu apt - speex - 1.2.1-2ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: speex from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | The Speex codec command line tools | https://www.speex.org/
- Ubuntu apt - speex-doc - 1.2.1-2ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: speex-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Documentation for speex | https://www.speex.org/
- apk - speex - 1.2.1-r2: normalized package name match | Alpine Linux edge package indexes: speex from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | an audio compression format designed for speech | https://www.speex.org/
- apk - speex-dev - 1.2.1-r2: normalized package name match | Alpine Linux edge package indexes: speex-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | an audio compression format designed for speech (development files) | https://www.speex.org/
- apk - speex-doc - 1.2.1-r2: normalized package name match | Alpine Linux edge package indexes: speex-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | an audio compression format designed for speech (documentation) | https://www.speex.org/
- apk - speex-tools - 1.2.1-r2: normalized package name match | Alpine Linux edge package indexes: speex-tools from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | an audio compression format designed for speech - command line tools | https://www.speex.org/
- dnf - speex - 1.2.0-21.fc44: normalized package name match | Fedora Rawhide package metadata: speex from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A voice compression format (codec) | https://www.speex.org/
- dnf - speex-devel - 1.2.0-21.fc44: normalized package name match | Fedora Rawhide package metadata: speex-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development package for speex | https://www.speex.org/
- dnf - speex-tools - 1.2.0-21.fc44: normalized package name match | Fedora Rawhide package metadata: speex-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | The tools package for speex | https://www.speex.org/


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Archive and compression packages](https://www.automicvault.com/pkg/archive-compression-tools/) - Matched archive or compression metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [easy-tag](https://www.automicvault.com/pkg/brew/easy-tag/) - Popular package that depends on this formula.
- [ffmpeg-full](https://www.automicvault.com/pkg/brew/ffmpeg-full/) - Popular package that depends on this formula.
- [ffmpeg@2.8](https://www.automicvault.com/pkg/brew/ffmpeg-2-8/) - Popular package that depends on this formula.
- [ffmpeg@4](https://www.automicvault.com/pkg/brew/ffmpeg-4/) - Popular package that depends on this formula.
- [freeswitch](https://www.automicvault.com/pkg/brew/freeswitch/) - Popular package that depends on this formula.
- [a52dec](https://www.automicvault.com/pkg/brew/a52dec/) - Shares av.db curated category or tags: audio, audio-codec, cli, codec, media.
- [musepack](https://www.automicvault.com/pkg/brew/musepack/) - Shares av.db curated category or tags: audio, audio-codec, cli, codec, media.
- [codec2](https://www.automicvault.com/pkg/brew/codec2/) - Shares av.db curated category or tags: audio, audio-codec, cli, media.
- [libgsm](https://www.automicvault.com/pkg/brew/libgsm/) - Shares av.db curated category or tags: audio-codec, cli, media, speech-compression.
- [fdk-aac](https://www.automicvault.com/pkg/brew/fdk-aac/) - Shares av.db curated category or tags: audio-codec, cli, media.
- [ffmpeg](https://www.automicvault.com/pkg/brew/ffmpeg/) - Shares av.db curated category or tags: audio, cli, codec, media.
- [flac](https://www.automicvault.com/pkg/brew/flac/) - Shares av.db curated category or tags: audio, cli, codec, media.
- [icecast](https://www.automicvault.com/pkg/brew/icecast/) - Both packages work with overlapping file formats or content types. Shared terms: audio, cli, libogg, media, xiph.
- [libshout](https://www.automicvault.com/pkg/brew/libshout/) - Both packages work with overlapping file formats or content types. Shared terms: audio, cli, libogg, media, speex.
- [libkate](https://www.automicvault.com/pkg/brew/libkate/) - Both packages work with overlapping file formats or content types. Shared terms: audio, cli, codec, libogg, media.

## Combined YAML source

View the package source record on GitHub. [combined/speex.yml](https://github.com/automic-vault/db/blob/main/combined/speex.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
