macOS
brew install codec2local Homebrew formula metadata
sudo port install codec2MacPorts ports tree · audio/codec2/Portfile · 来源: api.github.com
安装
brew install codec2local Homebrew formula metadata
sudo port install codec2MacPorts ports tree · audio/codec2/Portfile · 来源: api.github.com
sudo apk add codec2Alpine Linux edge package indexes · codec2 · 来源: dl-cdn.alpinelinux.org
sudo apt install codec2Debian stable package indexes · codec2 · 来源: deb.debian.org
sudo dnf install codec2Fedora Rawhide package metadata · codec2 · 来源: dl.fedoraproject.org
nix profile install nixpkgs#codec2nixpkgs package indexes · pkgs/by-name/co/codec2/package.nix · 来源: api.github.com
sudo pacman -S codec2Arch Linux sync databases · codec2 · 来源: geo.mirror.pkgbuild.com
sudo zypper install codec2openSUSE Tumbleweed package metadata · codec2 · 来源: download.opensuse.org
概览
Open source speech codec
历史
Codec 2 is an LGPL open-source low-bit-rate speech codec written in C for communications-quality speech around 700 to 3200 bit/s. Its main application is low-bandwidth HF/VHF digital radio, where open codecs are important because many comparable vocoders have historically been proprietary or patent-encumbered.
David Rowe announced the project on 2009-08-21 in a Rowetel post titled Open Source Low Rate Speech Codec Part 1, describing a plan for a free low-bit-rate speech codec initially targeting 2400 bit/s communications-quality speech. The motivation was explicitly tied to ham radio, low-bandwidth digital radio, and the lack of open sub-5 kbit/s speech codecs.
The current Codec 2 README says the project is C99, LGPL 2.1, and includes the FreeDV API, HF OFDM and FSK modems, FEC, packet-data APIs, and embedded FreeDV support. In July 2023 the repository was refactored, with older code moved to `drowe67/codec2-dev`.
The Rowetel Codec 2 page says the codec fills a gap below 5000 bit/s and integrates with FreeDV, an open-source digital voice protocol that combines modems, codecs, and FEC.
Codec 2 has unusually broad package-manager distribution for a specialized DSP library: the input package facts list Alpine, Homebrew, Debian, Fedora/DNF, MacPorts, Nix, Arch/pacman, Ubuntu, and openSUSE/Zypper. That reflects its use as both a library and a command-line toolkit in radio and audio stacks.
The official FreeDV documentation shows Codec 2 modes inside multiple FreeDV HF and VHF modes from 2012 onward, including 1600, 700C, 700D, 700E, 2400A, and 2400B. This is adoption through an application protocol rather than a standalone end-user CLI alone.
The README documents simple command-line workflows with `c2enc`, `c2dec`, `c2demo`, and `c2sim`, including one-liners that encode raw speech, decode it, and play it through ALSA tools. It also documents FreeDV transmit and receive programs, modem programs, LDPC utilities, and build instructions for Linux, Windows cross-compilation, Android, and microcontrollers.
In practice, Codec 2 is used by developers and radio experimenters as a codec library, a set of command-line demonstrations, and the speech-coding component of FreeDV digital voice modes.
Codec 2 matters to package maintainers because it is a rare open implementation in the very-low-bit-rate speech codec space, packaged widely despite being specialized DSP software. It brings together C libraries, demo CLIs, radio modem tooling, Octave test/development scripts, embedded targets, and FreeDV protocol support.
It is also a good example of why package histories are not just download counts: the package is important because downstream radio applications, Linux distributions, and experimenters need an auditable open codec where proprietary alternatives such as AMBE and MELP are culturally and legally awkward.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
c2dec | cli | 全局可执行文件 | |
c2demo | cli | 全局可执行文件 | |
c2enc | cli | 全局可执行文件 | |
c2sim | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/drowe67/codec2
安装元数据
| 软件包键 | brew:codec2 |
|---|---|
| 版本 | 1.2.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/codec2 |
| 主页 | https://www.rowetel.com/?page_id=452 |
| 仓库 | https://github.com/drowe67/codec2 |
| 上游文档 | https://github.com/drowe67/codec2#readme |
| 许可证 | LGPL-2.1-only |
| 源码归档 | https://github.com/drowe67/codec2/archive/refs/tags/1.2.0.tar.gz |
| 构建依赖 | cmake |
| Bottle | 可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | codec2 |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
codec2 1.2.0-3
command line tools for handling Codec2 data
http://rowetel.com/codec2.html
sudo apt install codec2libcodec2-1.2 1.2.0-3
Codec2 runtime library
http://rowetel.com/codec2.html
sudo apt install libcodec2-1.2libcodec2-dev 1.2.0-3
Codec2 library development files
http://rowetel.com/codec2.html
sudo apt install libcodec2-devcodec2
nix profile install nixpkgs#codec2codec2 1.2.0-2build1
command line tools for handling Codec2 data
http://rowetel.com/codec2.html
sudo apt install codec2libcodec2-1.2 1.2.0-2build1
Codec2 runtime library
http://rowetel.com/codec2.html
sudo apt install libcodec2-1.2libcodec2-dev 1.2.0-2build1
Codec2 library development files
http://rowetel.com/codec2.html
sudo apt install libcodec2-devcodec2 1.2.0-r1
Open source speech codec designed for communications quality speech between 700 and 3200 bps
https://github.com/drowe67/codec2
sudo apk add codec2codec2-dev 1.2.0-r1
Open source speech codec designed for communications quality speech between 700 and 3200 bps (development files)
https://github.com/drowe67/codec2
sudo apk add codec2-devcodec2 1.2.0-9.fc44
Next-Generation Digital Voice for Two-Way Radio
http://rowetel.com/codec2.html
sudo dnf install codec2codec2-devel 1.2.0-9.fc44
Development files for Codec 2
http://rowetel.com/codec2.html
sudo dnf install codec2-develcodec2 1:1.2.0-2
Open source speech codec designed for communications quality speech between 450 and 3200 bit/s
https://github.com/drowe67/codec2
sudo pacman -S codec2codec2 1.2.0-2.5
Low bit rate speech codec
https://rowetel.com/codec2.html
sudo zypper install codec2codec2-devel 1.2.0-2.5
Development library for codec2
https://rowetel.com/codec2.html
sudo zypper install codec2-develcodec2-examples 1.2.0-2.5
Example code for Codec 2
https://rowetel.com/codec2.html
sudo zypper install codec2-exampleslibcodec2-1_2 1.2.0-2.5
Low bit rate speech codec
https://rowetel.com/codec2.html
sudo zypper install libcodec2-1_2来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.