#!/bin/sh
S2BATCH=./sphinx2-continuous
HMM=/cygdrive/c/sphinx/sphinx2/share/sphinx2/model/hmm/6k
TASK=/cygdrive/c/sphinx/sphinx2/share/sphinx2/model/lm/current
CTLFILE=/cygdrive/c/sphinx/sphinx2/share/sphinx2/model/lm/current/current.ctl

echo " "
echo "sphinx2-test"
echo "Run CMU Sphinx2 in Batch mode to decode an utterance."
echo " "

$S2BATCH -verbose 9 -matchfn ${TASK}/output.txt -nbestdir ${TASK} -nbest 3 -adcin TRUE -adcext 16k -ctlfn ${CTLFILE} -ctloffset 0 -ctlcount 100000000 -datadir ${TASK} -agcmax TRUE -langwt 6.5 -fwdflatlw 8.5 -rescorelw 9.5 -ugwt 0.5 -fillpen 1e-10 -silpen 0.005 -inspen 0.65 -top 1 -topsenfrm 3 -topsenthresh -70000 -beam 2e-06 -npbeam 2e-06 -lpbeam 2e-05 -lponlybeam 0.0005 -nwbeam 0.0005 -fwdflat FALSE -fwdflatbeam 1e-08 -fwdflatnwbeam 0.0003 -bestpath TRUE -kbdumpdir ${TASK} -lmfn ${TASK}/current.lm -dictfn ${TASK}/current.dic -noisedict ${HMM}/noisedict -phnfn ${HMM}/phone -mapfn ${HMM}/map -hmmdir ${HMM} -hmmdirlist ${HMM} -8bsen TRUE -sendumpfn ${HMM}/sendump -cbdir ${HMM}
