Reece H. Dunn
6d168ead22
fifo.c: Fix -Wmissing-prototypes warnings.
7 years ago
Reece H. Dunn
efd1df3206
Build a test version of libespeak-ng that exposes the internal APIs.
8 years ago
Reece H. Dunn
71c010b712
Remove unused wchar.h and wctype.h includes.
8 years ago
Reece H. Dunn
dee3799f82
issue #172: flush audio on cancel requests.
This is a partial fix for an audio regression. The other part of
the fix requires a change in pcaudiolib to reopen the audio device
on flush requests for affected audio drivers/devices.
8 years ago
Reece H. Dunn
dae9cda060
Revert "issue 172: fix sluggish speech for stopped speech."
This reverts commit f9ab812e00
.
8 years ago
Reece H. Dunn
f9ab812e00
issue 172: fix sluggish speech for stopped speech.
This restores the behaviour removed in commit
ca831d236a
.
When using eSpeak for audio and eSpeak in a server, using the async
speech requests, that code stopped the audio as soon as possible
from a cancel request. This allows servers like brltty to be more
responsive.
8 years ago
Reece H. Dunn
52abe35300
Revert "Stop audio output before fifo_stop is called"
This reverts commit 1b5ea47ea4
.
This patch is causing lockups when using this with servers like brltty.
8 years ago
Rui Batista
b7a42e19a7
Remove commented code.
8 years ago
Rui Batista
1b5ea47ea4
Stop audio output before fifo_stop is called
This allows process_espeak_command to stop as soon as possible
Using emacspeak server with espeak-ng (still not published) found that audio was only being stoped after a command is processed (i.e. using pcaudiolib).
This fixes this issue.
8 years ago
Christopher Brannon
1d8cec684b
Fix a tricky thread synchronization bug.
If a command ran to completion before the thread calling
fifo_add_command woke up, that thread would wait forever
for the command to start, never realizing that it had already
finished.
8 years ago
Christopher Brannon
ad436e1172
Clear my_stop_is_acknowledged before waiting on it.
8 years ago
Christopher Brannon
2e9ec8e06a
Fix race condition.
8 years ago
Christopher Brannon
0177e1d686
Do not try to re-lock an already-locked mutex.
8 years ago
Reece H. Dunn
2893de65ac
Ensure that the code is consistently formatted.
8 years ago
Rui Batista
34f315363b
Fix hang when waiting for condition variables.
8 years ago
Rui Batista
1bbba9bc3b
Use condition variables instead of semaphores in fifo.
8 years ago
Reece H. Dunn
bb465a45d8
Move the clock_gettime2 and add_time_in_ms definitions to event.h.
9 years ago
Reece H. Dunn
ca831d236a
Don't call wave_close in fifo.c.
This is handled by calls to espeak_ng_Cancel/espeak_Cancel and
espeak_ng_Terminate/espeak_Terminate.
9 years ago
Reece H. Dunn
be93c8b3e7
Remove calls to wave_is_busy.
Removing these calls do not impact on the behaviour of the program
and simplify the wave.h API.
9 years ago
Reece H. Dunn
a6f6a337b1
Add a missing pthread_mutex_unlock call in fifo_add_commands. [Coverity]
9 years ago
Reece H. Dunn
7d900fb8b0
Remove includes from internal header files.
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
39cd145ba3
Make close_stream(fifo.c) return a status code (don't assert on failure) [clang scan-build]
9 years ago
Reece H. Dunn
72db232ec3
Move include/espeak{-ng => }/speak_lib.h.
9 years ago
Reece H. Dunn
76d8c67b52
Fix the mutex logic in fifo.c from the espeak_ng_STATUS changes.
9 years ago
Reece H. Dunn
dfdc76e1d8
Use espeak_ng_STATUS codes for the fifo API.
9 years ago
Reece H. Dunn
b11d540718
Fix GCC -Wunused-parameter warnings.
9 years ago
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.
9 years ago
Reece H. Dunn
3e99752d0c
Check and fix source code formatting.
9 years ago
Reece H. Dunn
f0c2c4cca2
Remove extra newlines from the files to provide consistent spacing.
9 years ago
Reece H. Dunn
d345d74f64
Remove braces around single-line if/while/for/etc. and related cleanup.
9 years ago
Reece H. Dunn
9a837c8182
Remove parentheses around return statements.
9 years ago
Reece H. Dunn
12e0bb122b
Reformat the code using the uncrustify program.
9 years ago
Reece H. Dunn
66c2831bed
Use intptr_t from stdint.h instead of a custom long64 typedef.
9 years ago
Reece H. Dunn
c71b24a9a5
Use a consistent license notice in the source files.
9 years ago
Reece H. Dunn
cbe8695fcb
Remove the * box around the file headers.
9 years ago
Reece H. Dunn
36be9ac13f
Use the default uncrustify config (with indentation changes) to reformat the code.
9 years ago
Reece H. Dunn
08821f262f
Remove commented out code.
9 years ago
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.
9 years ago
jonsd
eaba1458d3
[1.47.13]
Program changes to enable audio output from Windows DLL.
Language changes: an, de, en, nl, ta.
git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@365 d46cf337-b52f-0410-862d-fd96e6ae7743
11 years ago
jonsd
10bd23b3b4
[1.47.12]
Change program code for espeak/libespeak to C, remove C++ features.
Language changes: af, ga, grc, hu, nl, sw, ta
git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@364 d46cf337-b52f-0410-862d-fd96e6ae7743
11 years ago
Reece H. Dunn
6dd5529dd8
autotools: add support for disabling async command support (--without-async/--with-async=no)
11 years ago
Reece H. Dunn
f9b7bbab1c
1.46.02
12 years ago
jonsd
5ac192df81
[1.46.10]
Add --version command-line option.
Allow hexadecimal numbers for UTF-8 bytes in rules in *_rules files.
wave_pulse.cpp, ensure wave_close is not called again while waiting.
git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@278 d46cf337-b52f-0410-862d-fd96e6ae7743
13 years ago
Reece Dunn
5c06650486
1.46.09
13 years ago
jonsd
d18532991a
[1.45.45]
Fixed bug where SSML voice change didn't remember an initially specified Klatt variant.
Removed some unused variables and redundant initializations.
Patch to fix a spike from Klatt function setzeroabc()
git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@275 d46cf337-b52f-0410-862d-fd96e6ae7743
13 years ago
jonsd
b053a790df
Program restructure and tidy-up.
Change Translator from Class to Struct, so avoiding use of Classes in eSpeak.
Make more functions and variables "extern".
git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@209 d46cf337-b52f-0410-862d-fd96e6ae7743
16 years ago
jonsd
c8eeed7217
[1.37.02] Updates to languages: af, fr, pt, cs
git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@176 d46cf337-b52f-0410-862d-fd96e6ae7743
17 years ago
jonsd
05aeea7858
[1.27] Only keep one primary stress when adding prefixes.
Add stress_rule=4, altepenultimate stress.
Change license to GPL version 3.
git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@56 d46cf337-b52f-0410-862d-fd96e6ae7743
18 years ago