Yury Popov
ca1f590101
code cleanup: standartize definitions
2 years ago
Yury Popov
2929b9e199
code cleanup: use statics and consts when possible
2 years ago
Yury Popov
38e0f4b1f5
Fix rate setting without libsonic
2 years ago
Juho Hiltunen
9900d55ccf
cleanup: reduce variable scopes in setlengths.c
2 years ago
Juho Hiltunen
8170775113
code cleanup: refactor and remove duplication by unifying SetSpeed()
implemantations.
It is unclear why the two implementations differ.
2 years ago
Juho Hiltunen
0c82988b44
cleanup: refactor and remove duplication from SetSpeed() implementations.
2 years ago
Juho Hiltunen
84f58824af
cleanup: refactor and remove duplication from SetSpeed() implementations.
2 years ago
Juho Hiltunen
9e9fb16b56
cleanup: use parameters instead of globals with SetSpeedMods
2 years ago
Juho Hiltunen
a4c70d7921
cleanup: remove setting samplerate with Sonic.
we currently only support 22050 as samplerate so this code has no
effect. This should be readded to setSpeed() with and without Sonic if
multiple samplerates are supported in the future.
2 years ago
Juho Hiltunen
bc16f819dd
cleanup: refactor and remove duplication from SetSpeed() implementations.
There are two SetSpeed(), one for Sonic and one without. The differences
are very small.
In SetSpeedMods(), sample rate is adjusted for Sonic only:
speed.min_sample_len = (speed.min_sample_len * samplerate_native) / 22050;
Since samplerate_native is 22050 at the moment this line has no effect.
2 years ago
Juho Hiltunen
863655903a
code cleanup: move SetLengthMods to setlengths.c
3 years ago
Juho Hiltunen
aa62682869
code cleanup: simplify speed.fast_settings.
speed.fast_settings[] was introduced in 7b2eecc724
to be used with
Sonic. Looks like after 7b2eecc724
the code related to everything
except fast_settings[0] was removed.
Might be that speed.fast_settings[0] is also irrelevant and could be
removed.
4 years ago
Juho Hiltunen
74ebdb4126
code cleanup: remove unused speed.loud_consonants
It is set but never used.
4 years ago
Reece H. Dunn
6926dfba72
fix #699: -Wlto-type-mismatch when using gcc with -flto=4.
5 years ago
Reece H. Dunn
5feff569cc
fix #699: -Wlto-type-mismatch when using gcc with -flto=4.
5 years ago
Juho Hiltunen
520a30e0b0
code cleanup: use existing defines espeakRATE_MINIMUM, espeakRATE_NORMAL and espeakRATE_MAXIMUM.
6 years ago
Reece H. Dunn
8e13f7147c
Add constants for use with PHONEME_LIST.newword.
6 years ago
Juho Hiltunen
d196d93ed5
maintainability: move variables to files where they are used, allowing removal of unnecessary extern declarations
7 years ago
Juho Hiltunen
f00ff91fe4
headers: add new file wavegen.h with declarations of functions in wavegen.c
7 years ago
Juho Hiltunen
07160f9286
headers: add new file synthdata.h with declarations of functions in synthdata.c
7 years ago
Juho Hiltunen
098904dfe0
headers: add new file setlengths.h with declarations of functions in setlengths.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
78749f14f8
readability fix: use boolean instead of 0 and 1 for loop control
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
9af96da469
Make the encoding.h API public.
8 years ago
Reece H. Dunn
7c16ac543c
Use the text decoder API in readclause.c.
8 years ago
Reece H. Dunn
71c010b712
Remove unused wchar.h and wctype.h includes.
8 years ago
Reece H. Dunn
93fd4caf19
phoneme_add_feature: rename phFORTIS to phVOICELESS to reflect its actual usage.
8 years ago
Ondřej Lysoněk
3817ee1e16
Moved speak_lib.h to espeak-ng directory
Moved include/espeak/speak_lib.h to include/espeak-ng/speak_lib.h and
created a symlink from the original location.
8 years ago
Reece H. Dunn
96c43f3eb2
Clean up the include files to make them consistent.
9 years ago
Reece H. Dunn
9c7179189b
Add a stdint.h compatibility shim.
9 years ago
Reece H. Dunn
ecdfbe0335
Remove a dead assignment in CalcLengths(setlengths.c) [clang scan-build]
9 years ago
Reece H. Dunn
72db232ec3
Move include/espeak{-ng => }/speak_lib.h.
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
522e7c4d51
Revert commit 14a2fb39cf89c8e5561f833f961d8330059daaae
This commit has been reported to cause distortions in phoneme
pitches and speeds.
9 years ago
Fredrik Nyqvist
14a2fb39cf
Declare variables at their first point of use
Also use size_t instead of int in some places
where it make sense
9 years ago
Reece H. Dunn
3e99752d0c
Check and fix source code formatting.
9 years ago
Reece H. Dunn
f0c2c4cca2
Remove extra newlines from the files to provide consistent spacing.
9 years ago
Reece H. Dunn
d345d74f64
Remove braces around single-line if/while/for/etc. and related cleanup.
9 years ago
Reece H. Dunn
12e0bb122b
Reformat the code using the uncrustify program.
9 years ago
Reece H. Dunn
f10b2ccb85
Use the system's sonic files.
This allows newer versions of sonic to be used and to keep
up-to-date with bug fixes provided by the system.
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
Reece H. Dunn
36be9ac13f
Use the default uncrustify config (with indentation changes) to reformat the code.
9 years ago
Reece H. Dunn
5e0050419d
Remove comments that deliniate the start and end of functions, etc..
9 years ago
Reece H. Dunn
08821f262f
Remove commented out code.
9 years ago