Reece H. Dunn
2c07be17f9
Remove a dead assignment in compile_rule(compiledict.c) [clang scan-build]
2016-01-06 22:18:15 +00:00
Reece H. Dunn
365e41076f
Remove a dead assignment in compile_rule(compiledict.c) [clang scan-build]
2016-01-06 22:17:29 +00:00
Reece H. Dunn
11136fb794
Remove a dead assignment in MatchRule(dictionary.c) [clang scan-build]
2016-01-06 22:14:22 +00:00
Reece H. Dunn
e815f46ff3
Remove a dead assignment in MatchRule(dictionary.c) [clang scan-build]
2016-01-06 22:13:23 +00:00
Reece H. Dunn
2549b21f28
Remove a dead assignment in SetSpellingStress(numbers.c) [clang scan-build]
2016-01-06 21:55:00 +00:00
Reece H. Dunn
5bbab7e0d3
Check fread return value in LoadSoundFile(readclause.c) [clang scan-build]
2016-01-06 21:32:46 +00:00
Reece H. Dunn
bd52c12c49
Remove a dead assignment in ProcessSsmlTag(readclause.c) [clang scan-build]
2016-01-06 21:26:33 +00:00
Reece H. Dunn
ecdfbe0335
Remove a dead assignment in CalcLengths(setlengths.c) [clang scan-build]
2016-01-06 21:23:11 +00:00
Reece H. Dunn
01756bf910
Remove a dead assignment in Synthesize(speech.c) [clang scan-build]
2016-01-06 21:21:10 +00:00
Reece H. Dunn
21cc5195d2
Remove a dead assignment in InterpretPhoneme(synthdata.c) [clang scan-build]
2016-01-06 21:18:30 +00:00
Reece H. Dunn
1b562d7185
Check fread return value in LoadMbrolaTable(synth_mbrola.c) [clang scan-build]
2016-01-06 20:38:07 +00:00
Reece H. Dunn
b04330ac85
Remove a dead assignment in CheckDottedAbbrev(translate.c) [clang scan-build]
2016-01-06 20:33:36 +00:00
Reece H. Dunn
b79635335f
Remove a dead assignment in TranslateWord(translate.c) [clang scan-build]
2016-01-06 20:32:15 +00:00
Reece H. Dunn
6251afa556
Remove a dead assignment in TranslateClause(translate.c) [clang scan-build]
2016-01-06 20:30:10 +00:00
Reece H. Dunn
d4dd2cacca
Fix the voice_dir logic in LoadVoice(voices.c) [clang scan-build]
2016-01-06 20:27:29 +00:00
Reece H. Dunn
cb3699746c
Check the return value of sscanf in LoadVoice(voices.c) [clang scan-build]
2016-01-06 20:22:58 +00:00
Reece H. Dunn
bc8297bf3c
Remove a dead assignment in LoadVoice(voices.c) [clang scan-build]
2016-01-06 20:19:31 +00:00
Reece H. Dunn
0966892fef
Remove a dead assignment in PeaksToHarmspect(wavegen.c) [clang scan-build]
2016-01-06 20:15:53 +00:00
Reece H. Dunn
cdeb1d042d
Remove a dead assignment in parwave(klatt.c) [clang scan-build]
2016-01-06 20:12:47 +00:00
Reece H. Dunn
39cd145ba3
Make close_stream(fifo.c) return a status code (don't assert on failure) [clang scan-build]
2016-01-06 20:12:24 +00:00
Reece H. Dunn
a4578e88eb
Remove a dead assignment in copyBuffer(wave.c) [clang scan-build]
2016-01-06 20:11:32 +00:00
Reece H. Dunn
e169df6a26
Merge remote-tracking branch 'ValdisVitolins/master'
2016-01-06 19:42:03 +00:00
Reece H. Dunn
902d610a70
Pass syllable_tab by parameter instead of a static global to avoid setting a stack value to a global [clang scan-build].
2016-01-06 19:41:13 +00:00
Reece H. Dunn
c86bf3a756
Link to the sonic project sources on GitHub.
2016-01-06 07:04:40 +00:00
Reece H. Dunn
4f2560a6b0
Link to the math library in speak-ng as well as libespeak-ng.
2016-01-05 21:34:23 +00:00
Reece H. Dunn
d52f00cd24
Fix a buffer size calculation in Lookup.
2016-01-05 13:56:34 +00:00
Reece H. Dunn
b77636db84
Remove the duplicate portaudio.h include from wave.c.
2016-01-05 13:50:47 +00:00
Reece H. Dunn
84a605df62
Define _DEFAULT_SOURCE in addition to _BSD_SOURCE to prevent a warning on glibc >= 2.20.
2016-01-05 13:45:34 +00:00
Reece H. Dunn
adfb05964a
docs/add_language.md style and other fixes
2016-01-04 20:23:23 +00:00
Reece H. Dunn
165d1d6c62
Merge remote-tracking branch 'ValdisVitolins/master'
2016-01-04 20:17:34 +00:00
Reece H. Dunn
cd64bfeb53
Install the espeak compatibility symlinks.
2016-01-04 20:13:48 +00:00
Reece H. Dunn
72db232ec3
Move include/espeak{-ng => }/speak_lib.h.
2016-01-04 19:45:23 +00:00
Reece H. Dunn
a675073381
Remove the uses of fopen_log in compiledata.c.
2016-01-04 14:05:51 +00:00
Reece H. Dunn
2c446ecba3
Properly clean up the open files in CompilePhonemeData2.
2016-01-04 14:01:02 +00:00
Reece H. Dunn
3f80fd712e
Use the error context API in the compile_dictrules helper function.
2016-01-04 13:52:25 +00:00
Reece H. Dunn
7aa506d145
Use the error context API in espeak_ng_CompilePhonemeData.
2016-01-04 13:42:43 +00:00
Reece H. Dunn
57eb9628d6
Use the error context API in espeak_ng_CompileIntonation.
2016-01-04 13:28:38 +00:00
Reece H. Dunn
82681567e5
Use the error context API in espeak_ng_CompileMbrolaVoice.
2016-01-04 11:35:24 +00:00
Reece H. Dunn
a3f0795fb7
Use the error context API in espeak_ng_CompileDictionary.
2016-01-04 11:28:18 +00:00
Reece H. Dunn
9d860cb180
Support displaying error context information.
2016-01-04 11:07:12 +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
378490b65f
Create an error context API.
...
This will allow the espeak-ng methods to provide more context
information for the errors that can then be used in things like
GUI applications.
2016-01-04 10:24:38 +00:00
Reece H. Dunn
feae9a2a95
Merge remote-tracking branch 'ValdisVitolins/master'
2016-01-03 20:45:38 +00:00
Reece H. Dunn
a8eb65ee61
Fix the logic from commit 3343bb45b6 that caused the end of the speech to be clipped.
2016-01-03 20:44:27 +00:00
Reece H. Dunn
59006f4762
Fix the LoadDataFile logic from commit 619fc6424d
2016-01-03 20:08:49 +00:00
Reece H. Dunn
8c0d4a993d
Move the error formatting code to error.c.
2016-01-03 16:48:05 +00:00
Reece H. Dunn
32655d264d
Make LoadSpect return an espeak_ng_STATUS code.
2016-01-03 15:02:14 +00:00
Reece H. Dunn
619fc6424d
Make LoadDataFile return an espeak_ng_STATUS code.
2016-01-03 14:53:11 +00:00
Reece H. Dunn
1210464a31
CompileToneSpec always returns 0, so make it return void.
2016-01-03 14:34:03 +00:00
Reece H. Dunn
a04a7af003
CompileSound always returns 0, so make it return void.
2016-01-03 14:31:36 +00:00
Reece H. Dunn
77eb4262f2
Use espeak_ng_PrintStatusCodeMessage for espeak_ng_Initialize error formatting.
2016-01-03 14:21:13 +00:00
Reece H. Dunn
f8b3764bef
Create espeak-ng APIs for formatting espeak_ng_STATUS codes.
2016-01-03 14:16:17 +00:00
Reece H. Dunn
ccb409c600
Return an espeak_ng_STATUS code in LoadSpectSeq.
2016-01-03 14:15:37 +00:00
Reece H. Dunn
ae0d188c73
Fix the allocation of the spect->frames array. [clang scan-build]
2016-01-03 13:03:05 +00:00
Reece H. Dunn
1d14c2a2f1
Always pass plist to WritePhMnemonic [clang scan-build]
...
The clang scan-build static analysis tool warns of a null pointer
dereference in WritePhMnemonic. This is only for phonSWITCH codes,
which is guarded against in the calls that pass NULL to plist, so
the null dereference should not trigger.
Always passing plist supresses this warning, and prevents any
future errors.
2016-01-03 12:49:01 +00:00
Reece H. Dunn
fb99a17b7f
new_translator may be NULL when processing the charset command [clang scan-build]
2016-01-03 12:26:38 +00:00
Reece H. Dunn
9ff06ce43c
Map the correct espeak-ng status codes to EE_NOT_FOUND.
2016-01-03 11:22:00 +00:00
Reece H. Dunn
4001a7fbdf
Fix infinite recursions in the espeak_SetVoiceBy(Name|Properties) implementations.
2016-01-02 19:50:05 +00:00
Reece H. Dunn
0dcc1083a2
Fix mapping to the EE_NOT_FOUND status code.
2016-01-02 19:35:08 +00:00
Reece H. Dunn
76d8c67b52
Fix the mutex logic in fifo.c from the espeak_ng_STATUS changes.
2016-01-02 19:29:17 +00:00
Reece H. Dunn
6aeb5a26f0
Replace the remaining espeak_ERROR code usage with espeak_ng_STATUS.
2016-01-02 19:24:39 +00:00
Reece H. Dunn
3343bb45b6
Make the event API use espeak_ng_STATUS.
2016-01-02 19:17:19 +00:00
Reece H. Dunn
e69f0f41f0
Make LoadMbrolaTable return espeak_ng_STATUS.
2016-01-02 18:59:18 +00:00
Reece H. Dunn
df170d1c48
Create an espeak-ng version of espeak_SetVoiceBy(Name|Properties).
2016-01-02 18:42:26 +00:00
Reece H. Dunn
cec20ab48a
Move callback API implementations back to speech.c.
2016-01-02 18:30:36 +00:00
Reece H. Dunn
d5fdd0eb92
Create an espeak-ng version of espeak_Terminate.
2016-01-02 18:24:53 +00:00
Reece H. Dunn
4ba60623e8
Create an espeak-ng version of espeak_Synchronize.
2016-01-02 18:20:22 +00:00
Reece H. Dunn
079712ab79
Create an espeak-ng version of espeak_Cancel.
2016-01-02 18:10:35 +00:00
Reece H. Dunn
50120034ad
Create an espeak-ng version of espeak_SetPunctuationList.
2016-01-02 18:06:44 +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
95b1fdc4b9
Create an espeak-ng version of espeak_Synth_Mark.
2016-01-02 17:17:52 +00:00
Reece H. Dunn
06cbd9d096
Create an espeak-ng version of espeak_Synth.
2016-01-02 17:06:01 +00:00
Reece H. Dunn
21d29154ce
Propagate the Synthesize status return code through sync_espeak_(Key|Char).
2016-01-02 16:20:37 +00:00
Reece H. Dunn
bf6f6f093f
Make Synthesize return an espeak_ng_STATUS code.
2016-01-02 15:55:28 +00:00
Reece H. Dunn
f2bd7f4b51
Don't add the size parameter to the synthesize method structures as the synthesize methods don't use the size parameter.
2016-01-02 15:22:50 +00:00
Reece H. Dunn
5e42051a30
Move the espeak callback APIs to espeak_api.c.
2016-01-02 15:01:30 +00:00
Reece H. Dunn
7d8d91698f
Remove the f_logespeak logging code.
2016-01-02 14:55:32 +00:00
Reece H. Dunn
e294760385
Return the status from Synthesize directly.
2016-01-02 14:47:36 +00:00
Reece H. Dunn
b843d2a415
Remove the unused size parameter in the sync_espeak_Synth commands.
2016-01-02 14:44:01 +00:00
Reece H. Dunn
7569d1c4c3
Create an espeak-ng version of espeak_Key.
2016-01-02 14:33:32 +00:00
Reece H. Dunn
4ca39ab26c
Create an espeak-ng version of espeak_Char.
2016-01-02 14:23:36 +00:00
Reece H. Dunn
8b32702627
Move the espeak_CompileDictionary implementation to espeak_api.c.
2016-01-02 13:57:00 +00:00
Reece H. Dunn
71482ec913
Move the espeak_Initialize implementation to espeak_api.c.
2016-01-02 13:46:58 +00:00
Reece H. Dunn
d3dc398fd0
Rename src/libespeak-ng/{speak_lib => speech}.c.
2016-01-02 13:32:29 +00:00
Reece H. Dunn
dfdc76e1d8
Use espeak_ng_STATUS codes for the fifo API.
2016-01-02 13:27:35 +00:00
Reece H. Dunn
563e4e3769
Use ENS_ for eSpeak NG error codes, and standardize on a numbering scheme.
2016-01-02 12:20:25 +00:00
Reece H. Dunn
f9ea83430e
Use errno codes in place of ENE_(READ|WRITE)_ERROR.
2016-01-02 11:58:12 +00:00
Reece H. Dunn
912a2f7e3f
Make ReadPhFile return a status/error code.
2016-01-02 11:47:54 +00:00
Reece H. Dunn
09d071046a
Check for ENE_VERSION_MISMATCH from espeak_ng_Initialize.
2016-01-02 11:34:58 +00:00
Reece H. Dunn
74db6dac63
Use the ENOMEM errno code instead of ENE_OUT_OF_MEMORY.
2016-01-02 10:49:37 +00:00
Reece H. Dunn
0d0bb33297
espeak-ng: support specifying the device name from the command line
2016-01-01 19:58:09 +00:00
Reece H. Dunn
b28a0001c0
espeak-ng: use the new espeak-ng initialization APIs
2016-01-01 19:01:16 +00:00
Reece H. Dunn
975ffade6c
Fix a logical error.
2016-01-01 18:51:56 +00:00
Reece H. Dunn
386d11a637
Expose a parameter specifying the device name to espeak_ng_InitializeOutput.
2016-01-01 17:23:38 +00:00
Reece H. Dunn
14d879aa97
Initialize the phoneme options in espeak_ng_Initialize.
2016-01-01 17:11:15 +00:00
Reece H. Dunn
9fe525fb13
Move more code into espeak_ng_InitializeOutput.
2016-01-01 16:40:16 +00:00
Reece H. Dunn
4f1e7af0da
Expose select_output as espeak_ng_InitializeOutput.
2016-01-01 16:27:32 +00:00
Reece H. Dunn
32819f7957
Map the espeak_AUDIO_OUTPUT enumeration to espeak_ng_OUTPUT_MODE flags.
2016-01-01 16:18:24 +00:00
Reece H. Dunn
e341068d57
Move more initialization logic to espeak_ng_Initialize.
2016-01-01 16:06:31 +00:00
Reece H. Dunn
75f7558801
Share the initialise implementation between libespeak-ng and speak-ng.
2016-01-01 14:39:52 +00:00