update standards version
[debian/freetts] / tests / utteranceTest.sh
1 #!/bin/sh
2 # Copyright (c) 2001-2003 Sun Microsystems, Inc.
3 # All Rights Reserved.
4
5 # See the file "license.terms" for information on usage and
6 # redistribution of this file, and for a DISCLAIMER OF ALL 
7 # WARRANTIES.
8 #
9 #
10 # This test script first runs the FreeTTS with our first utterance file,
11 # dumps the wave in text form, and compares (diff) it with our standard 
12 # wave form file for our first utterance (first.wave.txt). This test will
13 # tell you how many lines differ from the standard wave form file.
14 #
15 # (Reminder: our 'first utterance file' is "Hello world.  This is Duke 
16 # coming to you from inside the java virtual machine. I'm happy to have
17 # a voice because I've been meaning to tell you how much I care.")
18 #
19
20 # Input: input_file flite_time_wave_file
21
22 REF_TMP=utterance.ref.res
23 NEW=utterance.res
24
25
26 if [ -f $NEW ]; then
27         rm $NEW
28 fi
29
30 if [ -f $1.diff ]; then
31         rm $1.diff
32 fi
33
34 java -jar ../lib/freetts.jar -voice kevin -dumpRelations -silent -file $1 > $NEW.t
35 sed < $NEW.t > $NEW s/\r//g
36 rm -f $REF_TMP
37 cp $2 $REF_TMP
38 sh testUtt 
39