# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 sox

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

## 安装

```sh
sudo av install brew:sox
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install sox
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install sox
```

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

### Linux

- apk (92%):

```sh
sudo apk add sox
```

  证据: Alpine Linux edge package indexes: sox from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install sox
```

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

- dnf (92%):

```sh
sudo dnf install sox
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#sox
```

  证据: nixpkgs package indexes: pkgs/by-name/so/sox/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S sox
```

  证据: Arch Linux sync databases: sox from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install sox
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/sox
```

  证据: Scoop official bucket manifest trees: bucket/sox.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id ChrisBagwell.SoX -e
```

  证据: Windows Package Manager source index: ChrisBagwell.SoX from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:sox
- **软件包管理器:** Homebrew
- **版本:** 14.4.2
- **来源摘要:** SOund eXchange: universal sound sample translator
- **主页:** <https://sox.sourceforge.net/>
- **最后更新:** 2026-07-13T17:31:46+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- play (别名)
- rec (别名)
- sox (别名)
- soxi (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 14.4.2
## 项目历史与用法

SoX, short for Sound eXchange, is a long-running command-line audio conversion and processing suite. It is a classic Unix-style media tool: scriptable, format-oriented, useful in pipelines, and packaged broadly across Unix, Linux, macOS, and Windows package managers.

### 项目历史

The official ChangeLog traces SoX back to July 1991 and records release history before and after the 11gamma series. The maintained SourceForge tree includes manuals, release notes, and library documentation for the `sox`, `play`, `rec`, and `soxi` commands.

SoX's manual describes the program as a command-line audio processing tool especially suited to quick edits and batch processing. Its model is intentionally non-graphical: input files, format options, output files, and effects are combined into a shell-friendly processing chain.

### 采用历史

SoX persisted because it solved a package-manager-shaped problem: one small CLI could convert, inspect, record, play, synthesize, and batch-process audio without a desktop editor. The input package facts show it packaged by Homebrew, Debian, Ubuntu, Fedora, Arch, Nix, MacPorts, Scoop, winget, and other systems.

The 14.x release history shows active maintenance through the 2000s and 2010s, including format support, effects, libSoX changes, and portability fixes. Its SourceForge project page describes it as the Swiss Army Knife of sound processing utilities.

### 使用方式

Common usage includes converting file formats, applying effects while converting, mixing or concatenating inputs, recording through `rec`, playing through `play`, and inspecting headers with `soxi`. The man page gives examples such as AU to WAV conversion, rate changes, fades, normalization, synthesis, and multitrack recording.

For package users, SoX is often installed because another script, build, podcast workflow, test fixture, or audio data pipeline needs a dependable `sox` binary rather than an interactive editor.

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

SoX is package-nerd infrastructure: tiny enough to script, old enough to be everywhere, and broad enough to replace many one-off audio converters. Its many optional codec and device backends make distro packaging choices visible to users, which is why formula variants and build dependencies matter.

The companion `play`, `rec`, and `soxi` entry points are also packaging-relevant because one installed program exposes several command names. This makes SoX a good example of a CLI package whose symlinks, optional libraries, and man pages are part of the user-facing contract.

### 时间线

- 1991: Official ChangeLog traces project creation to July 1991.
- 1995: ChangeLog covers history through the sox-11gamma era.
- 2007: SoX 14.0.0 released.
- 2012: SoX 14.4.0 released with deprecations, format updates, and effect changes.
- 2015: SoX 14.4.2 released with Ogg Opus and RF64 WAV read support among other fixes.
- 2021: Source tree includes maintained manual page updates.

### Related projects

- libSoX is the library at the heart of SoX, according to the manual.
- Audacity is mentioned by the SoX manual as the interactive graphical editor to use when the command-line model is not appropriate.
- sox_ng is a later hard fork of SoX 14.4.2.

### 来源

- <https://sourceforge.net/p/sox/code/ci/master/tree/ChangeLog>
- <https://sourceforge.net/p/sox/code/ci/master/tree/sox.1>
- <https://sourceforge.net/p/sox/code/ci/master/tree/soxformat.7>
- <https://sox.sourceforge.net/>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Debian apt - libsox-dev - 14.4.2+git20190427-5+b3: normalized package name match | Debian stable package indexes: libsox-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for the SoX library | https://sox.sourceforge.io/
- Debian apt - libsox-fmt-all - 14.4.2+git20190427-5+b3: normalized package name match | Debian stable package indexes: libsox-fmt-all from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | All SoX format libraries | https://sox.sourceforge.io/
- Debian apt - libsox-fmt-alsa - 14.4.2+git20190427-5+b3: normalized package name match | Debian stable package indexes: libsox-fmt-alsa from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SoX alsa format I/O library | https://sox.sourceforge.io/
- Debian apt - libsox-fmt-ao - 14.4.2+git20190427-5+b3: normalized package name match | Debian stable package indexes: libsox-fmt-ao from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SoX Libao format I/O library | https://sox.sourceforge.io/
- Debian apt - libsox-fmt-base - 14.4.2+git20190427-5+b3: normalized package name match | Debian stable package indexes: libsox-fmt-base from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Minimal set of SoX format libraries | https://sox.sourceforge.io/
- Debian apt - libsox-fmt-mp3 - 14.4.2+git20190427-5+b3: normalized package name match | Debian stable package indexes: libsox-fmt-mp3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SoX MP2 and MP3 format library | https://sox.sourceforge.io/
- Debian apt - libsox-fmt-opus - 14.4.2+git20190427-5+b3: normalized package name match | Debian stable package indexes: libsox-fmt-opus from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SoX Opus format library | https://sox.sourceforge.io/
- Debian apt - libsox-fmt-oss - 14.4.2+git20190427-5+b3: normalized package name match | Debian stable package indexes: libsox-fmt-oss from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SoX OSS format I/O library | https://sox.sourceforge.io/
- Debian apt - libsox-fmt-pulse - 14.4.2+git20190427-5+b3: normalized package name match | Debian stable package indexes: libsox-fmt-pulse from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SoX PulseAudio format I/O library | https://sox.sourceforge.io/
- Debian apt - libsox3 - 14.4.2+git20190427-5+b3: normalized package name match | Debian stable package indexes: libsox3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SoX library of audio effects and processing | https://sox.sourceforge.io/
- Debian apt - sox - 14.4.2+git20190427-5+b3: normalized package name match | Debian stable package indexes: sox from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Swiss army knife of sound processing | https://sox.sourceforge.io/
- Nix - sox: normalized package name match | nixpkgs package indexes: pkgs/by-name/so/sox/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libsox-dev - 14.4.2+git20190427-4build4: normalized package name match | Ubuntu 24.04 LTS package indexes: libsox-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development files for the SoX library | https://sox.sourceforge.io/
- Ubuntu apt - libsox-fmt-all - 14.4.2+git20190427-4build4: normalized package name match | Ubuntu 24.04 LTS package indexes: libsox-fmt-all from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | All SoX format libraries | https://sox.sourceforge.io/
- Ubuntu apt - libsox-fmt-alsa - 14.4.2+git20190427-4build4: normalized package name match | Ubuntu 24.04 LTS package indexes: libsox-fmt-alsa from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | SoX alsa format I/O library | https://sox.sourceforge.io/
- Ubuntu apt - libsox-fmt-ao - 14.4.2+git20190427-4build4: normalized package name match | Ubuntu 24.04 LTS package indexes: libsox-fmt-ao from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | SoX Libao format I/O library | https://sox.sourceforge.io/


## Combined YAML source

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


## 来源

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