#!/bin/sh
S2BATCH=/usr/local/bin/pocketsphinx_continuous
HMM=/usr/local/share/pocketsphinx/model/hmm/wsj0
TASK=/usr/local/share/pocketsphinx/model/lm/turtle
CTLFILE=/usr/local/share/pocketsphinx/model/lm/turtle/turtle.ctl

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

$S2BATCH -adcin yes \
    -cepext .16k \
    -samprate 16000 \
    -agc none \
    -fwdflat no -bestpath no \
    -lm ${TASK}/turtle.lm \
    -dict ${TASK}/turtle.dic \
    -hmm ${HMM} \
    -mmap yes

echo ""
echo "TEST FINISHED"
echo "If you want to log the output to a file, add the flag"
echo "-logfn <logfilename> to this script and rerun"
