1#!/bin/sh 2. ./testfuncs.sh 3 4tmpout="test-decode-mode5.out" 5 6echo "DECODE MODE 5 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-op_mode 5 \ 22-subvqbeam 1e-02 \ 23-epl 4 \ 24-fillprob 0.02 \ 25-feat 1s_c_d_dd \ 26-lw 9.5 \ 27-maxwpf 1 \ 28-beam 1e-40 \ 29-pbeam 1e-30 \ 30-wbeam 1e-20 \ 31-maxhmmpf 1500 \ 32-wend_beam 1e-1 \ 33-ci_pbeam 1e-5 \ 34-ds 2 \ 35-tighten_factor 0.4" 36 37lmargs="-lm $an4lm/an4.ug.lm.DMP" 38 39clsargs="-lmctlfn $an4lm/an4.ug.cls.lmctl \ 40-ctl_lm $an4lm/an4.ctl_lm" 41 42run_program sphinx3_decode $margs $lmargs > $tmpout 2>&1 43grep "FWDVIT" $tmpout 44grep "FWDXCT" $tmpout 45 46if grep "FWDVIT" $tmpout |grep "P I T T S B U R G H" > /dev/null 2>&1; then 47 pass "DECODE MODE 5 test" 48else 49 fail "DECODE MODE 5 test" 50fi 51 52 53 54