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
+3
View File
@@ -458,6 +458,9 @@ Eight integer parameters. These are added to the voice's corresponding
`stressLength` values. They are used in the voice variant files in
`espeak-ng-data/voices/!v` to give some variety. Negative values may be used.
Note that setting `stressLength` after `stressAdd` will overwrite this value.
`stressLength` must be set before `stressAdd`.
### stressAmp
stressAmp <8 integer values>