3 # This test script first runs the FreeTTS with our first utterance file,
4 # dumps the LPC residual in text form, and compares (diff) it with our
5 # standard LPC file for our first utterance (first.wave.txt). This test will
6 # tell you how many lines differ from the standard LPC file.
9 if [ -f lpctest.res ]; then
13 if [ -f lpctest.diff ]; then
17 java -Dcom.sun.speech.freetts.outputLPC=true -jar ../lib/freetts.jar \
18 -voice kevin -silent -file wave/08-01-01.wave.text | grep -v "^#" > \
21 diff lpctest.res wave/flite1.1.lpcres.txt > lpctest.diff
23 wc lpctest.diff | awk '
26 printf("%s differences in lpctest.diff. Test PASSED\n", $1);
28 printf("%s differences in lpctest.diff. Test FAILED\n", $1);