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.

language-pronunciation.test 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. #!/bin/sh
  2. test_phonemes() {
  3. TEST_LANG=$1
  4. MESSAGE=$2
  5. EXPECTED=$3
  6. TEST_TEXT=$4
  7. if [ "x$MESSAGE" = x- ] ; then
  8. echo "testing ${TEST_LANG}"
  9. else
  10. echo "testing ${TEST_LANG} ($MESSAGE)"
  11. fi
  12. ESPEAK_DATA_PATH=`pwd` LD_LIBRARY_PATH=src:${LD_LIBRARY_PATH} \
  13. src/espeak-ng -xq -v ${TEST_LANG} "${TEST_TEXT}" > actual.txt
  14. echo "${EXPECTED}" > expected.txt
  15. diff expected.txt actual.txt || exit 1
  16. }
  17. test_phonemes bg "Latin characters spoken in English" \
  18. " (en)f'Ut str'Vt(bg)" \
  19. "foot strut"
  20. # This uses a pangram for Cyrillic letter coverage.
  21. test_phonemes bs "Cyrillic" \
  22. " l^'ub&znI f'@ 'E slovo_|tS'EtIRI_|S'Est_|p'Et_: R'@ slovo_|tS'EtIRI_|S'Est_|d'EvEt_: I j'@2 & & tS'@_:_: & slovo_|tS'EtIRI_|S'Est_|j'ed&n_: v'@ tS'@ g'@ l'its& x'otS;E d'a m'i p'ok&ZE St'os" \
  23. "Љубазни фењерџија чађавог лица хоће да ми покаже штос."
  24. test_phonemes bs "Latin" \
  25. " l^'ub&znI f'En^eRdZ,Ij& tS'adZ;&vog l'its& x'otS;E d'a m'i p'ok&ZE St'os" \
  26. "Ljubazni fenjerdžija čađavog lica hoće da mi pokaže štos."
  27. test_phonemes de - \
  28. " dr'Uk3 l'amp@ kOmpj'u:t3 St'Ern St'Ern@" \
  29. "drucker lampe computer stern sterne"
  30. # This word list is an extended version of Wells' Lexical Sets, used to cover
  31. # different accent pronunciation.
  32. test_phonemes en - \
  33. " k'It dr'Es tr'ap l'0t str'Vt f'Ut fl'i:s p'A:m T'O:t g'u:s n'3:s st'A@t n'O@T f'o@s kj'U@ n,i@3 skw'e@ t'3:m b'3:d h'api k'0m@ l'Et3r- Ekspl'o@ r'oUzI2z r'abIt f'eIs pr'aIs tS'OIs g'oUt m'aUT b'aaT kl'0T m'Ili@n dI2v'aIdI2d" \
  34. "kit dress trap lot strut foot fleece palm thought goose nurse start north force cure near square term bird happy comma letter explore roses rabbit face price choice goat mouth bath cloth million divided"
  35. test_phonemes en-029 - \
  36. " k'It dr'Es tr'ap l'0t str'Vt f'Ut fl'i:s p'A:m t['O:t g'u:s n'3:s st'A@t n'O@t[ f'o@s kj'o@ n,i@3 skw'e@ t'3:m b'3:d h'api k'0ma# l'Eta# Ekspl'o@ r'oUzI2z r'abIt f'eIs pr'aIs tS'OIs g'oUt m'aUt[ b'aat[ kl'0t[ m'Ili@n dI2v'aIdI2d" \
  37. "kit dress trap lot strut foot fleece palm thought goose nurse start north force cure near square term bird happy comma letter explore roses rabbit face price choice goat mouth bath cloth million divided"
  38. test_phonemes en-GB-scotland - \
  39. " k'It dr'Es tr'ap l'0t str'Vt f'Ut fl'i:s p'A:m T'O:t g'u:s n'VRs st'A@rt n'O@rT f'o@rs kj'U@ n,i@3r skw'e@r t'3:m b'IRd h'api k'0mV l'Et@r- Ekspl'o@r r'oUzI2z r'abIt f'eIs pr'aIs tS'OIs g'oUt m'aUT b'aaT kl'0T m'Ili@n d'I2vaId,I2d" \
  40. "kit dress trap lot strut foot fleece palm thought goose nurse start north force cure near square term bird happy comma letter explore roses rabbit face price choice goat mouth bath cloth million divided"
  41. test_phonemes en-GB-x-gbclan - \
  42. " k'It dr'Es tr'ap l'0t str'Vt f'Ut fl'i:s p'A:m T'O:t g'u:s n'3:s st'A@t n'O@T f'o@s kj'U@ n,i@3 skw'e@ t'3:m b'3:d h'apI2 k'0m@ l'Et3r- Ekspl'o@ r'oUzI2z r'abIt f'eIs pr'aIs tS'OIs g'oUt m'aUT b'aaT kl'0T m'Ili@n dI2v'aIdI2d" \
  43. "kit dress trap lot strut foot fleece palm thought goose nurse start north force cure near square term bird happy comma letter explore roses rabbit face price choice goat mouth bath cloth million divided"
  44. test_phonemes en-GB-x-gbcwmd - \
  45. " k'It dr'Es tr'ap l'0t str'Vt f'Ut fl'i:s p'A:m T'O:t g'u:s n'3:s st'A@t n'O@T f'O@s kj'U@ n,i@3 skw'e@ t'3:m b'3:d'api k'0m@ l'Et3r- Ekspl'O@ r'oUzI2z r'abIt f'eIs pr'aIs tS'OIs g'oUt m'aUT b'aaT kl'0T m'Ili@n dI2v'aIdI2d" \
  46. "kit dress trap lot strut foot fleece palm thought goose nurse start north force cure near square term bird happy comma letter explore roses rabbit face price choice goat mouth bath cloth million divided"
  47. test_phonemes en-GB-x-rp - \
  48. " k'It dr'Es tr'ap l'0t str'Vt f'Ut fl'i:s p'A:m T'O:t g'u:s n'3:s st'A@t n'O@T f'O@s kj'U@ n,i@3 skw'e@ t'3:m b'3:d h'api k'0ma# l'Eta#r- Ikspl'O@ r'oUzI2z r'abIt f'eIs pr'aIs tS'OIs g'oUt m'aUT b'aaT kl'0T m'Ili@n dI2v'aIdI2d" \
  49. "kit dress trap lot strut foot fleece palm thought goose nurse start north force cure near square term bird happy comma letter explore roses rabbit face price choice goat mouth bath cloth million divided"
  50. test_phonemes en-US - \
  51. " k'It dr'Es tr'ap l'0t str'Vt f'Ut fl'i:s p'A:m T'O:t g'u:s n'3:s st'A@t n'O@T f'o@s kj'U@ n,i@3 skw'e@ t'3:m b'3:d h'api k'0m@ l'Et#3r- Ekspl'o@ r'oUzI#z r'abIt f'eIs pr'aIs tS'OIs g'oUt m'aUT b'aaT kl'O2T m'Ili@n dI#v'aIdI#d" \
  52. "kit dress trap lot strut foot fleece palm thought goose nurse start north force cure near square term bird happy comma letter explore roses rabbit face price choice goat mouth bath cloth million divided"
  53. test_phonemes fa "Latin characters spoken in English" \
  54. " (en)f'Ut str'Vt(fa)" \
  55. "foot strut"
  56. # This uses a pangram for Cyrillic letter coverage.
  57. test_phonemes hr "Cyrillic" \
  58. " l^'ub&znI f'@ 'E slovo_|tS'EtIRI_|S'Est_|p'Et_: R'@ slovo_|tS'EtIRI_|S'Est_|d'EvEt_: I j'@2 & & tS'@_:_: & slovo_|tS'EtIRI_|S'Est_|j'ed&n_: v'@ tS'@ g'@ l'its& x'otS;E d'a m'i p'ok&ZE St'os" \
  59. "Љубазни фењерџија чађавог лица хоће да ми покаже штос."
  60. test_phonemes hr "Latin" \
  61. " l^'ub&znI f'En^eRdZ,Ij& tS'adZ;&vog l'its& x'otS;E d'a m'i p'ok&ZE St'os" \
  62. "Ljubazni fenjerdžija čađavog lica hoće da mi pokaže štos."
  63. test_phonemes ja "Hiragana" \
  64. " k'a k'i k'u k'e k'o" \
  65. "か き く け こ"
  66. test_phonemes ka "Latin characters spoken in English" \
  67. " (en)f'Ut str'Vt(ka)" \
  68. "foot strut"
  69. test_phonemes lv - \
  70. " 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" \
  71. "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."
  72. test_phonemes ru "Cyrillic" \
  73. " 'Ab;i ab;'8 'AbjE 'Ab;I 'Abji 'Ap; 'Ab;u\" 'Ab;V" \
  74. "абе абё абє аби абї абь абю абя"
  75. # This uses a pangram for Latin letter coverage.
  76. test_phonemes sl - \
  77. " ukOZ'u:StSku xudObn'e:ga f'a:nta stOp'i:tslja m'i:zaR" \
  78. "V kožuščku hudobnega fanta stopiclja mizar."
  79. # This uses a pangram for Cyrillic letter coverage.
  80. test_phonemes sr "Cyrillic" \
  81. " l^'ub&znI f'@ 'E slovo_|tS'EtIRI_|S'Est_|p'Et_: R'@ slovo_|tS'EtIRI_|S'Est_|d'EvEt_: I j'@2 & & tS'@_:_: & slovo_|tS'EtIRI_|S'Est_|j'ed&n_: v'@ tS'@ g'@ l'its& x'otS;E d'a m'i p'ok&ZE St'os" \
  82. "Љубазни фењерџија чађавог лица хоће да ми покаже штос."
  83. test_phonemes sr "Latin" \
  84. " l^'ub&znI f'En^eRdZ,Ij& tS'adZ;&vog l'its& x'otS;E d'a m'i p'ok&ZE St'os" \
  85. "Ljubazni fenjerdžija čađavog lica hoće da mi pokaže štos."