update standards version
[debian/freetts] / tests / utteranceTimeTest.sh
1 #!/bin/sh
2 #
3 # This test script first runs the FreeTTS with our first utterance file,
4 # dumps the wave in text form, and compares (diff) it with our standard 
5 # wave form file for our first utterance (first.wave.txt). This test will
6 # tell you how many lines differ from the standard wave form file.
7 #
8 # (Reminder: our 'first utterance file' is "Hello world.  This is Duke 
9 # coming to you from inside the java virtual machine. I'm happy to have
10 # a voice because I've been meaning to tell you how much I care.")
11 #
12 REF=reference.res
13 REF_TMP=utterance.ref.res
14 NEW=utterance.res
15 TIME=$1
16 # 06:51
17 if [ -f utteranceTest.res ]; then
18         rm utteranceTest.res
19 fi
20
21 if [ -f utteranceTest.diff ]; then
22         rm utteranceTest.diff
23 fi
24
25 java -cp ../lib/freetts.jar com.sun.speech.freetts.FreeTTSTime \
26     -dumpRelations -silent -time $TIME  > $NEW.t
27 sed < $NEW.t > $NEW s/\r//g
28
29 rm -f $REF
30 cp $2 $REF_TMP
31 sh testTimeUtt