Voice Recognition

PocketSphinx – speaker-independent continuous speech recognition engine

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
WhisperAutomatic speech recognition (system trained on 680,000 hours of data
whisper.cppRun Whisper locally with fast, efficient C/C++ speech recognition
FlashlightFast, flexible machine learning library written entirely in C++.
sherpa-onnxOffline speech recognition for many platforms and languages
KaldiC++ toolkit designed for speech recognition researchers.
FunASRVersatile speech recognition toolkit for real-world audio
faster-whisperFaster Whisper transcription with reduced memory use
SpeechBrainAll-in-one conversational AI toolkit based on PyTorch
HandyOffline speech-to-text application
ESPnetEnd-to-End speech processing toolkit
PocketSphinxLightweight speech recognition for embedded and mobile use
deepspeech.pytorchImplementation of DeepSpeech2 using Baidu Warp-CTC.
EpicenterTranscription application with global speech-to-text functionality
JuliusTwo-pass large vocabulary continuous speech recognition engine
Speech NoteWrite notes, transcribe speech, translate text and read content aloud
aTrainPrivate local transcription of recorded speech through a polished GUI
hyprwhsprNative speech-to-text designed for Arch / Omarchy
VocalinuxLocal voice dictation through a clean desktop interface
osttOpen Speech-to-Text
SimonFlexible speech recognition software

Read our verdict in the software roundup.


Best Free and Open Source Software 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.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted