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 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #!/bin/sh
  2. test_phonemes() {
  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 -xq -v ${TEST_LANG} "${TEST_TEXT}" > actual.txt
  9. echo "${EXPECTED}" > expected.txt
  10. diff expected.txt actual.txt || exit 1
  11. }
  12. test_phonemes de \
  13. " dr'Uk3 l'amp@ (en)k@mpj'u:t3(de) St'Ern St'Ern@" \
  14. "drucker lampe computer stern sterne"
  15. test_phonemes en \
  16. " f'Ut str'Vt n'O@T f'o@s kj'U@ T'O:t l'0t kl'0T tr'ap b'aaT" \
  17. "foot strut north force cure thought lot cloth trap bath"
  18. test_phonemes en-029 \
  19. " f'Ut str'Vt n'O@t[ f'o@s kj'o@ t['O:t l'0t kl'0t[ tr'ap b'aat[" \
  20. "foot strut north force cure thought lot cloth trap bath"
  21. test_phonemes en-GB-scotland \
  22. " f'Ut str'Vt n'O@rT f'o@rs kj'U@ T'O:t l'0t kl'0T tr'ap b'aaT" \
  23. "foot strut north force cure thought lot cloth trap bath"
  24. test_phonemes en-GB-x-gbclan \
  25. " f'Ut str'Vt n'O@T f'o@s kj'U@ T'O:t l'0t kl'0T tr'ap b'aaT" \
  26. "foot strut north force cure thought lot cloth trap bath"
  27. test_phonemes en-GB-x-gbcwmd \
  28. " f'Ut str'Vt n'O@T f'O@s kj'U@ T'O:t l'0t kl'0T tr'ap b'aaT" \
  29. "foot strut north force cure thought lot cloth trap bath"
  30. test_phonemes en-GB-x-rp \
  31. " f'Ut str'Vt n'O@T f'O@s kj'U@ T'O:t l'0t kl'0T tr'ap b'aaT" \
  32. "foot strut north force cure thought lot cloth trap bath"
  33. test_phonemes en-US \
  34. " f'Ut str'Vt n'O@T f'o@s kj'U@ T'O:t l'0t kl'O2T tr'ap b'aaT" \
  35. "foot strut north force cure thought lot cloth trap bath"
  36. test_phonemes ja \
  37. " k'a k'i k'u k'e k'o" \
  38. "か き く け こ"
  39. test_phonemes lv \
  40. " nev'ie:na nuo\`_ 'eiRo:pas v'al>sti:m nek,ad nav p'a:Rga:jusi nuo\`_ 'univERsa:la:s_:_: nuo\` v'ispa:Re:jiem n'uoduok}l^iem f'inanse:tas_:_: s'iste:mas uz 'obliga:ta:s 'apdRuoSina:Sanas s'iste:mu b'eigas" \
  41. "Neviena no Eiropas valstīm nekad nav pārgājusi no universālās (no vispārējiem nodokļiem finansētas) sistēmas uz obligātās apdrošināšanas sistēmu Beigas."
  42. # Languages with non-Latin characters fall back to en when speaking Latin characters.
  43. # TODO: Include words in their native script and move to the main tests above.
  44. test_phonemes bg \
  45. " (en)f'Ut str'Vt(bg)" \
  46. "foot strut"
  47. test_phonemes fa \
  48. " (en)f'Ut str'Vt(fa)" \
  49. "foot strut"
  50. test_phonemes ka \
  51. " (en)f'Ut str'Vt(ka)" \
  52. "foot strut"