Commit graph

118 commits

Author SHA1 Message Date
William Hubbs
26ab109bd8 moved the check for stop out of the loop
In the callback, we should check to see if the stopped flag is true
whether or not we are processing audio.
2009-06-23 16:13:52 -05:00
William Hubbs
b108764b02 removed the audio_callback variable 2009-06-23 11:02:09 -05:00
Christopher Brannon
739d79cff8 Select audio mode before initializing espeak. 2009-06-23 10:48:56 -05:00
Christopher Brannon
ec9d8b1ee2 Add error-checking to the snd_pcm_set_* calls.
These can fail.  They do more than simply manipulate a structure.
2009-06-22 23:05:07 -05:00
Christopher Brannon
a5d1a48f42 Obtain sample rate from the value of espeak_Initialize.
espeak uses a sample rate of 22050 HZ, but let's not rely on that knowledge.
espeak_Initialize returns the sample rate on success,
so rely on that value when selecting a rate.
2009-06-22 22:32:27 -05:00
William Hubbs
3bb78df86c Do not set the period. 2009-06-22 21:36:31 -05:00
William Hubbs
94e23a3a02 fixed error condition check in alsa.c
The check was looking for a specific error when it should have been just
checking for failure.
2009-06-22 20:44:42 -05:00
William Hubbs
a69342fcad removed some blank lines and put the variables at the top of the file 2009-06-22 19:09:07 -05:00
Christopher Brannon
91b8960b6a Protect the stopped variable with a mutex.
An oversight.  Should have done this in the initial commit.
volatile does not imply atomic.
2009-06-21 14:36:13 -05:00
William Hubbs
0ad70b4eaa Revert "fixed stop_speech issue"
This reverts commit 1c440e5a42.
2009-06-20 19:14:42 -05:00
William Hubbs
1d02169aa5 alsa support is conditional
This commit updates the makefile and the documentation to explain how to
build alsa support.  It has not been fully tested, so it is not built by
default.  Also, I was able to remove the conditional compile directives
from the source.
2009-06-20 16:46:50 -05:00
William Hubbs
1c440e5a42 fixed stop_speech issue
The stop_speech function needs to test the return code from
espeak_Cancel() to be sure the operation was successful before
signaling the callback to stop the audio.
2009-06-20 16:17:42 -05:00
William Hubbs
08e46c58a8 indentation fixes 2009-06-20 13:09:57 -05:00
Christopher Brannon
d373fb2aa7 An initial stab at ALSA support.
It's very raw right now.
2009-06-19 15:11:51 -05:00
William Hubbs
b31985f97c released v0.71 v0.71 2009-05-30 12:44:33 -05:00
William Hubbs
d7dd0f919d fixed initialization issues
We were not returning exit codes properly if we were unable to open the
softsynth or if the daemon was already running.
2009-05-30 12:37:58 -05:00
William Hubbs
2db53856a9 fixed typo in tarball script 2009-05-30 10:37:39 -05:00
William Hubbs
55f8ebf98a released v0.70 v0.70 2009-05-30 10:32:36 -05:00
William Hubbs
69f1e8554a The tarball script now adds a ChangeLog 2009-05-30 10:30:45 -05:00
William Hubbs
0e47c95015 updated README 2009-05-30 08:36:33 -05:00
William Hubbs
c235a3b063 added .indent.pro to the repository 2009-05-30 00:20:31 -05:00
William Hubbs
d7c81f5117 indentation fixes 2009-05-29 23:17:28 -05:00
Christopher Brannon
3ddbb94e37 multithreading
Make espeakup a multi-threaded program.  One thread reads from the softsynth
device, queuing text and synthesis commands.  The other thread processes
items from the queue.
2009-05-29 20:00:06 -05:00
William Hubbs
3a8323f98c Fixed typo in README 2009-04-15 08:03:40 -05:00
William Hubbs
e7d300a183 turn off espeak's default processing of uppercase letters
This needs to be turned off since speakup processes upper case by
raising the pitch.
2009-04-14 09:00:32 -05:00
William Hubbs
a1510b5e93 indentation fixes 2009-04-12 16:33:01 -05:00
William Hubbs
3dbdcb21cb Aespeakup should not drop all non-ascii characters.
This fixes an issue with non-english languages.
Thanks to Samuel Thibault for the patch.
2009-04-05 19:24:36 -05:00
William Hubbs
9551ba81d9 espeakup 0.60 v0.60 2009-03-09 00:42:29 -05:00
William Hubbs
6366b41bdf espeakup v0.6 v0.6 2009-03-08 23:25:54 -05:00
William Hubbs
40f152e11f allow users to override CFLAGS
This fixes an issue with the Makefile that was not allowing users to
override cflags and keeping -Wall in the flags when compiling.
2009-03-08 21:05:24 -05:00
William Hubbs
4e7ae23757 created tarball script
This commit adds a script to create a tarball from the repository and
removes this functionality from the makefile.
2009-03-08 13:45:56 -05:00
William Hubbs
9ee3fd433c documented --default-voice in man page
This commit adds the documentation for --default-voice to the espeakup
man page.
2009-03-08 13:17:59 -05:00
William Hubbs
e2493db48e add --default-voice option to the help and README
This commit adds the documentation to the help and README files for the
--default-voice command line option.
2009-03-08 10:18:44 -05:00
William Hubbs
2351b5d489 add support for setting the default voice
This adds support for a --default-voice or -V (upper case) command line
option which will set the default voice espeakup uses.  This takes a
name of an espeak voice -- for example:

