# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 speex

查看 speex 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install speex
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install speex
```

  证据: 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
```

  证据: 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 speex
```

  证据: Debian stable package indexes: speex from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install speex
```

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

- Nix (92%):

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

  证据: 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
```

  证据: 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 speex
```

  证据: openSUSE Tumbleweed package metadata: speex from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:speex
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/speex>
- **版本:** 1.2.1
- **来源摘要:** Audio codec designed for speech
- **主页:** <https://speex.org/>
- **上游文档:** <https://speex.org/>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://ftp.osuosl.org/pub/xiph/releases/speex/speex-1.2.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- speexdec (cli)
- speexenc (cli)
- speexdec (别名)
- speexenc (别名)

## 依赖

- libogg

## 构建依赖

- pkgconf

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.2.1
- 本地数据: OK
- 上游仓库: https://speex.org/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

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

### 来源

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


## 安全说明

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

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

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

## 其他软件包管理器记录

- 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-22.fc45: normalized package name match | Fedora Rawhide package metadata: speex from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | A voice compression format (codec) | https://www.speex.org/
- dnf - speex-devel - 1.2.0-22.fc45: 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development package for speex | https://www.speex.org/
- dnf - speex-tools - 1.2.0-22.fc45: 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | The tools package for speex | https://www.speex.org/


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Archive and compression packages](https://pkg.so/zh-hans/archive-compression-tools/) - Matched archive or compression metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [gstreamer](https://pkg.so/zh-hans/brew/gstreamer/) - Popular package that depends on this formula.
- [handbrake](https://pkg.so/zh-hans/brew/handbrake/) - Popular package that depends on this formula.
- [ffmpeg-full](https://pkg.so/zh-hans/brew/ffmpeg-full/) - Popular package that depends on this formula.
- [libshout](https://pkg.so/zh-hans/brew/libshout/) - Popular package that depends on this formula.
- [musepack](https://pkg.so/zh-hans/brew/musepack/) - Shares pkgdb curated category or tags: audio, audio-codecs, cli, codec, media.
- [ffmpeg](https://pkg.so/zh-hans/brew/ffmpeg/) - Shares pkgdb curated category or tags: audio, cli, codec, media.
- [flac](https://pkg.so/zh-hans/brew/flac/) - Shares pkgdb curated category or tags: audio, cli, codec, media.
- [wavpack](https://pkg.so/zh-hans/brew/wavpack/) - Shares pkgdb curated category or tags: audio, cli, codec, media.
- [mac](https://pkg.so/zh-hans/brew/mac/) - Shares pkgdb curated category or tags: audio-codecs, cli, media.
- [vorbis-tools](https://pkg.so/zh-hans/brew/vorbis-tools/) - Shares pkgdb curated category or tags: audio, cli, codec, media.
- [icecast](https://pkg.so/zh-hans/brew/icecast/) - Shares pkgdb curated category or tags: audio, cli, media, xiph.

## Combined YAML source

View the package source record on GitHub. [combined/speex.yml](https://github.com/mxcl/pkgdb/blob/main/combined/speex.yml)


## 来源

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