2 # Copyright (c) 2001-2003 Sun Microsystems, Inc.
5 # See the file "license.terms" for information on usage and
6 # redistribution of this file, and for a DISCLAIMER OF ALL
9 # This test script first runs the FreeTTS with our first utterance file,
10 # dumps the wave in text form, and compares (diff) it with our standard
11 # wave form file for our first utterance (first.wave.txt). This test will
12 # tell you how many lines differ from the standard wave form file.
14 # (Reminder: our 'first utterance file' is "Hello world. This is Duke
15 # coming to you from inside the java virtual machine. I'm happy to have
16 # a voice because I've been meaning to tell you how much I care.")
19 # Input: input_file flite_wave_file
21 if [ -f wavetest.res ]; then
25 if [ -f wavetest.diff ]; then
29 java -jar ../lib/freetts.jar -voice kevin -silent -dumpASCII wavetest.res.t -file $1
31 sed < wavetest.res.t > wavetest.res s/
\r//g
32 diff -b wavetest.res $2 > wavetest.diff
34 wc wavetest.diff | awk '
37 printf("%s differences in wavetest.res. Test PASSED\n", $1);
39 printf("%s differences in wavetest.res. Test FAILED\n", $1);