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.

languages.test 1.5KB

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/sh
  2. test() {
  3. TEST_LANG=$1
  4. EXPECTED=$2
  5. TEST_TEXT=$3
  6. echo "testing ${TEST_LANG}"
  7. ESPEAK_DATA_PATH=`pwd` LD_LIBRARY_PATH=src:${LD_LIBRARY_PATH} \
  8. src/espeak-ng --stdout -v ${TEST_LANG} "${TEST_TEXT}" | \
  9. sha1sum | awk '{ print $1 }' > actual.txt
  10. echo "${EXPECTED}" > expected.txt
  11. diff expected.txt actual.txt || exit 1
  12. }
  13. # To add a new test:
  14. # 1. add a test line for the language with an appropriate test string, using a placeholder hash;
  15. # 2. run the tests to determine the correct hash;
  16. # 3. copy the correct hash onto the test line;
  17. # 4. re-run the tests to ensure they pass.
  18. test de 8f9bd0211a8d0d7a4f78970b8ac8ed7a50242bb0 "drucker lampe computer stern sterne"
  19. test en 13464f360acc31b7d266164245c15b11e2fb6145 "foot strut north force cure thought lot cloth trap bath"
  20. test en-029 7587e73b30806a360d40088d4f00fa158472fbab "foot strut north force cure thought lot cloth trap bath"
  21. test en-GB-scotland c2a65df79d0da41a4590a0ba6e231e13bc4439b3 "foot strut north force cure thought lot cloth trap bath"
  22. test en-GB-x-gbclan da12c9fd6bfad8aed5644918fc97e683b01b2386 "foot strut north force cure thought lot cloth trap bath"
  23. test en-GB-x-gbcwmd 480e4c024cc06224f1352618e57d0ec4bf223e9a "foot strut north force cure thought lot cloth trap bath"
  24. test en-GB-x-rp 8f1f36267f10c88ca822355ecd9d4ee37faa8228 "foot strut north force cure thought lot cloth trap bath"
  25. test en-US 1653355ef008d67d315aa20e630e00614472a045 "foot strut north force cure thought lot cloth trap bath"
  26. test jp a3651d81da9158ee8b76bd6a31025220b4d84932 "か き く け こ"
  27. echo "done"