Commit Graph
1742 Commits
Author SHA1 Message Date
datajake1999 073a4188a8 Add support for speechPlayer aspirationAmplitude parameter in voice files. 2020-12-09 02:41:15 -08:00
datajake1999 9303e17a48 Fixed speechPlayer licensing issue. 2020-12-07 02:52:27 -08:00
datajake1999 5e502661d6 Add speechPlayer Klatt implementation as Klatt 6. 2020-12-06 08:34:38 -08:00
datajake1999 a90a0fb2bd Applied Klatt fixes from NV Access and added Edward variant. 2020-11-20 02:59:43 -08:00
Valdis Vitolins 3a9de7ae73 lv: add names for numbers up to 10^30 2020-10-15 18:57:13 +03:00
Juho Hiltunen 54d93cf2b4 code cleanup: move ssml reference handling logic to a new function ParseSsmlReference()
It's unclear why c2 needs to be set after an entity reference.
2020-08-23 20:43:29 +03:00
Juho Hiltunen 34657e7ea4 code cleanup: move check for SSML comments and declarations to
ProcessSsmlTag()

Note the line in readclause.c:
if ((c2 == '/') || iswalpha(c2) || c2 == '!' || c2 == '?') {

It might be enough to pass everything to ProcessSsmlTag. What are the
cases that are skipped because of this?
2020-08-23 20:42:24 +03:00
Juho Hiltunen 75d66c89d0 code cleanup: Move self_closing checks to ProcessSsmlTag()
This is a bit slower since we don't pass n_xml_buf as an argument but
rather get it with a call to wcslen. It is much cleaner though, since
the name ProcessSsmlTag() implies that all processing should be done
there.
2020-08-23 20:41:52 +03:00
Juho Hiltunen 50f58168e1 code cleanup: remove unused *constcharptr and MakeWawe2() 2020-08-23 20:41:28 +03:00
Valdis Vitolins 3030884809 Fix issue #801: Cherokee language support is broken 2020-08-21 12:51:28 +03:00
Valdis Vitolins 38291f5e59 Support up to 350 voices/languages 2020-08-21 12:25:18 +03:00
Lamashino 0f5316d6f5 Update tr_languages.c
Added initial support for Ido language (similar to Esperanto).
2020-08-19 17:13:35 +03:00
Juho Hiltunen 0352616de9 code cleanup: remove ununsed ctrl_embedded
It's a duplicate of CTRL_EMBEDDED.
2020-07-24 15:44:03 +03:00
Juho Hiltunen 725bdda564 code cleanup: remove unused variables
this_ph_data, N_WAV_BUF, option.device, harm_sqrt_n,  max_hval, next_pause
2020-07-24 07:29:59 +03:00
Juho Hiltunen 68874a06f1 code cleanup: make NumInstnWords() static 2020-07-24 07:29:59 +03:00
Juho Hiltunen ee944700f8 code cleanup: Check all local includes with include-what-you-use
Going through files in src/libespeak-ng/, include-what-you-use removed a
few unnecessary includes and included explanations on why a certain
header should be included. This makes tracking globals and dependencies easier.

Running the codebase through IWYU should be repeated after each major
code restIncludes to standard c library weren't checked to avoid
breaking builds with other platforms.

See https://github.com/include-what-you-use/include-what-you-use
2020-07-24 07:29:47 +03:00
Juho Hiltunen 5d03047c19 code cleanup: remove unused int vowel_transition[4]
There's two variables with the same name:
1) in struct PHONEME_DATA, used by *phdata, *phdata_next and *phdata_prev
2) an unnecessary one that's only being memset() twice but never used
   for anything
2020-07-21 16:14:25 +03:00
Juho Hiltunen a4041952c5 code cleanup: remove unused references to f_log
f_log is only used in compiledict.c.
2020-07-21 15:50:39 +03:00
Juho Hiltunen 713e8a9e2c code cleanup: remove unused parameter from SetUpPhonemeTable.
See commit 65847bd251. Bool recursing is not used for
anything anymore. Fixes a (compiler warning.
2020-07-21 15:50:29 +03:00
Juho Hiltunen 65847bd251 code cleanup: remove phoneme_tab_flags
It is memset and set once, but never checked or used for anything.
2020-07-21 12:39:59 +03:00
Juho Hiltunen c0ff3696b9 code cleanup: change global int current_phoneme table to static
It's only used in SpeakNextClause() and related to SelectPhonemeTable().

Another solution void be to keep SelectPhonemeTable() as a void function
and do a current_phoneme_table = voice->phoneme_tab_ix after the call to
SelectPhonemeTable().
2020-07-21 12:39:51 +03:00
Juho Hiltunen 992745508e code cleanup: pass voice_t wvoice as a parameter to Wavegen() instead of using a
global
2020-07-21 12:39:41 +03:00
Juho Hiltunen 3b4cca4832 code cleanup: combine Wavegen() and Wavegen2().
Wavegen2() only had one if-statement and then called
    Wavegen(). Wavegen() was never called directly.
2020-07-21 12:39:28 +03:00
Juho Hiltunen 9232f1911e code cleanup: remove unnecessary references to out_start.
Unsigned char *out_start is a global only used in speech.c.
2020-07-21 12:39:20 +03:00
Juho Hiltunen 388be80da7 code cleanup: pass voice_t wvoice as a parameter instead of using a global
SetSynth_Klatt() was using wvoice in two ways:
1) global wvoice was used directly
2) global wvoice was also passed in Wavegen_Klatt() as an argument "v"

