code cleanup: move stressLength, stressAdd and stressAmp handling in LoadVoice()

From now on, stressLength must be set before stressAdd because
stressLength will overwrite any previous value. Usually stressLength is
set in a language file and stressAdd in a voice file.

Previously the order of the two commands didn't matter.
This commit is contained in:
Juho Hiltunen
2021-05-22 13:38:03 +03:00
parent 7c32085dcd
commit fb233a7b0c
3 changed files with 40 additions and 21 deletions
+2 -1
View File
@@ -11,8 +11,9 @@ The espeak-ng project is a fork of the espeak project.
* Add support for speechPlayer.
* Add more tests to check the various parts of espeak-ng.
* Various changes to clean up the codebase.
* Various changes to clean up the codebase (Juho Hiltunen)
* Restructure "option brackets" language option to "brackets" and "bracketsAnnounced".
* Restructure "stressLength" and "stressAdd" language option
* New Language option: "lowercaseSentence" for ending a sentence if a period is followed by a lower case letter.
* Added voice variants
* Renamed zh to cmn (Mandarin)