Reece H. Dunn
dced9f58fd
Clean up the decoder memory in espeak_Terminate.
8 years ago
Reece H. Dunn
63e2826753
Ensure that the old translator is not used after calling espeak_Terminate.
8 years ago
Reece H. Dunn
ae6116bf97
Fix calling espeak_Synth without first setting a voice, with tests.
8 years ago
Reece H. Dunn
6ab1314843
Move outbuf_size to where it is actually used.
8 years ago
Reece H. Dunn
9fc2efb1fa
Don't re-initialize my_audio if espeak_ng_InitializeOutput is called multiple times.
8 years ago
Reece H. Dunn
9af96da469
Make the encoding.h API public.
8 years ago
Reece H. Dunn
62d4aff9a9
Remove the now unused option_multibyte variable.
8 years ago
Reece H. Dunn
ec8a7b810f
Use the text decoder object at the top-level Synthesize/espeak_TextToPhonemes call, not in TranslateClause.
8 years ago
Reece H. Dunn
7c16ac543c
Use the text decoder API in readclause.c.
8 years ago
Reece H. Dunn
8933185de4
Remove the unused f_in argument to the Read/Translate/SpeakNextClause functions.
8 years ago
Reece H. Dunn
3ce7fab7db
Return the actual error from GetFileLength instead of 0.
8 years ago
Reece H. Dunn
df6a2228b7
Use -EISDIR instead of -2 in GetFileLength for directories.
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
d42ba93959
Don't use the HOME directory as the espeak-ng-data path.
8 years ago
Reece H. Dunn
773da20c16
Support using home (data) paths other than 'espeak-ng-data'.
8 years ago
Reece H. Dunn
96e34565ed
Use a default buffer length of 60mS to fix using MBROLA voices.
8 years ago
Reece H. Dunn
d828156576
Reduce buffer length to 50mS and don't override it when using eSpeak for audio.
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
a506dc5241
Fix setting saved_parameters in espeak_ng_Initialize.
This fixes a regression introduced in commit
e341068d57
.
This is needed for the case when espeak_Cancel is called before
calling espeak_Synth.
8 years ago
Reece H. Dunn
36d5a8b67b
Revert "Don't reset the parameters unless they have been set."
This reverts commit 26e453dd2f
.
8 years ago
Reece H. Dunn
26e453dd2f
Don't reset the parameters unless they have been set.
This is based on a patch by Samuel Thibault.
This is needed when espeak_Cancel is called before espeak_Synth,
like can be done in brltty.
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
d2478cc453
Flush the audio if speech has stopped, drain the audio if speech is still active.
8 years ago
Reece H. Dunn
bc674081cd
Check the return from synth_callback in the second call to that function in Synthesize.
8 years ago
Reece H. Dunn
a48576a364
Return ENS_SPEECH_STOPPED from Synthesize when the speech callback returns >1 to stop the audio.
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
Reece H. Dunn
f6536be5b2
Support determining the install path when installed to the 32-bit Windows program files directory.
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
Reece H. Dunn
6cf06a49ef
Add compatibility for the missing S_ISFIFO on Windows.
8 years ago
Reece H. Dunn
4920ecc79c
Move espeak-data to espeak-ng-data to avoid conflicting with upstream espeak.
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
Christopher Brannon
3ed0b5cd0f
espeak_ng_Cancel(): discard the audio, don't close the device!
This function should just discard the currently playing audio,
rather than close the audio device. After all,
we will probably want to synthesize something else later.
9 years ago
Reece H. Dunn
d4bc2c328e
speech: Avoid warnings when using my_mode as a flag-based enumeration.
9 years ago
Reece H. Dunn
496ff35634
WVoiceChanged is not used, so remove it.
9 years ago
Reece H. Dunn
b7b2567eb1
Build the Visual Studio 2015 Windows project with pcaudiolib xaudio2 support.
9 years ago
Reece H. Dunn
c944a17d7d
Output any audio errors to stderr.
9 years ago
Reece H. Dunn
4f676ed175
Use pcaudiolib for the audio API layer.
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
94c5efe0b3
Remove calls to wave_set_callback_is_output_enabled.
These calls are used to pre-emptively exit when writing audio
data. This is also handled within dispatch_audio. The difference
is that this callback could allow espeak to cancel quicker. In
practice it does not make much difference.
9 years ago
Reece H. Dunn
2a628e982f
Remove calls to wave_get_write_position.
This call was used to update the written sample count used by
wave_get_remaining_time. As that function has been removed, this
code is no longer needed.
9 years ago
Reece H. Dunn
f138558fe7
Fix the USE_ASYNC and wave_* API usage logic.
9 years ago
Reece H. Dunn
914e64aba8
option_waveout is no longer used in libespeak-ng, so remove it
9 years ago
Reece H. Dunn
c9c0aca34f
Use the wave_* APIs for non-async audio.
9 years ago
Reece H. Dunn
f07dc419a6
Fix audio output in espeak-ng when USE_ASYNC is not defined.
9 years ago
Reece H. Dunn
c4a7ffba33
Inline the call to SynthOnTimer.
9 years ago
Reece H. Dunn
7a50cbcdcc
MSI: set the Path registry value to the install directory
9 years ago
Reece H. Dunn
02b7359b6a
Fix a potential null pointer dereference in espeak_ng_SynthesizeMark. [Coverity]
9 years ago
Reece H. Dunn
6a4fc79078
Fix a potential null pointer dereference in espeak_ng_Synthesize. [Coverity]
9 years ago
Reece H. Dunn
bbd981efb8
Use malloc/strdup instead of Alloc.
9 years ago
Reece H. Dunn
325014da42
Use free instead of Free as free checks for NULL.
9 years ago