Commit Graph
455 Commits
Author SHA1 Message Date
Valdis Vitolins c5355ed94e Fix for issue #69 Speaking '1,,2' in German only says 'eins'. 2017-01-20 19:37:04 +02:00
Reece H. Dunn 773da20c16 Support using home (data) paths other than 'espeak-ng-data'. 2017-01-19 22:04:20 +00:00
Reece H. Dunn 0367abf98f Support loading phoneme data files relative to the phsrc path. 2017-01-19 21:44:51 +00:00
Reece H. Dunn eb91c8dfce espeak_ng_CompilePhonemeDataPath: Allow the user to specify the source and destination paths for the phoneme data. 2017-01-19 21:20:49 +00:00
Reece H. Dunn e0a598e968 Use variables for the phoneme source and destination paths. 2017-01-19 21:00:45 +00:00
Reece H. Dunn b67c463852 Inline CompilePhonemeData2 into espeak_ng_CompilePhonemeData. 2017-01-19 20:52:06 +00:00
Reece H. Dunn ca77ce928b CompilePhonemeData2: Inline the single use of the source parameter. 2017-01-19 20:50:07 +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 96e34565ed Use a default buffer length of 60mS to fix using MBROLA voices. 2017-01-16 19:41:34 +00:00
Valdis Vitolins 7ad277e39e Fixed typo 2017-01-15 22:13:13 +02:00
Valdis Vitolins d9d7006d7a Comments about implementation for utf8_in2() 2017-01-15 22:08:39 +02:00
Valdis Vitolins 059543ceb0 Fix for issue #195 Different non-Latin diacritized consonants are wrongly considered as one doubled 2017-01-15 21:06:32 +02:00
Reece H. Dunn 006bd842c3 Fix indentation in wavegen.c. 2017-01-14 19:16:11 +00:00
Valdis Vitolins 640f0d8160 Typo fixes 2017-01-13 21:19:59 +02:00
Reece H. Dunn d828156576 Reduce buffer length to 50mS and don't override it when using eSpeak for audio. 2017-01-12 07:40:14 +00:00
Reece H. Dunn dae9cda060 Revert "issue 172: fix sluggish speech for stopped speech."
This reverts commit f9ab812e00.
2017-01-12 07:14:02 +00:00
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.
2017-01-12 07:07:35 +00:00
Reece H. Dunn 36d5a8b67b Revert "Don't reset the parameters unless they have been set."
This reverts commit 26e453dd2f.
2017-01-12 06:55:55 +00:00
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.
2017-01-11 07:30:19 +00:00
Reece H. Dunn 2ccaa7f002 Improve the IsLetterGroup comments. 2017-01-10 19:34:12 +00:00
Reece H. Dunn af1fae46de Fix formatting of the previous changes to match style guidelines. 2017-01-10 19:26:40 +00:00
Valdis Vitolins a621ad46e7 Implementation for issue #155 2017-01-09 19:05:54 +02:00
Reece H. Dunn 9bb9e98f84 Don't exclude the test voice directory.
This directory is no longer available, so the check is now
redundant.
2016-12-29 15:06:55 +00:00
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.
2016-12-24 09:00:55 +00:00
Reece H. Dunn d2478cc453 Flush the audio if speech has stopped, drain the audio if speech is still active. 2016-12-23 19:34:13 +00:00
Reece H. Dunn bc674081cd Check the return from synth_callback in the second call to that function in Synthesize. 2016-12-23 19:17:18 +00:00
Reece H. Dunn a48576a364 Return ENS_SPEECH_STOPPED from Synthesize when the speech callback returns >1 to stop the audio. 2016-12-23 18:56:58 +00:00
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.
2016-12-21 16:00:51 +00:00
Reece H. Dunn f6536be5b2 Support determining the install path when installed to the 32-bit Windows program files directory. 2016-12-17 14:36:46 +00:00
Rui Batista b7a42e19a7 Remove commented code. 2016-12-11 18:54:12 +00:00
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.
2016-12-11 18:17:08 +00:00
Reece H. Dunn f5d266db97 Don't write random bytes to the end of _phtrans files.
Patch by Samuel Thibault.
2016-12-07 06:56:28 +00:00
Reece H. Dunn 8320581675 Fix running espeak-ng on big-endian architectures.
Patch by Samuel Thibault.
2016-11-13 20:51:22 +00:00
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.
2016-10-10 21:02:15 -07:00
Christopher Brannon 0436ae71c0 Mutex needs to be locked when waiting on the condition variable. 2016-10-10 18:24:15 -07:00
Christopher Brannon ad436e1172 Clear my_stop_is_acknowledged before waiting on it. 2016-10-10 18:16:34 -07:00
Christopher Brannon 2e9ec8e06a Fix race condition. 2016-10-10 18:05:06 -07:00
Christopher Brannon 0177e1d686 Do not try to re-lock an already-locked mutex. 2016-10-10 18:04:16 -07:00
Reece H. Dunn 2893de65ac Ensure that the code is consistently formatted. 2016-10-09 17:39:01 +01:00
Rui Batista cc51af059f Use condition variables in event.c instead of semaphores. 2016-10-09 17:20:31 +01:00
Rui Batista 34f315363b Fix hang when waiting for condition variables. 2016-10-09 15:58:08 +01:00
Rui Batista 1bbba9bc3b Use condition variables instead of semaphores in fifo. 2016-10-09 14:51:08 +01:00
Rui Batista 7b82e39793 Make strcpy calls in load dictionary copy at most 40 bytes so clang __strcpy_check does not get triggered (possible buffer overflow?) 2016-10-05 13:15:48 +01:00
Reece H. Dunn 547258e4bf Use an Open Source implementation of ieee80.c. 2016-09-24 13:40:05 +01:00
Reece H. Dunn f235c7cb00 Fix the version string references in '--version' and the Windows installer. 2016-09-24 12:51:29 +01:00
Valdis Vitolins 76ac24fbe4 Fixed TODO comment removed 2016-09-10 15:55:16 +03:00
Valdis Vitolins 5ef006e48e Merge branch 'master' of https://github.com/espeak-ng/espeak-ng 2016-09-10 13:21:21 +03:00
Reece H. Dunn 6cf06a49ef Add compatibility for the missing S_ISFIFO on Windows. 2016-09-10 10:24:46 +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
Valdis Vitolins 92eae4f322 Updates for issue #103 Maximum group number which works is actually 62 2016-09-05 22:05:55 +03:00