macOS
brew install cmu-pocketsphinxlocal Homebrew formula metadata
sudo port install pocketsphinxMacPorts ports tree · audio/pocketsphinx/Portfile · source: api.github.com
brew
Lightweight speech recognition engine for mobile devices. Version 5.1.1 via Homebrew; verified 2026-06-06.
install
brew install cmu-pocketsphinxlocal Homebrew formula metadata
sudo port install pocketsphinxMacPorts ports tree · audio/pocketsphinx/Portfile · source: api.github.com
sudo apt install gstreamer1.0-pocketsphinxDebian stable package indexes · gstreamer1.0-pocketsphinx · source: deb.debian.org
sudo dnf install pocketsphinxFedora Rawhide package metadata · pocketsphinx · source: dl.fedoraproject.org
nix profile install nixpkgs#pocketsphinxnixpkgs package indexes · pkgs/by-name/po/pocketsphinx/package.nix · source: api.github.com
sudo zypper install gstreamer-plugin-pocketsphinxopenSUSE Tumbleweed package metadata · gstreamer-plugin-pocketsphinx · source: download.opensuse.org
scoop install extras/pocketsphinxScoop official bucket manifest trees · bucket/pocketsphinx.json · source: api.github.com
overview
Lightweight speech recognition engine for mobile devices
history
PocketSphinx is a compact open source speech recognizer from the CMU Sphinx family, distributed as a C library, command-line tools, and Python package.
The official README describes PocketSphinx as one of Carnegie Mellon University's open source large-vocabulary, speaker-independent continuous speech recognition engines. It also explains that the underlying algorithms and models are old but remain useful because they are compact and efficient.
The README traces lineage to Sphinx-II and older CMU systems released as free software, and credits David Huggins-Daines with creating PocketSphinx by adding speed and memory optimizations, fixed-point computation, JSGF support, portability, and a more coherent API.
PocketSphinx's adoption came from being usable offline and on constrained systems long before cloud speech APIs were routine. The input package facts show packaging across Homebrew, Debian/Ubuntu GStreamer integration, Fedora, MacPorts, Nix, Scoop, and openSUSE, while the official Python docs document `pip install pocketsphinx`.
The official README documents a `pocketsphinx` command that reads mono 16-bit PCM audio from standard input or files and outputs recognition results, along with subcommands for live recognition, single-utterance recognition, alignment, configuration, and sox integration. The Read the Docs site documents Python usage with `LiveSpeech`.
PocketSphinx is package-nerd significant because it packages a historically important offline speech recognizer across C, CLI, Python, audio I/O, models, and GStreamer-style integration. Its modern 5.x line also removed SphinxBase as a separate dependency, simplifying one of the classic packaging pain points.
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 |
|---|---|---|---|
pocketsphinx | cli | global executable | |
pocketsphinx_batch | cli | global executable | |
pocketsphinx_jsgf2fsg | cli | global executable | |
pocketsphinx_lm_convert | cli | global executable | |
pocketsphinx_lm_eval | cli | global executable | |
pocketsphinx_mdef_convert | cli | global executable | |
pocketsphinx_pitch | 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/cmusphinx/pocketsphinx
install metadata
| Package key | brew:cmu-pocketsphinx |
|---|---|
| Version | 5.1.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/cmu-pocketsphinx |
| Homepage | https://cmusphinx.github.io/ |
| Repository | https://github.com/cmusphinx/pocketsphinx |
| Upstream docs | https://cmusphinx.github.io/doc/pocketsphinx |
| License | BSD-2-Clause |
| Source archive | https://github.com/cmusphinx/pocketsphinx/archive/refs/tags/v5.1.1.tar.gz |
| Last updated | 2026-06-06T20:42:29Z |
| Pulse | updated |
| Build dependencies | cmake |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cmu-pocketsphinx |
| Aliases |
|
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
pocketsphinx
sudo port install pocketsphinxgstreamer1.0-pocketsphinx 0.8+5prealpha+1-15+b4
Speech recognition tool - GStreamer plugin
http://cmusphinx.sourceforge.net/
sudo apt install gstreamer1.0-pocketsphinxlibpocketsphinx-dev 0.8+5prealpha+1-15+b4
Speech recognition tool - front-end library development files
http://cmusphinx.sourceforge.net/
sudo apt install libpocketsphinx-devlibpocketsphinx3 0.8+5prealpha+1-15+b4
Speech recognition tool - front-end library
http://cmusphinx.sourceforge.net/
sudo apt install libpocketsphinx3pocketsphinx 0.8+5prealpha+1-15+b4
Speech recognition tool
http://cmusphinx.sourceforge.net/
sudo apt install pocketsphinxpocketsphinx-en-us 0.8+5prealpha+1-15
Speech recognition tool - US English language model
http://cmusphinx.sourceforge.net/
sudo apt install pocketsphinx-en-uspocketsphinx-testdata 0.8+5prealpha+1-15
Speech recognition tool - test data for pocketsphinx
http://cmusphinx.sourceforge.net/
sudo apt install pocketsphinx-testdataswig-pocketsphinx 0.8+5prealpha+1-15
Speech recognition tool - pocketsphinx swig helpers
http://cmusphinx.sourceforge.net/
sudo apt install swig-pocketsphinxpocketsphinx
nix profile install nixpkgs#pocketsphinxgstreamer1.0-pocketsphinx 0.8.0+real5prealpha+1-15ubuntu5
Speech recognition tool - GStreamer plugin
http://cmusphinx.sourceforge.net/
sudo apt install gstreamer1.0-pocketsphinxlibpocketsphinx-dev 0.8.0+real5prealpha+1-15ubuntu5
Speech recognition tool - front-end library development files
http://cmusphinx.sourceforge.net/
sudo apt install libpocketsphinx-devlibpocketsphinx3 0.8.0+real5prealpha+1-15ubuntu5
Speech recognition tool - front-end library
http://cmusphinx.sourceforge.net/
sudo apt install libpocketsphinx3pocketsphinx 0.8.0+real5prealpha+1-15ubuntu5
Speech recognition tool
http://cmusphinx.sourceforge.net/
sudo apt install pocketsphinxpocketsphinx-en-us 0.8.0+real5prealpha+1-15ubuntu5
Speech recognition tool - US English language model
http://cmusphinx.sourceforge.net/
sudo apt install pocketsphinx-en-uspocketsphinx-testdata 0.8.0+real5prealpha+1-15ubuntu5
Speech recognition tool - test data for pocketsphinx
http://cmusphinx.sourceforge.net/
sudo apt install pocketsphinx-testdataswig-pocketsphinx 0.8.0+real5prealpha+1-15ubuntu5
Speech recognition tool - pocketsphinx swig helpers
http://cmusphinx.sourceforge.net/
sudo apt install swig-pocketsphinxsource 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.