POCKETSPHINX_BATCH(1)
π POCKETSPHINX_BATCH β bestie edition
ok so this is pocketsphinx_batch(1), a General Commands Manual page, and it's literally the batch-mode girlie of the speech recognition world. no cap. let's get into it π
β¨ NAME β¨
pocketsphinx_batch β run speech recognition in batch mode. that's it, that's the whole vibe π¦
β¨ SYNOPSIS β¨
pocketsphinx_batch -ctl ctlfile -cepdir cepdir -cepext .mfc [ options ]...
β¨ DESCRIPTION β¨
okay so the whole point: you run speech recognition over a list of utterances, in batchmode. not one at a time, we're doing them all. main character energy fr fr π
a list of arguments follows β and it is LONG, bestie, so hydrate π
-adchdrβ size of audio file header in bytes (headers are ignored, we simply do not care about them)-adcinβ input is raw audio data-agcβ automatic gain control for c0. your options are'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 β yes, it's backwards, we don't make the rules π)-bestpathβ run bestpath (Dijkstra) search over word lattice (3rd pass)-bestpathlwβ language model probability weight for bestpath search-build_outdirsβ create missing subdirectories in output directory-cepdirβ files directory (prefixed to filespecs in control file)-cepextβ input files extension (suffixed to filespecs in control file)-ceplenβ number of components in the input feature vector-cmnβ cepstral mean normalization scheme. one of'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, no fr)-ctlβ file listing utterances to be processed-ctlcountβ no. of utterances to be processed (after skipping-ctloffsetentries)-ctlincrβ do every Nth line in the control file-ctloffsetβ no. of utterances at the beginning of-ctlfile to be skipped-ctmβ output in CTM file format (may require post-sorting)-debugβ level for debugging messages-dictβ pronunciation dictionary (lexicon) input file-dictcaseβ dictionary is case sensitive (NOTE: case insensitivity applies to ASCII characters only β read that again, bestie)-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-fsgctlβ file listing FSG file to use for each utterance-fsgdirβ directory for FSG files-fsgextβ extension for FSG files (including leading dot)-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.-hypβ output file name-hypsegβ output with segmentation file name-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-lmctlto use by default-lmnamectlβ file listing LM name to use for each utterance-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-1for no pruning)-maxwpfβ maximum number of distinct word exits at each frame (or-1for 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-mixwfile)-mllrβ transformation to apply to means and variances-mllrctlβ file listing MLLR transforms to use for each utterance-mllrdirβ directory for MLLR transforms-mllrextβ extension for MLLR transforms (including leading dot)-mmapβ use memory-mapped I/O (if possible) for model files-nbestβ number of N-best hypotheses to write to-nbestdir(0 for no N-best)-nbestdirβ for writing N-best hypothesis lists-nbestextβ extension for N-best hypothesis list files-ncepβ number of cep coefficients-nfftβ size of FFT-nfiltβ number of filter banks-nwpenβ new word transition penalty-outlatbeamβ minimum posterior probability for output lattice nodes-outlatdirβ for dumping word lattices-outlatextβ filename extension for dumping word lattices-outlatfmtβ format for dumping word lattices (s3orhtk)-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-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-seninβ input is senone score dump files-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-38or0-12/13-25/26-38)-tmatβ state transition matrix input file-tmatfloorβ HMM state transition probability floor (applied to-tmatfile)-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, orhtk)-unit_areaβ normalize mel filters to unit area-upperfβ upper edge of filters-uwβ unigram weight-varβ gaussian variances input file-varfloorβ mixture gaussian variance floor (applied to data from-varfile)-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
πΈ how to actually do the thing
to do batchmode recognition, you will need to specify a control file, using -ctl. this is a simple text file containing one entry per line. each entry is the name of an input file relative to the -cepdir directory, and without the filename extension (which is given in the -cepext argument). yes queen, the extension lives somewhere else, don't @ me π«Ά
if you are using acoustic feature files as input (see sphinx_fe(1) for information on how to generate these β go read it, bestie), you can also specify a subpart of a file, using the following format:
FILENAME START-FRAME END-FRAME UTTERANCE-ID
β¨ AUTHOR β¨
written by numerous people at CMU from 1994 onwards. this manual page by David Huggins-Daines <dhdaines@gmail.com> π
β¨ COPYRIGHT β¨
copyright Β© 1994-2016 Carnegie Mellon University. see the file LICENSE included with this package for more information.
β¨ SEE ALSO β¨
pocketsphinx(1), sphinx_fe(1).
ok that's the whole page bestie, you ate that πβ¨
sign-off corner: this page is POCKETSPHINX_BATCH(1) from the General Commands Manual, source/version dated 2007-08-27. go forth and decode, icon π
π
π¦ where this page comes from
- nixpkgs unstable: pocketsphinx 5.1.1
- ubuntu resolute: pocketsphinx 5.0.4-3ubuntu1 Β· BSD-2-Clause
- ubuntu stonking: pocketsphinx 5.1.1-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms