macOS
brew install codec2local Homebrew formula metadata
sudo port install codec2MacPorts ports tree · audio/codec2/Portfile · source: api.github.com
brew
Open source speech codec. Version 1.2.0 via Homebrew; verified from local package data.
install
brew install codec2local Homebrew formula metadata
sudo port install codec2MacPorts ports tree · audio/codec2/Portfile · source: api.github.com
sudo apk add codec2Alpine Linux edge package indexes · codec2 · source: dl-cdn.alpinelinux.org
sudo apt install codec2Debian stable package indexes · codec2 · source: deb.debian.org
sudo dnf install codec2Fedora Rawhide package metadata · codec2 · source: dl.fedoraproject.org
nix profile install nixpkgs#codec2nixpkgs package indexes · pkgs/by-name/co/codec2/package.nix · source: api.github.com
sudo pacman -S codec2Arch Linux sync databases · codec2 · source: geo.mirror.pkgbuild.com
sudo zypper install codec2openSUSE Tumbleweed package metadata · codec2 · source: download.opensuse.org
overview
Open source speech codec
history
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.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
c2dec | cli | global executable | |
c2demo | cli | global executable | |
c2enc | cli | global executable | |
c2sim | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/drowe67/codec2
install metadata
| Package key | brew:codec2 |
|---|---|
| Version | 1.2.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/codec2 |
| Homepage | https://www.rowetel.com/?page_id=452 |
| Repository | https://github.com/drowe67/codec2 |
| Upstream docs | https://github.com/drowe67/codec2#readme |
| License | LGPL-2.1-only |
| Source archive | https://github.com/drowe67/codec2/archive/refs/tags/1.2.0.tar.gz |
| Build dependencies | cmake |
| Bottle | available (on 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 | not defined |
| Service | none declared |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
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_2source trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.