Initial import to Tizen
[profile/ivi/sphinxbase.git] / test / regression / test-sphinx_fe-dct.sh
1 #!/bin/sh
2 . ./testfuncs.sh
3
4 tmpout="test-sphinx_fe-dct.out"
5
6 echo "WAVE2FEAT-DCT INVERTIBLE TEST"
7 run_program sphinx_fe/sphinx_fe \
8 -transform dct \
9 -cep2spec yes \
10 -nfilt 36 \
11 -i $tests/regression/chan3.mfc \
12 -o test-sphinx_fe-dct.logspec.out  \
13 > $tmpout 2>&1 
14
15 run_program sphinx_fe/sphinx_fe \
16 -transform dct \
17 -spec2cep yes \
18 -nfilt 36 \
19 -i test-sphinx_fe-dct.logspec.out  \
20 -o test-sphinx_fe-dct.mfc.out  \
21 >> $tmpout 2>&1 
22
23 run_program sphinx_cepview/sphinx_cepview \
24 -i 13 \
25 -d 13 \
26 -f test-sphinx_fe-dct.mfc.out \
27 > test-sphinx_fe-dct.cepview.out 2>>$tmpout
28
29 compare_table "WAVE2FEAT-DCT INVERTIBLE test" test-sphinx_fe-dct.cepview.out \
30     $tests/regression/chan3.cepview