home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Multimed / Multimed.zip / fest-141.zip / festival / testsuite / voice.sh < prev   
Linux/UNIX/POSIX Shell Script  |  1999-05-30  |  3KB  |  66 lines

  1. #!/bin/sh
  2. ###########################################################################
  3. ##                                                                       ##
  4. ##                Centre for Speech Technology Research                  ##
  5. ##                     University of Edinburgh, UK                       ##
  6. ##                         Copyright (c) 1997                            ##
  7. ##                        All Rights Reserved.                           ##
  8. ##                                                                       ##
  9. ##  Permission is hereby granted, free of charge, to use and distribute  ##
  10. ##  this software and its documentation without restriction, including   ##
  11. ##  without limitation the rights to use, copy, modify, merge, publish,  ##
  12. ##  distribute, sublicense, and/or sell copies of this work, and to      ##
  13. ##  permit persons to whom this work is furnished to do so, subject to   ##
  14. ##  the following conditions:                                            ##
  15. ##   1. The code must retain the above copyright notice, this list of    ##
  16. ##      conditions and the following disclaimer.                         ##
  17. ##   2. Any modifications must be clearly marked as such.                ##
  18. ##   3. Original authors' names are not deleted.                         ##
  19. ##   4. The authors' names are not used to endorse or promote products   ##
  20. ##      derived from this software without specific prior written        ##
  21. ##      permission.                                                      ##
  22. ##                                                                       ##
  23. ##  THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK        ##
  24. ##  DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING      ##
  25. ##  ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT   ##
  26. ##  SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE     ##
  27. ##  FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES    ##
  28. ##  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN   ##
  29. ##  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,          ##
  30. ##  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF       ##
  31. ##  THIS SOFTWARE.                                                       ##
  32. ##                                                                       ##
  33. ###########################################################################
  34. ##
  35. ##  Basic test voices
  36.  
  37. FESTIVAL=$TOP/bin/festival
  38. HOME=$TOP/testsuite/data
  39. export HOME
  40.  
  41. do_voices () {
  42.  
  43.     echo "multi-voices " >&2
  44.     
  45.     $FESTIVAL -b data/voices.scm || exit 1
  46.  
  47.         if cmp tmp/rab1.wav tmp/rab2.wav
  48.         then echo rab voice: pass
  49.         else echo rab voice: fail
  50.     fi
  51.         if cmp tmp/ked1.wav tmp/ked2.wav
  52.         then echo ked voice: pass
  53.         else echo ked voice: fail
  54.     fi
  55.         if cmp tmp/don1.wav tmp/don2.wav
  56.         then echo don voice: pass
  57.         else echo don voice: fail
  58.     fi
  59. }
  60.  
  61. echo >$OUTPUT
  62.  
  63. do_voices 2>&1 >> $OUTPUT
  64.  
  65. exit 0
  66.