eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

voices.test 810B

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. test_voices() {
  3. TEST_LANG=$1
  4. MESSAGE=$2
  5. EXPECTED=$3
  6. TEST_TEXT=$4
  7. TEST_BROKEN=${5:-false}
  8. if [ "x$MESSAGE" = x- ] ; then
  9. echo "testing ${TEST_LANG}"
  10. else
  11. echo "testing ${TEST_LANG} ($MESSAGE)"
  12. fi
  13. ESPEAK_DATA_PATH=`pwd` LD_LIBRARY_PATH=src:${LD_LIBRARY_PATH} \
  14. src/espeak-ng ${OPTIONS} -xq -v ${TEST_LANG} "${TEST_TEXT}" > actual.txt
  15. echo "${EXPECTED}" > expected.txt
  16. if [ x$TEST_BROKEN = xbroken ] ; then
  17. diff expected.txt actual.txt || (echo "... ignoring error (broken)" && true)
  18. else
  19. diff expected.txt actual.txt || exit 1
  20. fi
  21. }
  22. ##### Voice options
  23. test_voices ka "lowercaseSentence" "s'asi,amovn,oa t#k#v'eni g'ats#noba
  24. r'ogor brdz'andebit#" "სასიამოვნოა თქვენი გაცნობა. როგორ ბრძანდებით" #872