Reece H. Dunn
99bbc6294e
Fix building on Windows.
7 years ago
Reece H. Dunn
07e155a150
TranslateWord2: Don't process invalid phonemes.
If ph_code is not located in the phoneme_tab, the resulting ph
value will be NULL. This does not normally happen, but it can
happen if word_phonemes contains garbage data, such as with the
1.49.2 multi-word logic when processing words like 'riposted'.
7 years ago
Reece H. Dunn
eaa08a2bc3
translate: Don't crash translating root words that map to another list entry.
If the list file contains a text replacement to another
entry in the list file, e.g.:
ripost riposte $text
riposte rI#p0st
calling it from a prefix or suffix rule such as 'riposted'
causes word_out[0] to be NULL, as TranslateWord3 has the
information needed to perform the mapping. In this case,
no phonemes have been written in this loop and the phonemes
have been calculated, so don't override them.
7 years ago
Reece H. Dunn
05e571ca4a
compiledict.h: espeak_ng_CompileDictionary is defined in espeak_ng.h, so don't redefine it here.
7 years ago
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
e04ae259e0
headers: add new file compiledict.h with declarations of functions in compiledict.c
7 years ago
Juho Hiltunen
655dbf6b7a
remove unnecessary include of synthesize.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
cd991bd2c9
headers: add new file numbers.h with declarations of functions in numbers.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
d395efa481
headers: add new file phonemelist.h with declarations of functions in phonemelist.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
9d12d23d2a
headers: add new file intonation.h with declarations of functions in intonation.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
30ad5c39f6
move struct MatchRecord to dictionary.c since it's the only file that uses it
7 years ago
Juho Hiltunen
342f077755
remove unused declarations of ChangePhonemes_ru() and struct CHANGEPH
these are the only references in the code.
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
Reece H. Dunn
c5f88c51dd
translate.c: Don't loop to the end of sbuf, as sbuf gets null terminated, so needs a byte for the null character. [msvc /analyze].
7 years ago
Reece H. Dunn
c49164334b
Ensure each name in proc_names can fit an item_string [msvc /analyze].
7 years ago
Reece H. Dunn
583a23f0cd
Use ENV_LEN in the fwrite call in LoadEnvelope2 to be consistent with the rest of the function.
7 years ago
Reece H. Dunn
19e425a169
windows: add ssml.c to the project to fix building on Windows
7 years ago
Reece H. Dunn
b23f475e1a
ssml.h: Reformat the header file.
7 years ago
Reece H. Dunn
d47e48a377
ssml: Update the copyright notice.
7 years ago
Reece H. Dunn
017c6a9383
ssml.h: Add a copyright header and include guards.
7 years ago
Reece H. Dunn
49b97105e5
ssml: Move ssmltags to ssml.c where it is used.
This avoids 'unused parameter' errors in readclause.c.
7 years ago
Juho Hiltunen
985e7d5b39
set functions in ssml.c static.
The only entry point in the file is ProcessSsmlTags().
7 years ago
Juho Hiltunen
ace9bc087a
fix syntax for pointer incrementation
previous syntax was a quick fix when changing from globals to pointers.
7 years ago
Juho Hiltunen
a47ff4f41d
move ProcessSsmlTag() from readclause.to to ssml.c
use parameters instead of globals
7 years ago
Juho Hiltunen
a6b1896ce3
move SetProsodyParameter()
7 years ago
Juho Hiltunen
6c4d22b6d2
move ReplaceKeyName()
7 years ago
Juho Hiltunen
21e391b631
move GetSsmlAttributes()
7 years ago
Juho Hiltunen
d6ed3a3320
move PopParamStack()
7 years ago
Juho Hiltunen
b793920ff7
move PushParamStack()
7 years ago
Juho Hiltunen
2b10dba10f
move ProcessParamStack()
7 years ago
Juho Hiltunen
da125f1a1b
move GetVoiceFromStack()
7 years ago
Juho Hiltunen
16a5b5d15c
move attr_prosody_value()
7 years ago
Juho Hiltunen
fdc2bb06d9
move GetVoiceAttributes()
7 years ago
Juho Hiltunen
f00d5798de
add ssml.h for defines
7 years ago
Juho Hiltunen
a4eca79304
moved attrcopy_utf8()
7 years ago
Juho Hiltunen
07a19b3208
moved attrnumber() from readclause.c to ssml.c
7 years ago
Juho Hiltunen
a8239c4502
start moving SSML related parsing to ssml.c
move: attrcmp() and attrlookup()
new file ssml.c added to Makefile.am
7 years ago
Sascha Brawer
1b923fb0d6
Fix compiler warning
Before this change, the clang compiler produced the following warning:
```
In file included from src/libespeak-ng/espeak_api.c:35:
src/libespeak-ng/event.h:65:28: warning: declaration of 'struct timespec' will
not be visible outside of this function [-Wvisibility]
void clock_gettime2(struct timespec *ts);
^
src/libespeak-ng/event.h:66:28: warning: declaration of 'struct timespec' will
not be visible outside of this function [-Wvisibility]
void add_time_in_ms(struct timespec *ts, int time_in_ms);
^
2 warnings generated.
```
7 years ago
Juho Hiltunen
8999a3b8fb
when end_clause_after_tag is set: end clause after the tag, not before the tag
Fixes #401 .
7 years ago
Juho Hiltunen
78749f14f8
readability fix: use boolean instead of 0 and 1 for loop control
7 years ago
Sascha Brawer
2e2afe5cdf
Fix typo: “Kirshenbaum” encoding, not “Hirshenbaum”
7 years ago
Reece H. Dunn
5459acb6a7
ru: document the special characters
7 years ago