www.pudn.com > freetts-1.2beta2-tst.zip > lpctest.sh
#!/bin/sh
#
# This test script first runs the FreeTTS with our first utterance file,
# dumps the LPC residual in text form, and compares (diff) it with our
# standard LPC file for our first utterance (first.wave.txt). This test will
# tell you how many lines differ from the standard LPC file.
#
if [ -f lpctest.res ]; then
rm lpctest.res
fi
if [ -f lpctest.diff ]; then
rm lpctest.diff
fi
java -Dcom.sun.speech.freetts.outputLPC=true -jar ../lib/freetts.jar \
-voice kevin -silent -file wave/08-01-01.wave.text | grep -v "^#" > \
lpctest.res
diff lpctest.res wave/flite1.1.lpcres.txt > lpctest.diff
wc lpctest.diff | awk '
{
if ($1 == 0) {
printf("%s differences in lpctest.diff. Test PASSED\n", $1);
} else {
printf("%s differences in lpctest.diff. Test FAILED\n", $1);
}
}
'