PocketSphinx is a compact, speaker-independent continuous speech recognition engine originating from Carnegie Mellon University’s CMU Sphinx work.
Unlike newer neural speech recognition systems that depend on large models and substantial computational resources, PocketSphinx uses established statistical speech recognition techniques whose relatively modest resource requirements remain useful for embedded applications, offline command recognition, constrained hardware and specialised recognition tasks.
The project provides both a standalone command-line program and programming interfaces for applications needing direct control of decoding. It can recognise complete utterances, process live audio in speech segments and perform forced alignment against known text. Current PocketSphinx also incorporates functionality that was previously supplied separately by SphinxBase.
This is free and open source software.
Key Features
- Large-vocabulary, speaker-independent continuous speech recognition using compact acoustic and language models.
- Designed to operate efficiently where memory and processing resources are limited.
- Completely offline recognition without sending recorded speech to external services.
- Command-line program for decoding audio files and standard input streams.
- Live recognition mode that detects speech segments and processes them individually.
- Single-utterance mode for treating each supplied recording as one recognition unit.
- Forced alignment of recorded speech against a supplied sequence of words.
- Optional phone-level alignment for obtaining finer-grained timing information.
- State-level alignment for applications requiring detailed acoustic model positioning.
- Recognition results can include start times, durations, probabilities and recognised text.
- Line-delimited JSON output simplifies integration with scripts and data-processing tools.
- Configurable acoustic models, pronunciation dictionaries and language models.
- JSGF grammar support for applications built around constrained command vocabularies.
- C API for integrating speech recognition directly into native applications.
- Python bindings provide access to the recognizer from Python applications and scripts.
- Configuration can be exported as JSON and subsequently loaded for reproducible setups.
- Includes facilities for determining suitable SoX parameters for preparing recognition input.
- Can receive microphone audio through external capture tools such as SoX.
Website: github.com/cmusphinx/pocketsphinx
Support:
Developer: David Huggins-Daines (current maintainer) and many contributors
License: BSD 2-Clause “Simplified” License
PocketSphinx is written in C. Learn C with our recommended free books and free tutorials.
Related Software
| Speech Recognition Tools | |
|---|---|
| Whisper | Automatic speech recognition (system trained on 680,000 hours of data |
| whisper.cpp | Run Whisper locally with fast, efficient C/C++ speech recognition |
| Flashlight | Fast, flexible machine learning library written entirely in C++. |
| sherpa-onnx | Offline speech recognition for many platforms and languages |
| Kaldi | C++ toolkit designed for speech recognition researchers. |
| FunASR | Versatile speech recognition toolkit for real-world audio |
| faster-whisper | Faster Whisper transcription with reduced memory use |
| SpeechBrain | All-in-one conversational AI toolkit based on PyTorch |
| Handy | Offline speech-to-text application |
| ESPnet | End-to-End speech processing toolkit |
| PocketSphinx | Lightweight speech recognition for embedded and mobile use |
| deepspeech.pytorch | Implementation of DeepSpeech2 using Baidu Warp-CTC. |
| Epicenter | Transcription application with global speech-to-text functionality |
| Julius | Two-pass large vocabulary continuous speech recognition engine |
| Speech Note | Write notes, transcribe speech, translate text and read content aloud |
| aTrain | Private local transcription of recorded speech through a polished GUI |
| hyprwhspr | Native speech-to-text designed for Arch / Omarchy |
| Vocalinux | Local voice dictation through a clean desktop interface |
| ostt | Open Speech-to-Text |
| Simon | Flexible speech recognition software |
Read our verdict in the software roundup.
Explore our carefully curated directory of recommended free and open source software, covering every major software category.The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more. Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form. |


Please read our Comment Policy before commenting.