Reece H. Dunn
0367abf98f
Support loading phoneme data files relative to the phsrc path.
8 years ago
Reece H. Dunn
eb91c8dfce
espeak_ng_CompilePhonemeDataPath: Allow the user to specify the source and destination paths for the phoneme data.
8 years ago
Reece H. Dunn
e0a598e968
Use variables for the phoneme source and destination paths.
8 years ago
Reece H. Dunn
b67c463852
Inline CompilePhonemeData2 into espeak_ng_CompilePhonemeData.
8 years ago
Reece H. Dunn
ca77ce928b
CompilePhonemeData2: Inline the single use of the source parameter.
8 years ago
Reece H. Dunn
f5d266db97
Don't write random bytes to the end of _phtrans files.
Patch by Samuel Thibault.
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
825a8a4710
compiledata: Avoid a warning when using %x in CompilePhoneme.
9 years ago
Reece H. Dunn
1afe61f8fe
compiledata: KeyToMnem is not used, so remove it
9 years ago
Reece H. Dunn
f6e7f8bb7c
Move some initialisation code from the old espeakedit.cpp file into espeak_ng_CompilePhonemeData to fix the phoneme data.
9 years ago
Reece H. Dunn
dc87e7b775
Use a HAVE_MKSTEMP configure check instead of PLATFORM_POSIX.
9 years ago
Reece H. Dunn
7ea2cf784d
Use the error.h API in LoadEnvelope and check more return values. [Coverity]
9 years ago
Reece H. Dunn
4ec98f79a8
Fix truncated fgetc return value in LoadWavefile(compiledata.c). [Coverity]
9 years ago
Reece H. Dunn
96c43f3eb2
Clean up the include files to make them consistent.
9 years ago
Reece H. Dunn
9c5820f72a
Create an initial compatibility shim for unistd.h.
9 years ago
Reece H. Dunn
c9844f62ef
Clean up the 'Compiling phoneme data' messages.
9 years ago
Reece H. Dunn
f9d12c31a4
Remove the redundant access check in compiledata.c
This access check is checking whether the phsource directory exists.
Now that espeak-ng is using the errno message when opening the
phsource/phonemes file, enough information should be provided by
that error message.
9 years ago
Reece H. Dunn
242cb51c38
Call to realloc may leak the manifest data in ReadPhonemeManifest(compiledata.c) [msvc /analyze]
9 years ago
Reece H. Dunn
4673b04cde
Check the return value of malloc in LoadDataFile(compiledata.c) [msvc /analyze]
9 years ago
Reece H. Dunn
11101806ce
Support building espeak-ng.exe with Visual C++.
9 years ago
Reece H. Dunn
9c7179189b
Add a stdint.h compatibility shim.
9 years ago
Reece H. Dunn
dea7d441f2
Avoid passing 0 to realloc in ReadPhondataManifest(compiledata.c). [clang scan-build]
9 years ago
Reece H. Dunn
5453616ec9
Add espeak_ng_STATUS error code return values to ReadPhondataManifest.
9 years ago
Reece H. Dunn
c675787587
Fix usage of calloc in espeak_ng_CompileIntonation. [clang scan-build]
9 years ago
Reece H. Dunn
aa93cf2ec9
Fix the error logic in CompilePhonemeData2(compiledata.c) [clang scan-build]
9 years ago
Reece H. Dunn
b63371bd80
Remove a dead assignment in CompileEquivalents(compiledata.c) [clang scan-build]
9 years ago
Reece H. Dunn
72db232ec3
Move include/espeak{-ng => }/speak_lib.h.
9 years ago
Reece H. Dunn
a675073381
Remove the uses of fopen_log in compiledata.c.
9 years ago
Reece H. Dunn
2c446ecba3
Properly clean up the open files in CompilePhonemeData2.
9 years ago
Reece H. Dunn
7aa506d145
Use the error context API in espeak_ng_CompilePhonemeData.
9 years ago
Reece H. Dunn
57eb9628d6
Use the error context API in espeak_ng_CompileIntonation.
9 years ago
Reece H. Dunn
013e282d1a
Use the error context API in espeak_ng_Initialize.
9 years ago
Reece H. Dunn
59006f4762
Fix the LoadDataFile logic from commit 619fc6424d093b9a684eda77a9916361af15b563
9 years ago
Reece H. Dunn
32655d264d
Make LoadSpect return an espeak_ng_STATUS code.
9 years ago
Reece H. Dunn
619fc6424d
Make LoadDataFile return an espeak_ng_STATUS code.
9 years ago
Reece H. Dunn
1210464a31
CompileToneSpec always returns 0, so make it return void.
9 years ago
Reece H. Dunn
a04a7af003
CompileSound always returns 0, so make it return void.
9 years ago
Reece H. Dunn
ccb409c600
Return an espeak_ng_STATUS code in LoadSpectSeq.
9 years ago
Reece H. Dunn
563e4e3769
Use ENS_ for eSpeak NG error codes, and standardize on a numbering scheme.
9 years ago
Reece H. Dunn
f9ea83430e
Use errno codes in place of ENE_(READ|WRITE)_ERROR.
9 years ago
Reece H. Dunn
74db6dac63
Use the ENOMEM errno code instead of ENE_OUT_OF_MEMORY.
9 years ago
Reece H. Dunn
53aac7f3a5
Fix clang -Wconditional-uninitialized warnings.
9 years ago
Reece H. Dunn
c1f0529747
DecompilePhoneme does nothing (returns before doing anything), so remove it (it was used to debug/trace CompilePhoneme).
9 years ago
Reece H. Dunn
75758a9712
Fix GCC -Wunused-but-set-variable warnings.
9 years ago
Reece H. Dunn
230ddd9fe2
Generate build errors if phoneme or language data files contain errors.
9 years ago
Reece H. Dunn
dfdb4e2391
Remove the Error wrapper -- use error directly.
9 years ago
Reece H. Dunn
6821f0dab0
Use variable arguments to simplify error(...) usage.
9 years ago
Reece H. Dunn
17c61b25d7
Output phoneme compilation errors to stderr.
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
Reece H. Dunn
1a36df1206
Remove the remaining MAKE_ENVELOPES usage.
9 years ago