Juho Hiltunen
29cba35a9e
headers: add new file mbrola.h with declarations of functions in compilembrola.c and synth_mbrola.c
7 years ago
Juho Hiltunen
f00ff91fe4
headers: add new file wavegen.h with declarations of functions in wavegen.c
7 years ago
Juho Hiltunen
9012f3f0bf
headers: continue with synthdata.h
7 years ago
Juho Hiltunen
231a1d0944
headers: add new file dictionary.h with declarations of functions in dictionary.c
7 years ago
Juho Hiltunen
706df97b20
headers: add new file readclause.h with declarations of functions in readclause.c
7 years ago
Juho Hiltunen
079d5a92c5
remove more unnecessary speech.h includes
7 years ago
Juho Hiltunen
d1fd650219
Replace references to USHORT, DOUBLEX and UCHAR with unsigned short, double and unsigned char.
This makes the codebase more consistent. Including speech.h is not necessary anymore in some files. Includes have been removed.
7 years ago
Juho Hiltunen
738492100a
make all headers (almost) self-contained by using include guards and #include statements within headers
7 years ago
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
7 years ago
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.
7 years ago
Reece H. Dunn
b5c415a98d
Rename OPCODE_ to INSTN_.
7 years ago
Reece H. Dunn
351126b3b1
Move polint from synthesize.h to spect.h.
7 years ago
Reece H. Dunn
90d53e145f
Move the klatt methods from synthesize.h to klatt.h.
7 years ago
Reece H. Dunn
e6c75fa350
speech.c: Fix -Wmissing-prototypes warnings.
7 years ago
Reece H. Dunn
6acec43043
synthesize.c: Fix -Wmissing-prototypes warnings.
7 years ago
Reece H. Dunn
74f9f5e34b
wavegen.c: Fix -Wmissing-prototypes warnings.
7 years ago
Reece H. Dunn
66a53cce02
klatt.c: Fix -Wmissing-prototypes warnings.
8 years ago
Reece H. Dunn
6ab1314843
Move outbuf_size to where it is actually used.
8 years ago
Reece H. Dunn
ec8a7b810f
Use the text decoder object at the top-level Synthesize/espeak_TextToPhonemes call, not in TranslateClause.
8 years ago
Reece H. Dunn
8933185de4
Remove the unused f_in argument to the Read/Translate/SpeakNextClause functions.
8 years ago
Reece H. Dunn
f2bb482782
Use OPCODE for the RETURN and CONTINUE opcodes.
8 years ago
Reece H. Dunn
b937d37e93
Use the stress condition values in StressCondition.
8 years ago
Reece H. Dunn
8338cdd250
Better document the other condition checks (isDiminished, etc.).
8 years ago
Reece H. Dunn
5d2e2a2f8f
Use the place of articulation constants to specify the place-based conditions.
8 years ago
Reece H. Dunn
01e289c3d7
Use constants for the phARTICULATION values.
8 years ago
Reece H. Dunn
f0d4a98b96
Use an explicit is phoneme type constant to specify the type-based conditions.
8 years ago
Reece H. Dunn
98703c30de
Use the phflag bit offset constants to specify the phflag-based conditions.
8 years ago
Reece H. Dunn
5600019a54
Remove unused conditional tests.
8 years ago
Reece H. Dunn
a091c20852
Remove the unused isSeqFlag1 logic checks.
8 years ago
Reece H. Dunn
eebb079718
Remove the Wave(Init|Open|Close)Sound functions as these are no longer used.
9 years ago
Reece H. Dunn
c4a7ffba33
Inline the call to SynthOnTimer.
9 years ago
Reece H. Dunn
a471ba02bf
SynthStatus is not called, so remove it.
9 years ago
Reece H. Dunn
19ef13daac
i_CHANGE_PHONEME2 is not used and the code conflicts with i_ADD_LENGTH, so remove it
9 years ago
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.
9 years ago
Reece H. Dunn
8acf398d23
Fix gcc sign conversion warnings in compilembrola.c.
9 years ago
Reece H. Dunn
013e282d1a
Use the error context API in espeak_ng_Initialize.
9 years ago
Reece H. Dunn
e69f0f41f0
Make LoadMbrolaTable return espeak_ng_STATUS.
9 years ago
Reece H. Dunn
93898d7960
Create an espeak-ng version of espeak_SetParameter.
9 years ago
Reece H. Dunn
c2811d074e
Make LoadPhData return an espeak_ng_STATUS code.
9 years ago
Reece H. Dunn
8771b1c29c
The modn parameter of SetSynth_Klatt is not used, so remove it.
9 years ago
Reece H. Dunn
8091938430
The fill_zeros parameter of WavegenFill is not used, so remove it.
9 years ago
Reece H. Dunn
bc288a04f4
Implement espeak_SetVoiceByProperties directly from the SetVoiceByProperties implementation.
9 years ago
Reece H. Dunn
9ab5fad596
Implement espeak_SetVoiceByName directly from the SetVoiceByName implementation.
9 years ago
Reece H. Dunn
230ddd9fe2
Generate build errors if phoneme or language data files contain errors.
9 years ago
Reece H. Dunn
3e99752d0c
Check and fix source code formatting.
9 years ago
Reece H. Dunn
12e0bb122b
Reformat the code using the uncrustify program.
9 years ago
Reece H. Dunn
85c87e83a9
Remove the LOG_FRAMES code which was only used in espeakedit.
9 years ago
Reece H. Dunn
66c2831bed
Use intptr_t from stdint.h instead of a custom long64 typedef.
9 years ago
Reece H. Dunn
c71b24a9a5
Use a consistent license notice in the source files.
9 years ago
Reece H. Dunn
cbe8695fcb
Remove the * box around the file headers.
9 years ago