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 -ctloffset entries)
  • -ctlincr β€” do every Nth line in the control file
  • -ctloffset β€” no. of utterances at the beginning of -ctl file 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 -lmctl to 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 -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
  • -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 (s3 or htk)
  • -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-38 or 0-12/13-25/26-38)
  • -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
  • -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

🌸 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 Β© 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