Now the code only uses the function argument wvoice

Contributes to #68.
2020-07-21 12:39:12 +03:00
Juho Hiltunen 1b7c3303ef code cleanup: pass WGEN_DATA wdata as a parameter instead of using a global
Contributes to #68.
2020-07-21 12:39:03 +03:00
Juho Hiltunen 516144d63a code cleanup: combine Wavegen_Klatt() and Wavegen_Klatt2().
Wavegen_Klatt2() only had one if-statement and then called
Wavegen_Klatt(). Wavegen_Klatt() was never called directly.
2020-07-21 12:38:54 +03:00
Valdis Vitolins 04caefe54e Merge pull request #791 2020-07-21 12:12:58 +03:00
Valdis Vitolins 1b73cebeb9 Disable secondary stress for Cherokee 2020-07-17 10:09:31 +03:00
Tobias Platen a6dbed8168 add output hooks for wavegen 2020-07-07 21:53:03 +02:00
fukuen 92fb3d6378 improvement japanese 2020-07-08 00:32:12 +09:00
Valdis Vitolins 238427184a Fix issue #772: setting buffer size to 50ms leads to truncated mbrola-fr4 output 2020-06-14 22:09:52 +03:00
Thomas Perret 29b9109088 Import missing function symbol from DLL in mbrola wrapper 2020-06-10 10:26:10 +02:00
Reece H. Dunn d36d3bd197 Merge remote-tracking branch 'BenTalagan/fix/genitive_on_acronym' 2020-05-14 21:16:25 +01:00
BenTalagan c96a0e409d Fixing sequences of ? and ! 2020-05-09 17:03:32 +01:00
BenTalagan 0d37ecbf94 Added additional tests in translate.c 2020-05-07 14:20:39 +02:00
BenTalagan 608bd41e73 Use another var to handle next to next char 2020-05-07 14:11:05 +02:00
BenTalagan 93fbca0e31 Fixing handling of sequence .' in english (potential acronym+genitive vs simple quote usage of apostrophe) 2020-05-07 13:49:12 +02:00
Valdis Vitolins d17a5ecc53 Fix issue #546: add initial support for Ukrainian language 2020-04-12 15:29:16 +03:00
Reece H. Dunn 4aaef4c3e0 Fix additional warnings with addPluralSuffixes. 2020-04-12 11:35:36 +01:00
Reece H. Dunn 8352683e1b Add a NUM_DEFAULT define. 2020-04-12 11:33:12 +01:00
Reece H. Dunn ee1557ece2 Add defines for the numbers2 thousandplex bit flags. 2020-04-12 11:24:00 +01:00
Reece H. Dunn 1e04ce0fbf Use the NUM2_SWAP_THOUSANDS constant instead of 0x200. 2020-04-12 10:53:05 +01:00
Reece H. Dunn eb3c1eb985 Move the NUM2_ comments to the relevant defines. 2020-04-12 10:53:05 +01:00
Reece H. Dunn 915d51512a Create a NUM2_THOUSANDS_VAR_BITS define. 2020-04-12 10:53:05 +01:00
Reece H. Dunn e8f774326d Align the NUM2_ bitmask defines to make them easier to read. 2020-04-12 10:53:04 +01:00
Reece H. Dunn 62e8efad66 Move the NUM_ comments to the relevant defines. 2020-04-12 10:53:04 +01:00
Reece H. Dunn b8fbcf86ff Separate the NUM_DFRACTION flags from the rest of the NUM_ bitmask flags. 2020-04-12 10:53:04 +01:00
Reece H. Dunn 5a8b7bdcfe Align the NUM_ bitmask defines to make them easier to read. 2020-04-12 10:53:04 +01:00
Valdis Vitolins f514bbcc8d Fix 'implicit declaration of function ‘addPluralSuffixes’' C99/clang error 2020-04-12 12:37:23 +03:00