1#!/bin/sh 2. ./testfuncs.sh 3 4tmpout="test-decode-s3cont.out" 5 6echo "DECODE S3CONT TEST" 7echo "YOU SHOULD SEE THE RECOGNITION RESULT 'P I T T S B U R G H'" 8 9margs="-mdef $hub4am/mdef \ 10-fdict $an4lm/filler.dict \ 11-dict $an4lm/an4.dict \ 12-mean $hub4am/means \ 13-var $hub4am/variances \ 14-mixw $hub4am/mixture_weights \ 15-tmat $hub4am/transition_matrices \ 16-ctl $an4lm/an4.ctl \ 17-cepdir $an4lm/ \ 18-agc none \ 19-varnorm no \ 20-cmn current \ 21-maxwpf 1 \ 22-beam 1e-40 \ 23-pbeam 1e-30 \ 24-wbeam 1e-20 \ 25-maxhmmpf 1500 \ 26-wend_beam 1e-1 \ 27-feat 1s_c_d_dd \ 28-senmgau .s3cont." 29 30lmargs="-lm $an4lm/an4.ug.lm.DMP" 31 32clsargs="-lmctlfn $an4lm/an4.ug.cls.lmctl \ 33-ctl_lm $an4lm/an4.ctl_lm" 34 35rm -f $tmpout 36 37run_program sphinx3_decode $margs $lmargs > $tmpout 2>&1 38grep "FWDVIT" $tmpout 39grep "FWDXCT" $tmpout 40 41#Seems to me a situation where, the decode cannot be tuned to P I T T 42#S B U R G H in this case. Just try to run through it now. 43 44if grep "FWDVIT" $tmpout |grep "P I T G S B U R G H" > /dev/null 2>&1; then 45 pass "DECODE S3CONT test" 46else 47 fail "DECODE S3CONT test" 48fi 49 50 51 52