Yury Popov
24892aae06
Support deterministic PRNG mode in CLI
2022-11-15 10:00:17 +03:00
Yury Popov
09cdf8ce66
Add public API to seed PRNG
2022-11-15 09:59:06 +03:00
Yury Popov
1e279d3cb8
Add PRNG and use it instead of rand()
2022-11-15 09:58:29 +03:00
Yury Popov
98dc5c67e9
klatt: fix logic error causes buffer overrun
2022-11-15 09:51:55 +03:00
Yury Popov
adc6855c11
klatt: fix possible buffer overrun
2022-11-15 09:50:55 +03:00
Yury Popov
44b514febf
Compensate SSML break time for libsonic
2022-11-12 09:59:01 +03:00
Yury Popov
7d0b6f3019
Revert "Compensate silence duration when sonic enabled"
...
This reverts commit 9f0b23f49e .
2022-11-11 23:51:18 +03:00
Alexander Epaneshnikov
1a739d6c24
Add unquoted attributes support in SSML parser ( #1515 )
...
Also check for empty skip_marker name in SSML_MARK.
Fixes #975
2022-11-09 00:12:25 +03:00
Yury Popov
99c282640b
SSML: Check that skip marker is not empty
2022-11-08 23:50:42 +03:00
Yury Popov
ac3de913f2
Support unqouted attributes in SSML parser
2022-11-08 23:46:16 +03:00
Yury Popov
9f0b23f49e
Compensate silence duration when sonic enabled
2022-11-08 17:54:49 +03:00
Yury Popov
61de330443
Sync rate for SSML break duration
2022-11-08 17:51:17 +03:00
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
2022-11-08 00:01:01 +01:00
Juho Hiltunen
3a3787b855
cleanup: use bool instead of int for condition_failed
2022-11-07 21:08:25 +02:00
Yury Popov
178afb10db
Flush sonic stream on rate reset
2022-11-07 15:17:01 +03:00
Juho Hiltunen
c5fac3185c
cleanup: join two adjacent if (only == false) blocks.
...
Note: The latter part is untested code.
2022-11-05 21:22:39 +02:00
Juho Hiltunen
ca0019b197
cleanup: use bool in LookupCharName()
2022-11-05 21:22:39 +02:00
Juho Hiltunen
acc43a76e4
cleanup: remove code duplication with UnGetC()
2022-11-05 21:22:39 +02:00
Juho Hiltunen
95e5c4458d
cleanup: remove duplication with DecodeWithPhonemeMode().
...
TODO: think of a better function name.
2022-11-05 21:22:39 +02:00
Juho Hiltunen
f53ebf469c
cleanup: remove code duplication with TerminateBufWithSpaceAndZero().
...
One redundant ix++ was removed because there's a return right after that.
2022-11-05 21:22:39 +02:00
kirill-jjj
ec5f868955
Russian: fix max_initial_consonants, now words льстят and льстит whill be fixed
2022-11-05 23:26:08 +05:00
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
2022-11-04 00:58:37 +04:00
Juho Hiltunen
bdd46838c0
fix compiler warnings for unused variables and functions.
...
See commits ae97fa16 and a178ea1b .
2022-10-31 20:45:59 +02:00
kirill-jjj
8e0e5d5c9c
Czech: Fix NUM2_THOUSANDS_VAR to use correct value for Czech, I'm serious, it used the Lithuanian var
2022-10-31 12:15:06 +03:00
kirill-jjj
95ed5c0c88
Russian: refacter the NUM2_THOUSANDS_VAR1 to return 1MA, not 0MB and fix the rules for them
2022-10-31 12:15:05 +03:00
Juho Hiltunen
1de9f4b52c
Revert "cleanup: reduce code duplication with a new function"
...
This reverts commit 8021528f5e .
Failing on CI/CD.
2022-10-30 10:56:59 +02:00
Juho Hiltunen
8021528f5e
cleanup: reduce code duplication with a new function
...
StatusCreateTerminatedMsg.
This is not covered by current tests.
2022-10-30 10:12:11 +02:00
Juho Hiltunen
55f1f8e113
cleanup: reduce code duplication with AddToVoicesList()
...
Checking for return value & continue might be redundant.
2022-10-30 10:12:11 +02:00
Juho Hiltunen
d47d2d0a40
cleanup: remove duplicate StringToWord()
...
Found with pmd-cpd static analysis
2022-10-30 10:12:11 +02:00
Juho Hiltunen
03ebb2fd11
cleanup: reduce variable scopes dictionary.c
2022-10-30 10:12:06 +02:00
Juho Hiltunen
f23ff88755
cleanup: reduce variable scopes in synthdata.c
2022-10-30 10:11:53 +02:00
Juho Hiltunen
5d4791ccd1
cleanup: reduce variable scopes in synthesize.c
2022-10-30 10:11:44 +02:00
Juho Hiltunen
54265990b5
cleanup: reduce variable scopes in wavegen.c
2022-10-30 10:11:44 +02:00
Juho Hiltunen
fa575b54cb
cleanup: fix knownConditionTrueFalse code smells
2022-10-30 10:11:44 +02:00
Juho Hiltunen
7c7ab9e177
cleanup: fix duplicateCondition code smell
2022-10-30 10:11:44 +02:00
Yury Popov
ae97fa16b4
Remove phoneme compile_report stuff
2022-10-30 10:11:44 +02:00
Yury Popov
a178ea1b13
Remove system() call from compiledata.c
2022-10-30 10:11:44 +02:00
Yury Popov
3857b83c19
Respect custom N_PATH_HOME definition if passed
2022-10-30 10:11:44 +02:00
Yury Popov
4e5bc19047
Allow out-of-tree intonations compilation
2022-10-28 12:34:56 +03:00
Juho Hiltunen
507a5f5410
cleanup: fix unreadVariable code smell for variant_name in SelectVoiceByName()
2022-10-26 17:55:00 +03:00
Juho Hiltunen
14f12376a3
cleanup: change int skip to bool
2022-10-26 17:55:00 +03:00
Juho Hiltunen
8ddcf6ed94
cleanup: reduce variable scopes in voices.c
2022-10-26 17:54:55 +03:00
Juho Hiltunen
9900d55ccf
cleanup: reduce variable scopes in setlengths.c
2022-10-25 20:02:54 +03:00
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.
2022-10-25 19:51:02 +03:00
Juho Hiltunen
07da7edeea
cleanup: fix code smell knownConditionTrueFalse
...
Inner 'n_bytes >= 0' will always be true.
2022-10-25 19:51:02 +03:00
Juho Hiltunen
59177db8ef
cleanup: fix code smell knownConditionTrueFalse
...
Inner 'p->stresslevel>=4' will always be true. Thus checking for
count_stressed is redundant.
2022-10-25 19:51:02 +03:00
Juho Hiltunen
ef809dcd7e
SetSpeed() refactoring ( #1465 )
...
Unify common parts of two implementations. Split into smaller functions.
2022-10-25 19:32:32 +03:00
Juho Hiltunen
8170775113
code cleanup: refactor and remove duplication by unifying SetSpeed()
...
implemantations.
It is unclear why the two implementations differ.
2022-10-25 19:24:55 +03:00
Juho Hiltunen
0c82988b44
cleanup: refactor and remove duplication from SetSpeed() implementations.
2022-10-25 19:24:55 +03:00
Juho Hiltunen
84f58824af
cleanup: refactor and remove duplication from SetSpeed() implementations.
2022-10-25 19:24:55 +03:00