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.
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.")
12 if [ -f wavetest.res ]; then
16 if [ -f wavetest.diff ]; then
20 java -jar ../lib/freetts.jar \
21 -Dcom.sun.speech.freetts.useCommandLine=true \
22 -Dcom.sun.speech.freetts.useStreamAudio=true \
23 -Dcom.sun.speech.freetts.pauseShowUtterance=true \
24 -Dcom.sun.speech.freetts.showRelation=Token \
25 -Dcom.sun.speech.freetts.intTargetMean=100 \
26 -Dcom.sun.speech.freetts.intTargetStdDev=11 \
27 -Dcom.sun.speech.freetts.durationStretch=1 \
28 -Dcom.sun.speech.freetts.joinType=modified_lpc \
29 com.sun.speech.freetts.FreeTTS -voice kevin -dumpASCII wavetest.res -file wave/08-01-01.wave.text
31 diff wavetest.res first.wave.txt > wavetest.diff
33 wc wavetest.diff | awk '{print $1 " lines in wavetest.diff file. See wavetest.res for the wave file."}'