Commit Graph
4453 Commits
Author SHA1 Message Date
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
Valdis Vitolins 5e70981884 Add common abbreviations in Russian to the test 2020-07-22 17:50:52 +03:00
Valdis Vitolins a90234c9ea Add to test abbreviations explicitly defined in lv_list file 2020-07-22 17:41:36 +03:00
Valdis Vitolins bddd8a8bde Merge pull request #795 2020-07-22 16:27:09 +03:00
Valdis Vitolins 02174e2f76 Add test for Klatt voices 2020-07-22 16:20:33 +03:00
Valdis Vitolins 30d5735db5 docs: fix link and make it more descriptive 2020-07-21 18:20:10 +03:00
Valdis Vitolins e6af1e7c59 docs: make direct links to guides from description to make list of docs shorter 2020-07-21 18:16:50 +03:00
Valdis Vitolins 9adc6e157e docs: fix link 2020-07-21 18:13:42 +03:00
Valdis Vitolins df282f8f3d docs: add dedicated user guide for installation and usage 2020-07-21 18:02:46 +03:00
Valdis Vitolins 3aa4c10ef8 docs: remove entry about binaries, move dependencies into dependencies chapter 2020-07-21 17:47:09 +03:00
Valdis Vitolins aec8baf093 docs: add examples how to use eSpeak NG as a C library 2020-07-21 17:14:30 +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
Valdis Vitolins 8aff6072e8 Remove BOM from files 2020-07-17 09:50:06 +03:00
Reece H. Dunn aafd2e7205 Update the changelog. 2020-07-10 11:11:57 +01: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 22a3043403 Merge pull request #788 2020-07-05 20:46:14 +03:00
Valdis Vitolins 21683e0d0e Merge pull request #787 2020-07-04 22:51:14 +03:00
Karl Eick 1c76c01ee0 Update hashsum 2020-07-04 22:50:03 +03:00
Karl Eick 830690be0d Fix issue #492 2020-07-04 22:49:54 +03:00
Valdis Vitolins cef02afc59 As MBROLA is optional, don't exit with error if mbrola is not found 2020-07-04 22:35:49 +03:00
Icenowy Zheng 00fe15cc28 cmn: use voiceless uvular fricative as pronounciation of pinyin h
According to [1] and [2] , the pronounciation of the pinyin character
h is not accurately [x].
According to [2], [χ] is instead a possible pronounication in young
users.

As a young native speaker of Mandarin, I feel the sound of [χ] in espeak
more satisfied than [x] here.

[1] https://en.wikipedia.org/wiki/Standard_Chinese_phonology
[2] https://phesoca.com/aws/268/

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
2020-07-05 03:12:10 +08:00
Valdis Vitolins 1fb68ffffe Fix issue #773: wrong pronunciation of Hawaiʻi 2020-07-04 19:21:19 +03:00
Valdis Vitolins 26ae5a3e60 Update changelog 2020-07-04 19:11:37 +03:00
Valdis Vitolins 78683866d6 Merge pull request #786 2020-07-04 19:09:03 +03:00
Valdis Vitolins 53c59f46e9 Improve Turkmen language 2020-07-04 18:45:17 +03:00
Icenowy Zheng f1b2c29d09 zh_listx: fix bogus 冉冉 item
This item will lead `冉冉` to be pronounced 3 times rather than 2, and
it's not necessary because this character has no overloaded
pronounciation.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
2020-07-04 22:39:16 +08:00
Reece H. Dunn 2abfb6c827 Merge remote-tracking branch 'danielbair/master' 2020-07-03 14:32:30 +01:00
Daniel Bair b56c9429bc Add check for kramdown so that both RONN and KRAMDOWN are set by configure script 2020-07-03 17:13:16 +07:00
Daniel Bair fd14487698 RONN is set by configure script 2020-07-03 10:12:34 +07:00
Valdis Vitolins 17c1b1370c Fix issue #652: Incorrect pronounciation of atelier 2020-07-02 23:26:14 +03:00
Valdis Vitolins 174daa2d16 Remove voice which differs from pablo only by name 2020-07-02 21:27:04 +03:00
Daniel Bair 6834b2f8c9 Update Makefile.am
Allows setting the path for ronn and kramdown
2020-07-02 09:56:47 +07:00
Michael Conrad ec99326d52 Misc Cherokee language fixes.
Switch to Portuguese /&~/ for <v>.
Use aveolar /d/ instead of dental /d[/.

The base phonemes file defines alveolar /d/ with the definition for a
dental /d[/ ????
2020-06-29 09:38:46 -04:00
Valdis Vitolins f2939490e1 Improvements for Latvian 2020-06-28 16:05:13 +03:00
Ejaz Shah d1c95d8b29 Improvements for Urdu 2020-06-28 16:02:35 +03:00