Automic VaultAutomic Vault

brew

Install codec2 with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Open source speech codec. Version 1.2.0 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install codec2

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install codec2

MacPorts ports tree · audio/codec2/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add codec2

Alpine Linux edge package indexes · codec2 · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install codec2

Debian stable package indexes · codec2 · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install codec2

Fedora Rawhide package metadata · codec2 · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#codec2

nixpkgs package indexes · pkgs/by-name/co/codec2/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S codec2

Arch Linux sync databases · codec2 · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install codec2

openSUSE Tumbleweed package metadata · codec2 · source: download.opensuse.org

overview

Package summary

Open source speech codec

Commands and aliases

  • c2dec
  • c2demo
  • c2enc
  • c2sim

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2009-08-21: David Rowe publicly announces the open-source low-rate speech codec project.
  • 2012: FreeDV 1600 mode uses Codec 2 1300 according to the FreeDV mode table.
  • 2016: FreeDV 2400A and 2400B VHF modes use Codec 2 1300.
  • 2017: FreeDV 700C and 800XA modes use Codec 2 700C.
  • 2018: FreeDV 700D uses Codec 2 700C.
  • 2020: FreeDV 700E appears in the official FreeDV mode table.
  • 2023-07: Current README says the repo was refactored and older code moved to codec2-dev.
  • 2023-07-24: Codec2 1.2.0 release published in the current GitHub repository.

Related projects

  • FreeDV is the most closely related project and is described by the README and Rowetel page as an open-source digital voice protocol integrating Codec 2, modems, and FEC. The repository also references `codec2-dev` for older code, `drowe67/LPCNet` for FreeDV 2020 support, the SM1000 FreeDV adaptor, and modem components such as OFDM, FDMDV, COHPSK, FSK, and LDPC utilities.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 12 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
c2deccliglobal executable
c2democliglobal executable
c2enccliglobal executable
c2simcliglobal executable

freshness

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

page generated2026-07-08
manager version1.2.0
manager updated
local dataok
upstreamcurrent
latest detected1.2.0

https://github.com/drowe67/codec2

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:codec2
Version1.2.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/codec2
Homepagehttps://www.rowetel.com/?page_id=452
Repositoryhttps://github.com/drowe67/codec2
Upstream docshttps://github.com/drowe67/codec2#readme
LicenseLGPL-2.1-only
Source archivehttps://github.com/drowe67/codec2/archive/refs/tags/1.2.0.tar.gz
Build dependenciescmake
Bottleavailable (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-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecodec2
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

codec2 1.2.0-3

command line tools for handling Codec2 data

http://rowetel.com/codec2.html

sudo apt install codec2
  • Section: sound
  • Architecture: amd64
  • 2 dependencies
  • normalized package name match
  • Matched by: Codec2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: codec2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libcodec2-1.2 1.2.0-3

Codec2 runtime library

http://rowetel.com/codec2.html

sudo apt install libcodec2-1.2
  • Section: libs
  • Architecture: amd64
  • Source Package: codec2
  • 1 dependencies
  • normalized package name match
  • Matched by: Codec2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libcodec2-1.2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libcodec2-dev 1.2.0-3

Codec2 library development files

http://rowetel.com/codec2.html

sudo apt install libcodec2-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: codec2
  • 1 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Codec2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libcodec2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

codec2

nix profile install nixpkgs#codec2
  • normalized package name match
  • Matched by: Codec2
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/co/codec2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

codec2 1.2.0-2build1

command line tools for handling Codec2 data

http://rowetel.com/codec2.html

sudo apt install codec2
  • Section: universe/sound
  • Architecture: amd64
  • 2 dependencies
  • normalized package name match
  • Matched by: Codec2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: codec2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libcodec2-1.2 1.2.0-2build1

Codec2 runtime library

http://rowetel.com/codec2.html

sudo apt install libcodec2-1.2
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: codec2
  • 1 dependencies
  • normalized package name match
  • Matched by: Codec2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libcodec2-1.2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libcodec2-dev 1.2.0-2build1

Codec2 library development files

http://rowetel.com/codec2.html

sudo apt install libcodec2-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: codec2
  • 1 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Codec2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libcodec2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

codec2 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 codec2
  • License: LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: codec2
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Codec2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: codec2 from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

codec2-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-dev
  • License: LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: codec2
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Codec2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: codec2-dev from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
dnf95%

codec2 1.2.0-9.fc44

Next-Generation Digital Voice for Two-Way Radio

http://rowetel.com/codec2.html

sudo dnf install codec2
  • License: LGPL-2.1-only
  • Category: Unspecified
  • Architecture: i686
  • Source Package: codec2
  • 5 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Codec2
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: codec2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

codec2-devel 1.2.0-9.fc44

Development files for Codec 2

http://rowetel.com/codec2.html

sudo dnf install codec2-devel
  • License: LGPL-2.1-only
  • Category: Unspecified
  • Architecture: i686
  • Source Package: codec2
  • 4 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Codec2
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: codec2-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

codec2 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 codec2
  • License: LGPL2.1
  • Architecture: x86_64
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Codec2
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: codec2 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

codec2 1.2.0-2.5

Low bit rate speech codec

https://rowetel.com/codec2.html

sudo zypper install codec2
  • License: LGPL-2.1-only
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: codec2
  • 3 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Codec2
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: codec2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

codec2-devel 1.2.0-2.5

Development library for codec2

https://rowetel.com/codec2.html

sudo zypper install codec2-devel
  • License: LGPL-2.1-only
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: codec2
  • 2 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Codec2
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: codec2-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

codec2-examples 1.2.0-2.5

Example code for Codec 2

https://rowetel.com/codec2.html

sudo zypper install codec2-examples
  • License: LGPL-2.1-only
  • Category: Productivity/Hamradio/Other
  • Architecture: noarch
  • Source Package: codec2
  • 1 provides
  • normalized package name match
  • Matched by: Codec2
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: codec2-examples from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libcodec2-1_2 1.2.0-2.5

Low bit rate speech codec

https://rowetel.com/codec2.html

sudo zypper install libcodec2-1_2
  • License: LGPL-2.1-only
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: codec2
  • 3 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Codec2
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libcodec2-1_2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

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