Commit Graph
46 Commits
Author SHA1 Message Date
Juho Hiltunen da287fb851 Unify terminology for stress
synthesize.h now contains the definitions STRESS_IS_... that should be used with code related to syllable stress.

Note that isBreak and other defines were renumbered so that stress definitions could have values 0-6.

Possible TODOs:
1. Unify with terms used with phonemes, i.e. keywords like isDiminished in compiledata.c and stress_type in phsource/phonemes
2. Add functionality and documentation about STRESS_IS_PRIORITY and STRESS_IS_EMPHASIZED
2018-01-14 15:26:03 +02:00
Juho Hiltunen 4f56345fb5 Use stdbool instead of int (Issue #8)
See issue #8, https://github.com/espeak-ng/espeak-ng/issues/8

There might still be some ints that could be changed to boolean.

Possible regressions in fifo.c:
int fifo_is_busy() and int fifo_is_command_enabled() used to return an int. Now they return a boolean. This might cause problems on systems where stdbool true/false is something else than 1/0.
2017-12-09 17:34:05 +02:00
Reece H. Dunn b5c415a98d Rename OPCODE_ to INSTN_. 2017-10-28 12:38:39 +01:00
Reece H. Dunn 351126b3b1 Move polint from synthesize.h to spect.h. 2017-10-25 07:31:03 +01:00
Reece H. Dunn 90d53e145f Move the klatt methods from synthesize.h to klatt.h. 2017-10-25 07:12:45 +01:00
Reece H. Dunn e6c75fa350 speech.c: Fix -Wmissing-prototypes warnings. 2017-10-11 07:20:19 +01:00
Reece H. Dunn 6acec43043 synthesize.c: Fix -Wmissing-prototypes warnings. 2017-10-11 07:16:43 +01:00
Reece H. Dunn 74f9f5e34b wavegen.c: Fix -Wmissing-prototypes warnings. 2017-10-10 21:37:46 +01:00
Reece H. Dunn 66a53cce02 klatt.c: Fix -Wmissing-prototypes warnings. 2017-10-06 07:17:31 +01:00
Reece H. Dunn 6ab1314843 Move outbuf_size to where it is actually used. 2017-05-21 10:02:27 +01:00
Reece H. Dunn ec8a7b810f Use the text decoder object at the top-level Synthesize/espeak_TextToPhonemes call, not in TranslateClause. 2017-04-01 15:11:01 +01:00
Reece H. Dunn 8933185de4 Remove the unused f_in argument to the Read/Translate/SpeakNextClause functions. 2017-03-31 07:13:36 +01:00
Reece H. Dunn f2bb482782 Use OPCODE for the RETURN and CONTINUE opcodes. 2017-01-29 10:29:48 +00:00
Reece H. Dunn b937d37e93 Use the stress condition values in StressCondition. 2017-01-29 10:14:10 +00:00
Reece H. Dunn 8338cdd250 Better document the other condition checks (isDiminished, etc.). 2017-01-29 10:09:16 +00:00
Reece H. Dunn 5d2e2a2f8f Use the place of articulation constants to specify the place-based conditions. 2017-01-29 00:29:17 +00:00
Reece H. Dunn 01e289c3d7 Use constants for the phARTICULATION values. 2017-01-29 00:24:38 +00:00
Reece H. Dunn f0d4a98b96 Use an explicit is phoneme type constant to specify the type-based conditions. 2017-01-29 00:09:54 +00:00
Reece H. Dunn 98703c30de Use the phflag bit offset constants to specify the phflag-based conditions. 2017-01-29 00:04:44 +00:00
Reece H. Dunn 5600019a54 Remove unused conditional tests. 2017-01-28 21:16:08 +00:00
Reece H. Dunn a091c20852 Remove the unused isSeqFlag1 logic checks. 2017-01-25 23:44:19 +00:00
Reece H. Dunn eebb079718 Remove the Wave(Init|Open|Close)Sound functions as these are no longer used. 2016-02-06 10:51:40 +00:00
Reece H. Dunn c4a7ffba33 Inline the call to SynthOnTimer. 2016-02-03 21:35:52 +00:00
Reece H. Dunn a471ba02bf SynthStatus is not called, so remove it. 2016-02-03 21:13:56 +00:00
Reece H. Dunn 19ef13daac i_CHANGE_PHONEME2 is not used and the code conflicts with i_ADD_LENGTH, so remove it 2016-01-12 22:05:10 +00:00
Reece H. Dunn 0ca520a4ec Revert the gcc sign conversion warning fixes.
This reverts commits 0cc0300328 to
38d15f8f90.

The 0cc03003 commit breaks MBROLA voice support. As such, there
may be other breakages in those commits.
2016-01-11 07:03:00 +00:00
Reece H. Dunn 8acf398d23 Fix gcc sign conversion warnings in compilembrola.c. 2016-01-10 13:52:54 +00:00
Reece H. Dunn 013e282d1a Use the error context API in espeak_ng_Initialize. 2016-01-04 10:51:19 +00:00
Reece H. Dunn e69f0f41f0 Make LoadMbrolaTable return espeak_ng_STATUS. 2016-01-02 18:59:18 +00:00
Reece H. Dunn 93898d7960 Create an espeak-ng version of espeak_SetParameter. 2016-01-02 17:32:32 +00:00
Reece H. Dunn c2811d074e Make LoadPhData return an espeak_ng_STATUS code. 2016-01-01 13:17:11 +00:00
Reece H. Dunn 8771b1c29c The modn parameter of SetSynth_Klatt is not used, so remove it. 2015-12-30 09:18:22 +00:00
Reece H. Dunn 8091938430 The fill_zeros parameter of WavegenFill is not used, so remove it. 2015-12-30 09:06:19 +00:00
Reece H. Dunn bc288a04f4 Implement espeak_SetVoiceByProperties directly from the SetVoiceByProperties implementation. 2015-12-29 17:24:59 +00:00
Reece H. Dunn 9ab5fad596 Implement espeak_SetVoiceByName directly from the SetVoiceByName implementation. 2015-12-29 17:15:43 +00:00
Reece H. Dunn 230ddd9fe2 Generate build errors if phoneme or language data files contain errors. 2015-12-29 15:00:31 +00:00
Reece H. Dunn 3e99752d0c Check and fix source code formatting. 2015-12-27 22:34:53 +00:00
Reece H. Dunn 12e0bb122b Reformat the code using the uncrustify program. 2015-12-22 15:06:50 +00:00
Reece H. Dunn 85c87e83a9 Remove the LOG_FRAMES code which was only used in espeakedit. 2015-12-20 19:49:20 +00:00
Reece H. Dunn 66c2831bed Use intptr_t from stdint.h instead of a custom long64 typedef. 2015-12-18 21:41:28 +00:00
Reece H. Dunn c71b24a9a5 Use a consistent license notice in the source files. 2015-12-18 07:06:29 +00:00
Reece H. Dunn cbe8695fcb Remove the * box around the file headers. 2015-12-17 23:45:36 +00:00
Reece H. Dunn 36be9ac13f Use the default uncrustify config (with indentation changes) to reformat the code. 2015-12-17 07:40:24 +00:00
Reece H. Dunn 5e0050419d Remove comments that deliniate the start and end of functions, etc.. 2015-12-15 22:26:02 +00:00
Reece H. Dunn 96cc9dbae2 Always build espeakedit specific data in libespeak-ng. 2015-12-11 20:56:24 +00:00
Reece H. Dunn f185786b87 Move libespeak-ng internal headers to src/libespeak-ng. 2015-12-10 07:14:37 +00:00