POCKETSPHINX_CONTINUOUS(1)

πŸ“¦ version 0.8+5prealpha+1, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing

πŸ’– POCKETSPHINX_CONTINUOUS πŸ’–

okay bestie, gather round, because this is pocketsphinx_continuous, a General Commands Manual page from way back, and it's literally the vibe of "listen to me talk and I'll write it down." no cap.


✨ NAME ✨

pocketsphinx_continuous β€” run speech recognition in continuous listening mode πŸŽ§πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

pocketsphinx_continuous [-infile filename.wav ] [ -inmic yes ] [ options ]...

🌸 DESCRIPTION 🌸

so here's the tea: this program opens an audio device or a file and just… waits. patiently. for speech. the moment it detects an utterance, it does speech recognition on it. that's it, that's the whole personality. 🫢

to record from the microphone and decode, you use

-inmic yes

to decode a 16kHz 16-bit mono WAV file, you use

-infile filename.wav

and you can also specify -lm or -fsg or -kws, depending on whether you're using a statistical language model, a finite-state grammar, or you're out here looking for a keyphrase. pick your fighter. πŸ’…


πŸ’… OPTIONS πŸ’…

  • -adcdev β€” of audio device to use for input.
  • -agc β€” Automatic gain control for c0 ('max', 'emax', 'noise', or 'none')
  • -agcthresh β€” Initial threshold for automatic gain control
  • -allphone β€” phoneme decoding with phonetic lm
  • -allphone_ci β€” Perform phoneme decoding with phonetic lm and context-independent units only
  • -alpha β€” Preemphasis parameter
  • -argfile β€” file giving extra arguments.
  • -ascale β€” Inverse of acoustic model scale for confidence score calculation
  • -aw β€” Inverse weight applied to acoustic scores.
  • -backtrace β€” Print results and backtraces to log file.
  • -beam β€” Beam width applied to every frame in Viterbi search (smaller values mean wider beam)
  • -bestpath β€” Run bestpath (Dijkstra) search over word lattice (3rd pass)
  • -bestpathlw β€” Language model probability weight for bestpath search
  • -ceplen β€” Number of components in the input feature vector
  • -cmn β€” Cepstral mean normalization scheme ('current', 'prior', or 'none')
  • -cmninit β€” Initial values (comma-separated) for cepstral mean when 'prior' is used
  • -compallsen β€” Compute all senone scores in every frame (can be faster when there are many senones)
  • -debug β€” level for debugging messages
  • -dict β€” pronunciation dictionary (lexicon) input file
  • -dictcase β€” Dictionary is case sensitive (NOTE: case insensitivity applies to ASCII characters only)
  • -dither β€” Add 1/2-bit noise
  • -doublebw β€” Use double bandwidth filters (same center freq)
  • -ds β€” Frame GMM computation downsampling ratio
  • -fdict β€” word pronunciation dictionary input file
  • -feat β€” Feature stream type, depends on the acoustic model
  • -featparams β€” containing feature extraction parameters.
  • -fillprob β€” Filler word transition probability
  • -frate β€” Frame rate
  • -fsg β€” format finite state grammar file
  • -fsgusealtpron β€” Add alternate pronunciations to FSG
  • -fsgusefiller β€” Insert filler words at each state.
  • -fwdflat β€” Run forward flat-lexicon search over word lattice (2nd pass)
  • -fwdflatbeam β€” Beam width applied to every frame in second-pass flat search
  • -fwdflatefwid β€” Minimum number of end frames for a word to be searched in fwdflat search
  • -fwdflatlw β€” Language model probability weight for flat lexicon (2nd pass) decoding
  • -fwdflatsfwin β€” Window of frames in lattice to search for successor words in fwdflat search
  • -fwdflatwbeam β€” Beam width applied to word exits in second-pass flat search
  • -fwdtree β€” Run forward lexicon-tree search (1st pass)
  • -hmm β€” containing acoustic model files.
  • -infile β€” file to transcribe.
  • -inmic β€” Transcribe audio from microphone.
  • -input_endian β€” Endianness of input data, big or little, ignored if NIST or MS Wav
  • -jsgf β€” grammar file
  • -keyphrase β€” to spot
  • -kws β€” file with keyphrases to spot, one per line
  • -kws_delay β€” Delay to wait for best detection score
  • -kws_plp β€” Phone loop probability for keyword spotting
  • -kws_threshold β€” Threshold for p(hyp)/p(alternatives) ratio
  • -latsize β€” Initial backpointer table size
  • -lda β€” containing transformation matrix to be applied to features (single-stream features only)
  • -ldadim β€” Dimensionality of output of feature transformation (0 to use entire matrix)
  • -lifter β€” Length of sin-curve for liftering, or 0 for no liftering.
  • -lm β€” trigram language model input file
  • -lmctl β€” a set of language model
  • -lmname β€” language model in -lmctl to use by default
  • -logbase β€” Base in which all log-likelihoods calculated
  • -logfn β€” to write log messages in
  • -logspec β€” Write out logspectral files instead of cepstra
  • -lowerf β€” Lower edge of filters
  • -lpbeam β€” Beam width applied to last phone in words
  • -lponlybeam β€” Beam width applied to last phone in single-phone words
  • -lw β€” Language model probability weight
  • -maxhmmpf β€” Maximum number of active HMMs to maintain at each frame (or -1 for no pruning)
  • -maxwpf β€” Maximum number of distinct word exits at each frame (or -1 for no pruning)
  • -mdef β€” definition input file
  • -mean β€” gaussian means input file
  • -mfclogdir β€” to log feature files to
  • -min_endfr β€” Nodes ignored in lattice construction if they persist for fewer than N frames
  • -mixw β€” mixture weights input file (uncompressed)
  • -mixwfloor β€” Senone mixture weights floor (applied to data from -mixw file)
  • -mllr β€” transformation to apply to means and variances
  • -mmap β€” Use memory-mapped I/O (if possible) for model files
  • -ncep β€” Number of cep coefficients
  • -nfft β€” Size of FFT
  • -nfilt β€” Number of filter banks
  • -nwpen β€” New word transition penalty
  • -pbeam β€” Beam width applied to phone transitions
  • -pip β€” Phone insertion penalty
  • -pl_beam β€” Beam width applied to phone loop search for lookahead
  • -pl_pbeam β€” Beam width applied to phone loop transitions for lookahead
  • -pl_pip β€” Phone insertion penalty for phone loop
  • -pl_weight β€” Weight for phoneme lookahead penalties
  • -pl_window β€” Phoneme lookahead window size, in frames
  • -rawlogdir β€” to log raw audio files to
  • -remove_dc β€” Remove DC offset from each frame
  • -remove_noise β€” Remove noise with spectral subtraction in mel-energies
  • -remove_silence β€” Enables VAD, removes silence frames from processing
  • -round_filters β€” Round mel filter frequencies to DFT points
  • -samprate β€” Sampling rate
  • -seed β€” Seed for random number generator; if less than zero, pick our own
  • -sendump β€” dump (compressed mixture weights) input file
  • -senlogdir β€” to log senone score files to
  • -senmgau β€” to codebook mapping input file (usually not needed)
  • -silprob β€” Silence word transition probability
  • -smoothspec β€” Write out cepstral-smoothed logspectral files
  • -svspec β€” specification (e.g., 24,0-11/25,12-23/26-38 or 0-12/13-25/26-38)
  • -time β€” Print word times in file transcription.
  • -tmat β€” state transition matrix input file
  • -tmatfloor β€” HMM state transition probability floor (applied to -tmat file)
  • -topn β€” Maximum number of top Gaussians to use in scoring.
  • -topn_beam β€” Beam width used to determine top-N Gaussians (or a list, per-feature)
  • -toprule β€” rule for JSGF (first public rule is default)
  • -transform β€” Which type of transform to use to calculate cepstra (legacy, dct, or htk)
  • -unit_area β€” Normalize mel filters to unit area
  • -upperf β€” Upper edge of filters
  • -uw β€” Unigram weight
  • -vad_postspeech β€” Num of silence frames to keep after from speech to silence.
  • -vad_prespeech β€” Num of speech frames to keep before silence to speech.
  • -vad_startspeech β€” Num of speech frames to trigger vad from silence to speech.
  • -vad_threshold β€” Threshold for decision between noise and silence frames. Log-ratio between signal level and noise level.
  • -var β€” gaussian variances input file
  • -varfloor β€” Mixture gaussian variance floor (applied to data from -var file)
  • -varnorm β€” Variance normalize each utterance (only if CMN == current)
  • -verbose β€” Show input filenames
  • -warp_params β€” defining the warping function
  • -warp_type β€” Warping function type (or shape)
  • -wbeam β€” Beam width applied to word exits
  • -wip β€” Word insertion penalty
  • -wlen β€” Hamming window length

πŸ‘‘ AUTHOR πŸ‘‘

Written by numerous people at CMU from 1994 onwards. This manual page by David Huggins-Daines <dhuggins@cs.cmu.edu> πŸ’Œ


Copyright Β© 1994-2016 Carnegie Mellon University. See the file LICENSE included with this package for more information.


πŸŽ€ SEE ALSO πŸŽ€

pocketsphinx_batch(1), sphinx_fe(1).


okay that's the whole thing, bestie, no crumbs left πŸ“ β€” this was the POCKETSPHINX_CONTINUOUS(1) page from the General Commands Manual, dated 2016-04-01, and it absolutely ate. go forth and transcribe. πŸ’œβœ¨πŸ¦‹