Commit Graph
38 Commits
Author SHA1 Message Date
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
Reece H. Dunn 660f18f3a3 Make use of the new espeak_ng_InitializePath API. 2016-01-01 14:05:33 +00:00
Reece H. Dunn 44dbfc1b31 Share the init_path implementation between libespeak-ng and speak-ng. 2016-01-01 13:52:53 +00:00
Reece H. Dunn c2811d074e Make LoadPhData return an espeak_ng_STATUS code. 2016-01-01 13:17:11 +00:00
Reece H. Dunn 104a9de6da Expose a device name parameter to wave_open. 2015-12-31 15:25:17 +00:00
Reece H. Dunn 843f4d0dd4 Combine wave_init and wave_open. 2015-12-31 13:47:48 +00:00
Reece H. Dunn b11d540718 Fix GCC -Wunused-parameter warnings. 2015-12-30 15:01:31 +00:00
Reece H. Dunn 8091938430 The fill_zeros parameter of WavegenFill is not used, so remove it. 2015-12-30 09:06:19 +00:00
Reece H. Dunn bc288a04f4 Implement espeak_SetVoiceByProperties directly from the SetVoiceByProperties implementation. 2015-12-29 17:24:59 +00:00
Reece H. Dunn 9ab5fad596 Implement espeak_SetVoiceByName directly from the SetVoiceByName implementation. 2015-12-29 17:15:43 +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
Reece H. Dunn 522e7c4d51 Revert commit 14a2fb39cf
This commit has been reported to cause distortions in phoneme
pitches and speeds.
2015-12-28 17:54:17 +00:00
Reece H. Dunn 5d295bdd30 Merge remote-tracking branch 'nyqvist/master'
Conflicts:
	src/libespeak-ng/compiledict.c
	src/libespeak-ng/readclause.c
	src/libespeak-ng/speak_lib.c
	src/libespeak-ng/voices.c
	src/libespeak-ng/wave_sada.c
	src/libespeak-ng/wavegen.c
2015-12-28 13:14:46 +00:00
Reece H. Dunn 5bbc0d3743 Remove the PLATFORM_RISCOS code.
This is from the old espeak RiscOS port that has been removed.

If/when the espeak-ng program is ported to RiscOS, this will be
done in a different, more maintainable way.
2015-12-28 12:46:14 +00:00
Reece H. Dunn e69c936329 Remove the debugging code.
The debugging code is done inconsistently, mainly to trace the
event and audio output logic. This makes it harder to understand
the code flow for logic that is not enabled by default.

As such the debugging code makes the code harder to maintain.
2015-12-28 12:33:14 +00:00
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
2015-12-28 12:05:17 +01:00
Reece H. Dunn 3e99752d0c Check and fix source code formatting. 2015-12-27 22:34:53 +00:00
Reece H. Dunn f0c2c4cca2 Remove extra newlines from the files to provide consistent spacing. 2015-12-23 11:32:03 +00:00
Reece H. Dunn d345d74f64 Remove braces around single-line if/while/for/etc. and related cleanup. 2015-12-22 20:40:10 +00:00
Reece H. Dunn 9a837c8182 Remove parentheses around return statements. 2015-12-22 16:24:01 +00:00
Reece H. Dunn 12e0bb122b Reformat the code using the uncrustify program. 2015-12-22 15:06:50 +00:00
Reece H. Dunn 1c6681e3d4 Make espeak-ng use strncpy0, etc. from libespeak-ng.
This removes the implementation of those functions from espeak-ng
and use the versions in libespeak-ng.

NOTE: This is needed to cross-compile to Windows.
2015-12-19 17:03:47 +00:00
Reece H. Dunn 66c2831bed Use intptr_t from stdint.h instead of a custom long64 typedef. 2015-12-18 21:41:28 +00:00
Reece H. Dunn c71b24a9a5 Use a consistent license notice in the source files. 2015-12-18 07:06:29 +00:00
Reece H. Dunn cbe8695fcb Remove the * box around the file headers. 2015-12-17 23:45:36 +00:00
Reece H. Dunn 36be9ac13f Use the default uncrustify config (with indentation changes) to reformat the code. 2015-12-17 07:40:24 +00:00
Reece H. Dunn 5e0050419d Remove comments that deliniate the start and end of functions, etc.. 2015-12-15 22:26:02 +00:00
Reece H. Dunn 08821f262f Remove commented out code. 2015-12-14 23:13:56 +00:00
Reece H. Dunn bda5252b3f espeak-ng: implement and use --compile-intonations and --compile-phonemes command-line options 2015-12-13 17:45:11 +00:00
Reece H. Dunn 186916afb6 Remove the code within '#ifdef deleted' statements. 2015-12-12 09:46:03 +00:00
Reece H. Dunn 66aa52e485 Define a compatibility macro for platforms that don't have S_ISDIR. 2015-12-10 22:26:35 +00:00
Reece H. Dunn 1042d88f56 Use S_ISDIR instead of S_IFMT/S_IFDIR to fix building with gcc in c11 mode. 2015-12-10 22:20:51 +00:00
Reece H. Dunn f7dfc38dd7 Use the C compiler to build C files; restructuring.
This moves the libespeak source (*.cpp) files to src/libespeak-ng
and renames the C files (libespeak, espeak, speak) so they have
a .c file extension.
2015-12-09 23:33:00 +00:00