Commit graph

212 commits

Author SHA1 Message Date
William Hubbs
ba316a4cd4 separate string handling routines into their own module 2011-05-05 17:31:42 -05:00
Christopher Brannon
c06f18c454 support adapters using the acsint module 2011-05-05 17:29:25 -05:00
William Hubbs
70f74657c2 fix Makefile to use MANMODE to install man pages 2011-05-05 14:52:05 -05:00
William Hubbs
999e6551b5 add pid path option to help 2011-05-05 14:50:23 -05:00
William Hubbs
3353241a79 add command line option to change the pid path
This adds a -P or --pid-path option to the command line which
allows the user to change the path and the name of the pid file created
when espeakup is running as a daemon.

I would like to thank Chris Brannon for the original idea for this.
2011-05-05 14:12:40 -05:00
William Hubbs
49dcacb2ec adjust rate offset and multiplier for espeak 1.45.04 2011-05-05 12:30:18 -05:00
William Hubbs
2154d1a231 use memset to initialize sigaction structure 2011-03-06 15:12:40 -06:00
Christopher Brannon
1990e8e25d Properly initialize sigaction struct.
The sigaction struct used in signal_thread was stored in an automatic
variable.  The fields which were not set manually had undefined values.
2011-03-06 14:42:18 -06:00
William Hubbs
701074fd96 go back to just using a makefile
The reason I went to autotools was the multiple sound systems, but since
we are now just using espeak's audio processing we can go back to a more
simple build system.
2011-03-06 13:09:42 -06:00
William Hubbs
7bf2eee07a remove experimental alsa support
The direct alsa support was experimental and never worked well. It had a
setting which was system specific. Also, I feel that it is better to let
espeak control the audio processing.
2011-03-05 16:49:58 -06:00
William Hubbs
c7ae47dfe5 add experimental support for building a static binary
This is done by adding a --enable-standalone switch to the configure
script.
2010-06-02 12:11:05 -05:00
William Hubbs
3bfc662bae update location of latest version and git repository 2010-05-05 15:11:02 -05:00
William Hubbs
037e642217 rename todo file 2010-05-04 23:31:34 -05:00
William Hubbs
0d9d7b6141 update readme 2010-05-04 23:17:53 -05:00
William Hubbs
056dcf70fe convert to autotools 2010-05-04 22:55:13 -05:00
William Hubbs
d1630432ba re-organized the makefile. 2009-10-10 12:04:41 -05:00
William Hubbs
8fda956e02 fixed permissions in makefile
It turns out that the install commands need to have the permission
options otherwise the permission of everything that is installed is 755,
which is not correct.
2009-10-09 11:20:17 -05:00
William Hubbs
4cfcd7ba11 fixed mandir
the mandir variable in the makefile should point only to the top level
of the man tree.
2009-10-09 11:10:49 -05:00
William Hubbs
1a10788c5f lowered latency setting to 1/40 of a second. 2009-10-09 11:09:20 -05:00
William Hubbs
edb5e50fcd make alsa code more readable
This changes the code to use constants for the parameters to
snd_pcm_set_params.  This makes it easier to read the code and to update
the values if needed.
2009-10-09 08:56:58 -05:00
William Hubbs
dec561324d updates to alsa support
After studying pcm_min.c in the alsa library git repository, I updated
the alsa support to be similar to what I saw there.
2009-10-08 17:46:39 -05:00
William Hubbs
486fe27f47 removed permission settings from makefile 2009-10-07 15:59:12 -05:00
William Hubbs
311b691195 fix makefile to not define variables if they are already defined 2009-10-07 15:55:46 -05:00
William Hubbs
ffe397fb91 removed the minimum function
This function really wasn't needed.  I also attempted to make the
callback functionn more like the test code in the alsa library git
repository.
2009-10-01 14:15:43 -05:00
William Hubbs
e66311bb99 added automatic dependency tracking to the Makefile 2009-09-23 15:44:51 -05:00
William Hubbs
11cc053d82 reworked the makefile
This version of the makefile should be more compatible with allowing
users to pass in cflags.
2009-09-07 16:57:00 -05:00
William Hubbs
48fa03faf5 renamed espeak_sound.c to portaudio.c
This better describes the sound system that espeak uses natively.
2009-09-05 11:32:22 -05:00
William Hubbs
654fc810fe default prefix to /usr/local
Without packaging, we should be installing espeakup in /usr/local.
2009-08-25 18:22:40 -05:00
William Hubbs
e4e3f0979e the status handle should be static 2009-08-21 13:03:02 -05:00
William Hubbs
57547e8efa renamed synth.c to espeak.c
The name was changed because it describes the function of this code more
accurately.
2009-08-19 15:14:20 -05:00
William Hubbs
ac9e12414b made stop_requested a global variable
The two variables, stop_requested and runner_must_stop were performing
the same function, so I am using one variable, stop_requested for this
function.
2009-07-01 20:16:29 -05:00
William Hubbs
18ebab3247 indentation fixes 2009-07-01 19:04:01 -05:00
William Hubbs
cc7e77eb9d move stop_audio call to synth thread
Since there is no reason currently for the softsynth thread to do this,
it makes better sense to have the synth thread control all interaction
with espeak.
2009-07-01 13:01:41 -05:00
William Hubbs
32d848cb76 make callback honor should_run
The callback should return and abort synthesis if should_run is 0.  This
fixes slow shutdown times in alsa mode.
2009-07-01 12:22:14 -05:00
William Hubbs
4de82bf24c added a couple of #defines to the alsa code 2009-06-30 21:32:52 -05:00
William Hubbs
739e074072 reworked the queue_remove function
Now, when queue_remove is called, it returns the pointer to the data of
the first entry in the queue and removes the entry.
2009-06-30 20:15:20 -05:00
William Hubbs
014d27b7aa removed some unlock_audio_mutex() calls 2009-06-30 19:15:44 -05:00
William Hubbs
82490a98d2 call snd_pcm_prepare after snd_pcm_drop in stop_audio 2009-06-30 15:54:52 -05:00
William Hubbs
101e14901e removed white space in the makefile 2009-06-30 13:21:52 -05:00
William Hubbs
dc056e6c77 broke the queue definitions out into their own header file 2009-06-30 13:08:07 -05:00
William Hubbs
0a9a8cce9b small style changes 2009-06-30 08:15:27 -05:00
Christopher Brannon
40479540b4 Fix a memory leak.
If we fail to add entries to the queue in queue_add_cmd or
queue_add_text, properly free the entry.
2009-06-29 18:42:25 -05:00
William Hubbs
ccb8cea91e stop speech before clearing the queue
Thanks to Kirk Reiser for pointing out that this makes the cancel
response faster.
2009-06-29 18:12:04 -05:00
Christopher Brannon
31ad5f04ca Completely data-agnostic queue functions.
The functions in queue.c no longer use static variables.  We can now use
them for multiple queues, if necessary.
2009-06-29 18:07:18 -05:00
Christopher Brannon
011ec27162 Create pipe before starting the signal handler thread.
The thread can write to the pipe, so the pipe must be initialized
before the thread starts.
2009-06-29 17:49:49 -05:00
William Hubbs
04d10d88ec more sound updates
removed the user_data processing code and put the call to snd_pcm_drop
in stop_audio.
2009-06-29 17:48:16 -05:00
William Hubbs
ceaae3640a audio should be stopped in softsynth_thread not espeak_thread 2009-06-29 15:59:55 -05:00
William Hubbs
c9f871f687 see if we need to silence speech before we process the queue 2009-06-29 15:26:48 -05:00
William Hubbs
a82bbd8140 fixed a memory leak
If we processed an entry from the queue successfully, we were removing
the entry itself from the queue but not freeing the memory allocated to
the entry.
2009-06-28 17:56:21 -05:00
William Hubbs
58f09983f8 fixed callback return code
The callback should use the value of stop_requested as its return code.
2009-06-28 15:52:59 -05:00