Initial import to Tizen
[profile/ivi/sphinxbase.git] / test / regression / test-sphinx_fe-ctl.sh
1 #!/bin/sh
2 . ./testfuncs.sh
3
4 tmpout="test-sphinx_fe-ctl.out"
5
6 echo "WAVE2FEAT CTL/WAV/SPH TEST"
7 run_program sphinx_fe/sphinx_fe \
8 -samprate 11025 \
9 -frate 105 \
10 -wlen 0.024 \
11 -alpha 0.97 \
12 -ncep 13 \
13 -nfft 512 \
14 -nfilt 36 \
15 -upperf 5400 \
16 -lowerf 130 \
17 -blocksize 262500 \
18 -verbose yes \
19 -c $tests/regression/chan3.ctl \
20 -di $tests/regression \
21 -do . \
22 -eo mfc \
23 -input_endian little \
24 > $tmpout 2>&1 
25
26 if ! cmp chan3.wav.mfc chan3.raw.mfc; then
27     fail "WAV and RAW compare"
28 fi
29
30 if ! cmp chan3.2chan.wav.mfc chan3.wav.mfc; then
31     fail "WAV2 and WAV compare"
32 fi
33
34 if ! cmp chan3.raw.mfc chan3.sph.mfc; then
35     fail "SPH and RAW compare"
36 fi
37
38 run_program sphinx_cepview/sphinx_cepview \
39 -i 13 \
40 -d 13 \
41 -f chan3.wav.mfc \
42 > test-sphinx_fe.cepview 2>>$tmpout
43
44 compare_table "WAVE2FEAT test" test-sphinx_fe.cepview $tests/regression/chan3.cepview 0.1