Commit Graph
429 Commits
Author SHA1 Message Date
Lucas Werkmeister d201e17418 Fix stress of Elvish ⟨ch⟩, ⟨dh⟩, ⟨th⟩
In Elvish languages, ⟨ch⟩, ⟨dh⟩, and ⟨th⟩ count as single consonants for
the purposes of stress, since they represent single letters in the
original scripts. The easiest way to implement this is to replace them
with single letters at the beginning – ⟨ð⟩ for ⟨dh⟩ and ⟨þ⟩ for ⟨th⟩ are
natural, and ⟨x⟩ for ⟨ch⟩ also makes some sense, though it means we need
to replace real ⟨x⟩ first (it’s not mentioned in Appendix E of The Lord
of the Rings, but does occur in some Quenya words, notably Helcaraxë).
Real ⟨x⟩ is pronounced like /ks/, but of course we need to spell that as
⟨cs⟩, since ⟨k⟩ does not occur in Elvish languages.
2021-07-18 13:27:26 +02:00
Lucas Werkmeister 35defe2c77 Add first tests for Elvish languages
This consists of the test cases from my Tolkien Stress Analyser [1],
minus the ones that aren’t properly handled yet for various reasons. I
expect to add more words here with most future commits for Elvish
languages.

[1]: https://github.com/lucaswerkmeister/tolkien-stress/blob/gh-pages/test/index.test.mjs
2021-07-18 13:27:26 +02:00
Valdis Vitolins 0f48665868 Exclude Android libraries from executable bit test 2021-07-09 12:33:37 +03:00
agonzalezd fa476bb239 eu: Updated intervocalic j phoneme in Basque 2021-06-29 15:14:43 +03:00
agonzalezd 1320bfe5f9 eu: Passed test/language-pronunciation.test, removed hardcoded stress_rule in Basque 2021-06-29 15:14:38 +03:00
Reece H. Dunn 5791bf28de Fix -Wunused-parameter warnings. 2021-05-30 17:10:25 +01:00
Valdis Vitolins 40b78f5183 Add handling of Ignore message for all test functions 2021-05-23 14:58:17 +03:00
Valdis Vitolins f6d092a9c1 Merge pull request #942 2021-05-18 23:26:07 +03:00
Valdis Vitolins 17e6bd0672 Print out short message instead of long output for tests with long test string 2021-05-16 23:38:22 +03:00
Philippe Antoine 956dd18202 fuzzer: test env variable ESPEAK_DATA_PATH
before overwriting it with a default value for oss-fuzz
2021-05-16 21:25:20 +02:00
Christopher Brannon 8810fa330e Fix another out-of-bounds read in SSML parsing.
A malformed tag like <foo could cause espeak to read past
the end of the string.
2021-05-15 15:19:57 -07:00
Juho Hiltunen 2a7080f411 Merge pull request #932 2021-05-15 21:17:50 +03:00
Christopher Brannon 2d7286d571 Fix out-of-bounds read when processing malformed SSML. 2021-05-15 21:12:59 +03:00
Philippe Antoine 0a713d52bb fuzz: use binary directory for ESPEAK_DATA_PATH
instead of current working directory
so, the fuzzer can be launched from anywhere
2021-05-11 14:59:23 +02:00
Reece H. Dunn bcf3b5fec2 Ignore the ucd-tools test executables in the non-executable file test. 2021-05-04 18:50:40 +01:00
Reece H. Dunn acb7248562 Fix running the non-executable-files-with-executable-bit test. 2021-05-04 18:45:11 +01:00
Philippe Antoine 24bfbcfeca Oss-fuzz integration
- fix a buffer overflow in ucd_tolower leading to failure when
compiling with address sanitizer
- force the use of C++ compiler for espeak-ng
- adding a malloc to have a null-terminated string in the fuzz target
- setting (but not overwriting) ESPEAK_DATA_PATH environment
variable inside the fuzz target
2021-05-04 13:12:42 +02:00
Valdis Vitolins 899b268468 Add OPTIONS argument to test_phon() and use it instead of test_commandlineoptions() 2021-04-06 18:01:19 +03:00
Valdis Vitolins d15de8cd78 Fix introduced bugs during refactorization 2021-04-06 17:45:28 +03:00
Valdis Vitolins 5f6b5c8093 Make output more similar to the output before refactorization 2021-04-06 17:44:40 +03:00
Valdis Vitolins 4588258cd7 Make test_replace() similar to other functions 2021-04-06 17:01:23 +03:00
Valdis Vitolins df8dd607df Replace test_lang() and test_voice() with test_wav() and test_phwav() which uses test_wav() 2021-04-06 16:52:26 +03:00
Valdis Vitolins 842cd3e25e Replace test_phonemes(), test_phonemes1() and test_dict() with single test_phon() 2021-04-06 16:28:23 +03:00
Valdis Vitolins 43dee60c33 Make test_dict the same as test_phonemes 2021-04-06 16:10:26 +03:00
Valdis Vitolins e14b567d77 Merge MESSAGE and TEST_BROKEN arguments 2021-04-06 15:57:58 +03:00
Valdis Vitolins 6fcb110b83 Move MESSAGE argument as 4th, to make arguments similar to other functions 2021-04-06 00:31:42 +03:00
Valdis Vitolins ec552d2566 Move common functions into common script 2021-04-05 23:24:06 +03:00
Valdis Vitolins 2954e498ca Change shell to sh as it is more common 2021-04-05 21:53:26 +03:00
Juho Hiltunen c4740b3053 New language option lowercaseSentence
When set in a language file, a period followed by a lower case letter is
detected as end of sentence. Normal behavior is to require a capital
letter.
2021-04-05 19:29:18 +03:00
Reece H. Dunn e6880b27de [#891]: Fix building the Arabic dictionary on windows. 2021-03-24 18:07:39 +00:00
Reece H. Dunn a0b0f58cf5 [#864]: Fix installing the Japanese language on windows. 2021-03-24 17:58:55 +00:00
Juho Hiltunen 2d9ef5b5fc tests: test for mbrola voice combined with a voice variant 2021-03-20 08:37:26 +02:00
Juho Hiltunen 75ea4b0bdf Tests: add tests for voice variants 2021-03-10 21:19:55 +02:00
Valdis Vitolins 7b160873f7 tr: fix test for changed pronunciation 2021-03-02 22:17:57 +02:00
Juho Hiltunen c62921ae0b tests: add tests for ssml <prosody> and <audio>
SSML logic has a bug (#410) where speech parameters are not changed when there's a
sentence elogic nd. The prosody bug test should fail.
2021-02-27 20:24:44 +02:00
Juho Hiltunen 4838b35602 Tests: new test file for command line options
This is intended for testing command line options such as -k 2, --punct
and so on.
2021-01-26 20:57:57 +02:00
Juho Hiltunen a36f5573d2 Tests: new test collection for dictionary files.
The file is intended for everything mentioned in docs/dictionary.md.
2021-01-26 20:57:34 +02:00
Juho Hiltunen 30214437fc test for #824 2020-12-30 12:01:56 +02:00
Juho Hiltunen 23172c4f74 jbo: add a test for capitals within words (LOPT_CAPS_IN_WORD) 2020-12-28 11:24:26 +02:00
Juho Hiltunen 55eb89ae5d jbo: fix pronunciation of " i" and " .i".
This test is related to the next two lojban commits. Thanks to xunsku @ irc.freenode.org
2020-12-26 20:04:54 +02:00
Valdis Vitolins a4c2ea83c0 Merge pull request #844 2020-12-06 18:55:24 +02:00
datajake1999 5e502661d6 Add speechPlayer Klatt implementation as Klatt 6. 2020-12-06 08:34:38 -08:00
Valdis Vitolins f0a12ee833 Fix issue #848: Māori improvements 2020-12-06 13:52:45 +02:00
Valdis Vitolins 7df533b7b7 Update tests for Klatt voices 2020-11-22 16:29:01 +02:00
Valdis Vitolins 3a9de7ae73 lv: add names for numbers up to 10^30 2020-10-15 18:57:13 +03:00
Valdis Vitolins 5b3da5950a Merge pull request #813 2020-08-27 09:04:10 +03:00
Juho Hiltunen c9dee003bf better explanation and nicer formatting for the ssml reference test. 2020-08-27 06:12:25 +03:00
Valdis Vitolins 5deac40b1a Fix issue #811: improve Interlingua language 2020-08-25 23:17:26 +03:00
Juho Hiltunen 959bf26b6b Add a test for XML/SSML character and entity references 2020-08-23 20:42:47 +03:00
Valdis Vitolins a479ae7899 lv: adjust intonation 2020-08-19 18:15:40 +03:00