espeakup --default-voice=en-us

or

espeakup -V en-us
2009-03-07 14:34:49 -06:00
William Hubbs
da15136aa7 only one espeakup daemon should be running
This fixes a bug which would allow espeakup in debug mode to be run even
if espeakup was already running as a daemon.
2009-03-07 10:39:00 -06:00
William Hubbs
8dca597f29 Added a version script
I added a version script.  This is used in the Makefile to get the
version of espeakup when none is specified when a tarball is created.
2009-03-03 21:58:02 -06:00
William Hubbs
bbf77d918d Cleaned up warnings and adjusted CFLAGS
This commit cleans up warnings and adjusts CFLAGS.  Thanks to
samuel.thibault@ens-lyon.org.
2009-03-03 18:02:19 -06:00
William Hubbs
7db5530308 Espeakup version 0.51. v0.51 2009-02-10 21:57:10 -06:00
William Hubbs
341fa7ba42 fixed install command in makefile. 2009-02-10 21:54:44 -06:00
William Hubbs
0f24afef95 espeakup v0.5 v0.5 2009-02-09 09:05:28 -06:00
William Hubbs
c12ec3e1b0 moved version definition
This commit moves the version definition to espeakup.c instead of cli.c
2009-02-09 08:46:14 -06:00
William Hubbs
a8876a7964 fixed the license in the man page
The man page said that espeakup is under gpl version 2 or later, but it
is under version 3 or later, so I fixed the man page.
2009-02-09 08:39:58 -06:00
William Hubbs
2b96dd2a02 updated man page
This commit re-words the description of espeakup in the man page.
2009-01-24 13:02:33 -06:00
William Hubbs
17553c3c39 fixed the makefile
This commit removes the definitions for CC, RM and INSTALL from the
makefile so that it will use system defaults for these commands.
2009-01-10 09:48:48 -06:00
William Hubbs
ace8acf7d0 fixed hyphenation
This commit turns off hypenation in the man page.
2008-11-12 23:40:27 -06:00
William Hubbs
84c473b690 added man page
This commit adds a man page for espeakup.
Thanks to Chris Brannon for writing it.
2008-11-12 21:22:39 -06:00
William Hubbs
f7ddd8dc77 Released v0.4. v0.4 2008-10-22 19:23:46 -05:00
William Hubbs
a3901a7e4c fixed a bug in process_command
One of the switch statements in process_command did not have a default
label, which lead to undefined behavior.
Thanks to Chris Brannon for the patch.
2008-10-22 19:17:03 -05:00
William Hubbs
36b05aec41 Added support for the punctuation command from speakup 2008-10-18 16:56:47 -05:00
William Hubbs
c48b05d743 moved all variable definitions to the top of the Makefile. 2008-10-10 20:05:43 -05:00