Yury Popov
98dc5c67e9
klatt: fix logic error causes buffer overrun
2 years ago
Yury Popov
adc6855c11
klatt: fix possible buffer overrun
2 years ago
Yury Popov
1e2404714d
code cleanup: localize compiledict static objects
2 years ago
Yury Popov
1565bab07a
code cleanup: localize compiledata static objects
2 years ago
Yury Popov
7ba91ef178
Allow <break> at the beginning of SSML
2 years ago
Yury Popov
38e0f4b1f5
Fix rate setting without libsonic
2 years ago
Yury Popov
44b514febf
Compensate SSML break time for libsonic
2 years ago
Yury Popov
7d0b6f3019
Revert "Compensate silence duration when sonic enabled"
This reverts commit 9f0b23f49e
.
2 years ago
Yury Popov
99c282640b
SSML: Check that skip marker is not empty
2 years ago
Yury Popov
ac3de913f2
Support unqouted attributes in SSML parser
2 years ago
Yury Popov
9f0b23f49e
Compensate silence duration when sonic enabled
2 years ago
Yury Popov
61de330443
Sync rate for SSML break duration
2 years ago
Samuel Thibault
14fc5cdb63
dictionary: Fix failure to look back
Firstly, a ~ match is supposed to match even if there's nothing left.
Also, when p doesn't match, we should not return immediately, but skip
to the next group.
Fixes #1507
2 years ago
Juho Hiltunen
3a3787b855
cleanup: use bool instead of int for condition_failed
2 years ago
Yury Popov
178afb10db
Flush sonic stream on rate reset
2 years ago
Juho Hiltunen
c5fac3185c
cleanup: join two adjacent if (only == false) blocks.
Note: The latter part is untested code.
2 years ago
Juho Hiltunen
ca0019b197
cleanup: use bool in LookupCharName()
2 years ago
Juho Hiltunen
acc43a76e4
cleanup: remove code duplication with UnGetC()
2 years ago
Juho Hiltunen
95e5c4458d
cleanup: remove duplication with DecodeWithPhonemeMode().
TODO: think of a better function name.
2 years ago
Juho Hiltunen
f53ebf469c
cleanup: remove code duplication with TerminateBufWithSpaceAndZero().
One redundant ix++ was removed because there's a return right after that.
2 years ago
kirill-jjj
ec5f868955
Russian: fix max_initial_consonants, now words льстят and льстит whill be fixed
2 years ago
Beqa Gozalishvili
e3487d0cf8
Android: Fix compatibility issues with some vendors
add tolower and toupper to be processed by ucd-tools in WCTYPE_H_COMPAT_SHIM
some vendors don't provide conformance with c standard in bionic
2 years ago
Juho Hiltunen
bdd46838c0
fix compiler warnings for unused variables and functions.
See commits ae97fa16
and a178ea1b
.
2 years ago
kirill-jjj
8e0e5d5c9c
Czech: Fix NUM2_THOUSANDS_VAR to use correct value for Czech, I'm serious, it used the Lithuanian var
2 years ago
kirill-jjj
95ed5c0c88
Russian: refacter the NUM2_THOUSANDS_VAR1 to return 1MA, not 0MB and fix the rules for them
2 years ago
Juho Hiltunen
1de9f4b52c
Revert "cleanup: reduce code duplication with a new function"
This reverts commit 8021528f5e
.
Failing on CI/CD.
2 years ago
Juho Hiltunen
8021528f5e
cleanup: reduce code duplication with a new function
StatusCreateTerminatedMsg.
This is not covered by current tests.
2 years ago
Juho Hiltunen
55f1f8e113
cleanup: reduce code duplication with AddToVoicesList()
Checking for return value & continue might be redundant.
2 years ago
Juho Hiltunen
d47d2d0a40
cleanup: remove duplicate StringToWord()
Found with pmd-cpd static analysis
2 years ago
Juho Hiltunen
03ebb2fd11
cleanup: reduce variable scopes dictionary.c
2 years ago
Juho Hiltunen
f23ff88755
cleanup: reduce variable scopes in synthdata.c
2 years ago
Juho Hiltunen
5d4791ccd1
cleanup: reduce variable scopes in synthesize.c
2 years ago
Juho Hiltunen
54265990b5
cleanup: reduce variable scopes in wavegen.c
2 years ago
Juho Hiltunen
fa575b54cb
cleanup: fix knownConditionTrueFalse code smells
2 years ago
Juho Hiltunen
7c7ab9e177
cleanup: fix duplicateCondition code smell
2 years ago
Yury Popov
ae97fa16b4
Remove phoneme compile_report stuff
2 years ago
Yury Popov
a178ea1b13
Remove system() call from compiledata.c
2 years ago
Yury Popov
3857b83c19
Respect custom N_PATH_HOME definition if passed
2 years ago
Yury Popov
1f571856b5
Remove phoneme compile_report stuff
2 years ago
Yury Popov
8478d39eb1
Remove system() call from compiledata.c
2 years ago
Yury Popov
4e5bc19047
Allow out-of-tree intonations compilation
2 years ago
Yury Popov
99dc51ca3a
Respect custom N_PATH_HOME definition if passed
2 years ago
Juho Hiltunen
507a5f5410
cleanup: fix unreadVariable code smell for variant_name in SelectVoiceByName()
2 years ago
Juho Hiltunen
14f12376a3
cleanup: change int skip to bool
2 years ago
Juho Hiltunen
8ddcf6ed94
cleanup: reduce variable scopes in voices.c
2 years ago
Juho Hiltunen
9900d55ccf
cleanup: reduce variable scopes in setlengths.c
2 years ago
Juho Hiltunen
78a037924e
cleanup: fix code smell knownConditionTrueFalse for strlen() >= 0
Strlen never retuns a negative value. Also combined if statements to
reduce complexity. This code currently has no tests.
2 years ago
Juho Hiltunen
07da7edeea
cleanup: fix code smell knownConditionTrueFalse
Inner 'n_bytes >= 0' will always be true.
2 years ago
Juho Hiltunen
59177db8ef
cleanup: fix code smell knownConditionTrueFalse
Inner 'p->stresslevel>=4' will always be true. Thus checking for
count_stressed is redundant.
2 years ago
Juho Hiltunen
8170775113
code cleanup: refactor and remove duplication by unifying SetSpeed()
implemantations.
It is unclear why the two implementations differ.
2 years ago