Commit Graph
66 Commits
Author SHA1 Message Date
Samuel Thibault a660fc04cc Add more const qualifiers on static arrays
So we know they are just tables, get protected from overflows, and get shared between processes
2022-06-09 08:43:50 +02:00
Valdis Vitolins 541cd906f7 Issue #686: make description of --stdin more clear 2020-04-09 17:27:45 +03:00
Reece H. Dunn e11cd42b03 fix #699: avoid samplerate clashing with LTO in gcc 10. 2020-01-09 21:11:42 +00:00
golubovsky 009b6b5d14 Finished the voice load code. Dumping voice def does not seem possible
because it is not stored in a single place.

Signed-off-by: golubovsky <golubovsky@gmail.com>
2019-02-23 22:51:32 -05:00
golubovsky 439f7f32d5 First part of the patch: add option --load
Option --load makes espeak-ng consider the voice name provided a name of
a file relative to the current directory.

Signed-off-by: golubovsky <golubovsky@gmail.com>
2019-02-21 22:50:09 -05:00
Reece H. Dunn 9638750579 Always flush stdout when reading stdin line by line. 2018-08-22 07:42:27 +01:00
Reece H. Dunn d26fce3217 Be more specific in the missing --compile voice name, and fix punctuation. 2018-03-30 08:46:18 +01:00
Reece H. Dunn 7c7081cb32 Handle the '--compile=' case when reporting a 'Voice name not specified' error. 2018-03-30 08:43:20 +01:00
Juho Hiltunen fb175ec600 Print an error message if voice is not specified with --compile
Prevents a segfault.
2018-03-30 10:24:46 +03:00
Reece H. Dunn bb19c7a336 Release the memory allocated by p_text in espeak-ng.c. 2018-03-22 19:37:25 +00:00
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.
2017-12-09 17:34:05 +02:00
Reece H. Dunn 941f439ca7 espeak-ng.c: Fix -Wmissing-prototypes warnings. 2017-10-11 07:57:31 +01:00
Reece H. Dunn 882c2651e1 Fix setting the default voice from espeak_SetVoiceByProperties. 2017-08-19 12:08:39 +01:00
Reece H. Dunn 1a0594c62f Fix reading stdin buffers larger than 1000.
Patch by https://github.com/ChliHug.
2017-02-02 07:22:59 +00:00
Reece H. Dunn e372d84348 espeak-ng: add a <phsource-dir> argument to --compile-phonemes. 2017-01-19 21:23:22 +00:00
Reece H. Dunn 59ca718d40 Always use 'en' as the default voice/language. 2017-01-19 19:57:06 +00:00
Reece H. Dunn a45b58d106 Fix the eSpeak NG project name used in '--version'. 2016-09-24 12:53:32 +01:00
Reece H. Dunn 4920ecc79c Move espeak-data to espeak-ng-data to avoid conflicting with upstream espeak. 2016-09-10 09:44:13 +01:00
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.
2016-08-28 10:57:10 +01:00
Reece H. Dunn 8f44217e70 Fix wave file truncation when reading multiline text from stdin or FIFO (line-by-line reading mode). 2016-08-16 20:55:31 +01:00
Reece H. Dunn 326d199f49 List the help option when displaying the help message. 2016-08-16 20:38:38 +01:00
Ondřej Lysoněk 7659aaa2e8 Support reading input from named pipes
Added support for line-by-line input reading from unix FIFOs.
2016-08-15 18:56:57 +01:00
Reece H. Dunn 1d4fa18884 speak-ng: use the espeak-ng.c implementation in synchronous playback mode 2016-02-02 07:34:57 +00:00
Reece H. Dunn 77b5f6a1c0 Use BCP 47 conformant language codes for the languages and accents. 2016-01-23 18:41:00 +00:00
Reece H. Dunn 03fdc8bc31 Check fseek calls in CloseWavFile(espeak-ng.c). [Coverity] 2016-01-22 19:35:09 +00:00
Reece H. Dunn eaa0c9aa08 Fix truncated fgetc return value in main(espeak-ng.c). [Coverity] 2016-01-21 20:10:13 +00:00
Reece H. Dunn 96c43f3eb2 Clean up the include files to make them consistent. 2016-01-16 17:54:39 +00:00
Reece H. Dunn c22550afb5 Use the NetBSD getopt_long implementation on Windows.
This makes the espeak-ng.c and speak-ng.c source code easier to
read and maintain. It also addresses bugs in command-line argument
parsing with the espeak implementation, for example it treats
`--compile-phonemes` as `--compile` due to an argument matching bug.
2016-01-13 22:05:41 +00:00
Reece H. Dunn a64e048c51 Check malloc/realloc in the flag_stdin codepath of espeak-ng.c. 2016-01-12 07:27:43 +00:00
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.
2016-01-11 07:03:00 +00:00
Reece H. Dunn 0cc0300328 Fix gcc sign conversion warnings in espeak-ng.c. 2016-01-10 11:38:05 +00:00
Reece H. Dunn 11101806ce Support building espeak-ng.exe with Visual C++. 2016-01-09 13:32:16 +00:00
Reece H. Dunn 5ebd28e4bc Use HAVE_GETOPT_H for the getopt.h checks. 2016-01-09 14:17:07 +00:00
Reece H. Dunn c45e70142b espeak-ng: display the underlying error on failure 2016-01-07 22:51:36 +00:00
Reece H. Dunn 72db232ec3 Move include/espeak{-ng => }/speak_lib.h. 2016-01-04 19:45:23 +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 77eb4262f2 Use espeak_ng_PrintStatusCodeMessage for espeak_ng_Initialize error formatting. 2016-01-03 14:21:13 +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 09d071046a Check for ENE_VERSION_MISMATCH from espeak_ng_Initialize. 2016-01-02 11:34:58 +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 660f18f3a3 Make use of the new espeak_ng_InitializePath API. 2016-01-01 14:05:33 +00:00
Reece H. Dunn 9e643b5620 Fix clang -Wunreachable-code-break warnings. 2015-12-30 15:54:32 +00:00
Reece H. Dunn d9258426bd Fix GCC -Wsign-compare warnings. 2015-12-30 15:11:27 +00:00
Reece H. Dunn 230ddd9fe2 Generate build errors if phoneme or language data files contain errors. 2015-12-29 15:00:31 +00:00