2004-05-30  Hynek Hanke  <hanke@volny.cz>

	* ANNOUNCE: 0.4.1 release.

2004-05-29  Hynek Hanke  <hanke@volny.cz>

	* src/modules/generic.c (module_load): Register the volume variables.

	* config/modules/dtk-generic.conf: Jacob's new version.

	* config/modules/epos-generic.conf: Use LANGUAGE instead of LANG.

	* src/modules/generic.c (module_speak): Update string parameter, not an ordinary parameter.
	generic_msg_pitch, rate, volume are now statically allocated (!).

2004-05-28  Hynek Hanke  <hanke@volny.cz>

	* ANNOUNCE: Release 0.4.

	* FAQ: 16-bit Flite voice.

	* TODO: Index marking.

2004-05-26  Hynek Hanke  <hanke@volny.cz>

	* configure.in: Install output modules into libdir instead of bindir.

2004-05-25  Hynek Hanke  <hanke@volny.cz>

	* Makefile.am (EXTRA_DIST): Don't include everything in doc/ into distribution,
	leave it to be handled in Makefiles instead.

2004-05-24  Hynek Hanke  <hanke@volny.cz>

	* configure.in: modulebindir now points to speech-distcher-modules instead of
	speechd-modules.

2004-05-24  Hynek Hanke  <hanke@volny.cz>

	* src/modules/festival_client.c (festival_socket_open): Use TCP_NO_DELAY.

	* src/server/output.c (SEND_DATA): Back to using OL_RET(), but SEND_DATA_N is newly defined for
	other purposes.
	(SEND_CMD): See SEND_DATA.

	* Makefile.am (EXTRA_DIST): Added build.sh.

2004-05-23  Hynek Hanke  <hanke@volny.cz>

	* src/server/options.c (print_version): Don't talk me about GNU Emacs!

	* src/c/clients/say/say.c: Accept and handle the most important voice and TTS control parameters.

	* src/c/clients/say/options.h: New file.

	* src/c/clients/say/options.c: New file.

	* src/modules/Makefile.am (sd_flite_LDFLAGS): Use $(flite_basic) and $(flite_kal) from configure.in.

	* configure.in: If flite_cmu_us_kal16 is available, compile against this better voice,
	otherwise compile against flite_cmu_us_kal.

2004-05-23  Hynek Hanke  <hanke@volny.cz>

	* src/modules/generic.c (generic_set_*): Rewrite string values of
	parameters in generic_msg_*_str variables only when they change.

	* src/modules/generic.c (_generic_speak): Only do substitution of the string
	parameters using string_replace.

	* src/c/api/libspeechd.c (spd_execute_command): Define as non-static.

	* src/c/api/libspeechd.h: Prototype.

	* src/c/api/libspeechd.c (spd_open): Set TCP_NODELAY to eliminate the annoying 40ms delay.

	* config/modules/epos-generic.conf: Volume controlling variables added.

	* src/modules/generic.c (_generic_speak): Added the $VOLUME variable.
	(generic_msg_volume): New variable.


2004-05-22  Hynek Hanke <hanke@volny.cz>

	* ltmain.sh: Removed.
	* build.sh: Copy the correct version of ltmain.sh to the source tree.
	
2004-05-20  Hynek Hanke  <hanke@volny.cz>

	* src/server/output.c (output_send_msg): New function.
	(output_speak): Use output_send_msg instead of the macros.
	(SEND_DATA): Don't unlock the lock, just return.
	(SEND_CMD): Don't unlock the lock, just return.


2004-04-17  Hynek Hanke  <hanke@volny.cz>

	* configure.in: LIB_SPD_CURRENT version number incremented.

	* src/c/api/libspeechd.h: New functions for setting output_module and volume
	added.

	* src/c/api/libspeechd.c (speechd_set_output_module): New function.
	(speechd_set_volume): New function.

	* src/server/parse.c (parse_set): Use TEST_CMD instead of strcmp.

	* src/c/api/Makefile.am (libspeechd_la_HEADERS): libspeechd.h moved here because otherwise
	it wasn't be installed.
	(libspeechd_ladir): Points to includedir.

2004-04-04  Hynek Hanke  <hanke@volny.cz>

	* INSTALL: Mention festival-freebsoft-utils.

	* src/modules/festival.c: Mistyped '-' removed.

	* src/Makefile.am (EXTRA_DIST): Include the Common Lisp library in the distribution.

	*  (Module): 

	* src/modules/module_main.c: Unused variable removed.

	* src/modules/generic.c: Unused variables cleaned. 

	* src/modules/flite.c: Unused variables cleaned. 

	* src/modules/festival.c (cache_gen_key): bug: == instead of =

	* src/modules/module_utils.c (do_speak): Proper return value.
	(module_get_message_part): Unused variable 'im' removed.
	(module_parent_wfork): Make sure read_bytes is always initialized.

2004-03-31  Hynek Hanke  <hanke@volny.cz>

	* doc/Makefila.am: speechd.texi and speechd-cs.texi renamed to speech-dispatcher[-cs].texi. 

	* src/server/speechd.c (main): Pid file is now speech-dispatcher.pid instead of speechd.pid.

	* config/speechd.conf: Log to /var/log/speech-dispatcher by default.

	* src/c/clients/say/Makefile.am: say renamed to spd-say.

	* version.sh: Version number incremented (0.3)

	* configure.in: speechd -> speech-dispatcher in substitution variables.

	* INSTALL: speechd -> speechd-dispatcher

	* configure.in: Package name changed to speech-dispatcher.

	* src/server/Makefile.am: Program name changed to speech-dispatcher.

2004-03-14  Hynek Hanke  <hanke@volny.cz>

	* config/modules/epos-generic.conf (GenericExecuteSynth): sed command to strip
	the "unknown voice" message from resulting .wav now done correctly (it doesn't
	leave a '\n' as the first byte)

	* AUTHORS: Added Jacob Schmude to Thanks.

	* config/speechd.conf (dtk-generic): New generic output module
	added (by default commented out).

	* config/modules/dtk-generic.conf: New configuration file for the generic
	output module for DecTalk Software synthesizer (non-free).

	* config/modules/festival.conf: Typo fixed.

	* config/modules/epos-generic.conf (GenericRateForceInteger): New option.
	(GenericPitchForceInteger): New option.

	* src/modules/generic.c (GenericRateForceInteger): New parameter.
	(GenericPitchForceInteger): New parameter.
	(_generic_speak): If GenericPitchForceInteger is set, write the rate to the bash
	command without decimals. The same for GenericRateForceInteger.

2004-03-08  Hynek Hanke  <hanke@volny.cz>

	* speechd.c, set.c, server.c, parse.c: Use SpeechdSocket ans SpeechdStatus.

	* src/server/module.c: init and load symbols removed (unnecessary). 

	* src/modules/flite.c (module_speak): Strip ssml before sending to Flite.

	* src/modules/module_utils.c (module_strip_ssml): New function.

	* src/server/speechd.c (speechd_init): Initialize TSpeechdSock.
	(speechd_connection_destroy): Also free the buffer.

	* src/server/speechd.h (TSpeechdSock): New structure. 

	* src/server/config.c (table_add): Removed (old&unnecessary). 

2004-02-23  Hynek Hanke  <hanke@volny.cz>

	* src/server/options.c (options_print_help): Moved.
	(options_print_help): Typo \v -> \n fixed.

	* src/server/config.c (cb_MinDelayProgress): Deleted.
	Cleaning.
	(GLOBAL_FDSET_OPTION_CB_SPECIAL): New macro.
	(SPEECHD_OPTION_CB_STR_M): New macro.
	(SPEECHD_OPTION_CB_INT_M): New macro.
	(SPEECHD_OPTION_CB_STR): New macro.
	(SPEECHD_OPTION_CB_INT): New macro.

	* intl/fdsetconv.c (str2intpriority): New function.

	* src/server/speechd.c (speechd_init): max_gid initialization moved to the
	beginning.

	* src/server/speechd.h (spd_log_level): Renamed to SpeechdOptions.log_level.
	(spd_port): Renamed to SpeechdOptions.log_level. All references changed.

	* src/server/config.c (GLOBAL_FDSET_OPTION_CB_INT): Accept also condition and error messages.
	(load_default_global_set_options): Moved to the end of the file.

2004-02-16  Hynek Hanke  <hanke@volny.cz>

	* src/modules/flite.c (_flite_child): Don't use spd_audio.

	* configure.in: Speechd C API library versions fixed.

2004-02-14  Hynek Hanke  <hanke@volny.cz>

	* configure.in: Variables for versions of libraries added.

	* src/c/api/Makefile.am (libspeechd_la_LDFLAGS): Append version to the speechd library.

	* src/audio/Makefile.am (libsdaudio_la_LDFLAGS): Append version to the audio library.

2004-02-13  Hynek Hanke  <hanke@volny.cz>

	* src/server/set.c (default_fd_set): Setting volume fixed.

	* src/modules/module_utils_audio.c (module_audio_output_child): Temporarily set volume only as
	(ssip_volume-100)/2 for not damaging the sound with overflows.

2004-02-10  Hynek Hanke  <hanke@volny.cz>

	* src/server/parse.c (parse_set): SET * VOLUME added to SSIP.

	* src/server/output.c (output_send_settings): Send the volume parameter to output module.

	* src/server/msg.h: Volume setting messages addded.

	* src/modules/module_utils.c (do_set): Read the volume settings

	* src/server/set.c (set_volume_uid): New function.

	* src/server/set.h: Volume setting functions.

	* intl/fdset.h (TFDSetElement): Volume added.
	(SPDMsgSettings): Volume added.

	* src/audio/spd_audio.c (spd_audio_play_wave): Multiply the samples array by the
	desired relative volume.

	* src/modules/festival.c (festival_set_volume): New function.

	* src/modules/module_utils_audio.c (module_audio_output_child): Handle new parameter: volume.
	(module_audio_output_child): Call spd_audio_set_volume().

2004-01-27  Milan Zamazal  <pdm@brailcom.org>

	* src/server/alloc.c (spd_realloc): New function.
	* src/server/alloc.h: Declare it.
	* src/server/server.c (serve): Socket reading code rewritten and
	hopefully finally fixed.

2004-01-20  Milan Zamazal  <pdm@brailcom.org>

	* src/server/server.c (serve): Reading data from socket fixed.

2003-12-21  Hynek Hanke  <hanke@volny.cz>

	* config/modules/festival.conf: Updated.
	New parameters (caching) added.

	* TODO: Updated.

	* version.sh (VERSION): Updated to version 0.2

	* src/tests/README: Updated to reflect the new '^' command, missing
	commands added also.

	* src/modules/festival.c (cache_destroy_entry): New function.
	(cache_destroy_table_entry): New function.
	(cache_free_counter_entry): New function.
	(cache_init): Init cache_counter.
	(cache_destroy): Destroy cache_counter.
	(cache_reset): Do nothing.
	(cache_counter_comp): New function.
	(cache_debug_foreach_list_score): New function.
	(cache_clean): New function.
	(cache_gen_key): New function.
	(cache_insert): Take into account the festival.conf parameters for cache.
	Remove less requested samples from cache when the maximum allowed amount
	of memmory is consumed.
	(cache_lookup): Take into account the festival.conf parameters for cache.
	(cache_lookup): Update counter of requests for the item in cache.

2003-12-19 Hynek Hanke <hanke@robinson>

	* src/modules/festival.c: Use multiple caches for different
	languages.
	(cache_insert): Use multiple caches.
	(cache_insert): Create a new cache for language that
	isn't listed in FestivalCache.caches so far.
	(cache_lookup): Look into the right cache for specified
	language.

2003-12-19  Hynek Hanke  <hanke@volny.cz>

	* src/modules/flite.c (module_stop): Operator priorities fix in condition.

	* src/modules/module_utils.c (DBG): Timestamps also include microseconds.

	* src/modules/festival.c (_festival_parent): Try to read from cache first.

	* src/modules/module_utils.c (DBG): Log timestamps in microsecond resolution.

	* src/modules/festival.c (_festival_parent): Insert into cache if necessary.

	* src/tests/run_test.c (main): Added command '~' for microsleep.

	* INSTALL: Note about settings in server_acces_list and /etc/hosts.conf
	added.

2003-11-30  Hynek Hanke  <hanke@volny.cz>

	* src/server/output.h (output_check_module): New prototype.

	* src/modules/festival.c (module_close): Don't change exit status by replacing it with
	other errors that ocured when terminating.

	* src/server/output.c (output_check_module): New function.

	* src/server/speaking.c (speak): Call output_check_module after it fails to determine
	the cause.

	* src/modules/module_utils.c (do_message): Fill ret with the return value of module_speak.

	* src/server/output.c (output_send_data): Removed unecessary fflush().

2003-11-23  Hynek Hanke  <hanke@volny.cz>

	* src/modules/festival.c (festival_set_voice): Set festival_coding.
	(festival_set_language): Set festival_coding.
	(module_speak): First update all parameters, then do the recoding and copying
	of the message (to be able to retrieve the name of the necessary coding first).

	* src/modules/festival_client.c (festival_read_response): Set the expr parameter to the
	char* value of the expression or NULL if ER was received.

	* src/modules/festival.c (module_init): Fill festival_coding with default iso-8859-1

2003-11-11  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/module_utils.c (module_recode_to_iso): Convert
	non-Czech messages to ISO 8859-1.

2003-11-06  Hynek Hanke  <hanke@volny.cz>

	* src/server/sem_functions.h (semaphore_clear): New function.
	* src/server/sem_functions.c (semaphore_clear): New function.
	(semaphore_wait): A workaround for the semaphores bug.

2003-11-06  Hynek Hanke  <hanke@volny.cz>

	* INSTALL: Mention festival-interface instalation.

	* BUGS: Flite doesn't speak sound icons as it doesn't support it.

2003-10-29  Hynek Hanke  <hanke@volny.cz>

	* configure.in: AM_INIT_AUTOMAKE name changed back to speechd in order to produce correct
	distribution name in .tar.gz.

2003-10-29  Hynek Hanke  <hanke@volny.cz>

	* src/server/speaking.h (empty_queue_by_time): New prototype.
	(stop_priority_older_than): New prototype.
	Restructured.

	* src/server/speaking.c (speak): Insert the last priority 5 message sorted by time.
	(empty_queue_by_time): New function.
	(stop_priority_older_than): New function.

	* src/server/server.c (queue_message): Insert timestamp.

2003-10-27  Hynek Hanke  <hanke@volny.cz>

	* src/server/parse.c (parse): KEY can be used in blocks.

	* src/server/speaking.c (speak): Priority important doesn't interrupt last priority
	PROGRESS message now.

2003-10-25  Hynek Hanke  <hanke@volny.cz>

	* src/server/speaking.c (speak): Mutex handling reworked a little bit to prevent
	deadlocks.

2003-10-24  Hynek Hanke  <hanke@volny.cz>

	* NEWS: 0.1 + some info on recent improvements.

	* version.sh: Updated to 0.1 so that we don't forget about it later :)

	* AUTHORS: speechd-speak -> speechd-el
	THANKS section.

	* src/server/server.c (queue_message): Don't put messages into history.
	(As we don't have implemented client authentification yet, this would
	be a possible security hole.)

2003-10-23  Hynek Hanke  <hanke@volny.cz>

	* src/server/speaking.c (speak): Insert last priority 5 message as MESSAGE,
	not TEXT. 
	Insert it as the first message in the MESSAGE queue.

2003-10-22  Hynek Hanke  <hanke@volny.cz>
	
	* src/server/parse.c (deescape_dot): Handle doubledot on every beginning of line,
	not just the ones followed by \r\n.
	
2003-10-22  Milan Zamazal  <pdm@brailcom.org>

	* src/server/server.c (serve): Log connection descriptors as well.


2003-10-22  Hynek Hanke  <hanke@volny.cz>

	* src/server/parse.c (parse): Bug with sometimes incorrect canceled message handling corrected.

	* src/server/index_marking.c (insert_index_marks): Additional debugging messages.

	* src/server/index_marking.c (insert_index_marks): Use MSG2 for the seccond message, not MSG1.

	* src/modules/festival.c (module_load): FestivalMaxChunkLength changed to 300 by default.
	(_festival_parent): Use FestivalMaxChunkLength instead of the wrong buffer size 4095.

	* src/server/server.c (queue_message): Mutex locking added again around
	resolve_priorities().


2003-10-20  Hynek Hanke  <hanke@volny.cz>

	* src/server/options.c (options_print_help): Info about the -v option added.
	(options_print_help): Address for sending bug reports changed.

2003-10-18  Hynek Hanke  <hanke@volny.cz>

	* src/modules/module_utils_audio.c (module_add_samples): Check for the terminating
	sequence \r\nOK_SPEECHD_DATA_SENT\r\n here. It handles the situation when this
	message comes reparted because of buffering.
	
	* src/modules/module_utils.c (module_add_samples): Declaration moved to module_utils_audio.c

	* src/c/api/libspeechd.h (SPD_FATAL): Renamed from FATAL as not to cause conflicts.
	All callers changed.

2003-10-16  Hynek Hanke  <hanke@volny.cz>
	
	* src/c/api/libspeechd.c (spd_sayf): Correct escaping of \r\n.\r\n
	(spd_key): Don't enclose argument in quotes.
	(spd_key): Free the command string.
	(spd_char): Don't enclose argument in quotes.	
	(spd_sound_icon): Don't enclose argument in quotes.	
	(spd_w_set_capital_letter_mode): New function.
	Cleaning.
	
	* src/c/api/libspeechd.h (escape_dot): New function.

	* src/c/api/libspeechd.c (spd_open): Now returns -1 on failure.
	(spd_say): Don't append \r\n at the end of sent data.

	* src/server/speaking.c (resolve_priorities): Now takes priority of the newly
	arriving message as parameter.

	* src/server/server.c (queue_message): resolve_priorities() call moved here
	from the other thread.

2003-10-15  Hynek Hanke  <hanke@volny.cz>

	* src/server/speechd.c (main): Use PIDPATH when not empty.

	* src/server/Makefile.am (pidpath): Pass PIDPATH as parameter to the sources.

	* configure.in: Fixed bug(?) with "Speech Dispatcher". Now it's written without
	the space, so that gcc doesn't comply.
	(pidpath): New configuration variable with path to the pid file.

2003-10-15  Hynek Hanke  <hanke@volny.cz>

	* src/server/Makefile.am: Pass VERSION and PACKAGENAME to the program with -D.

	* src/server/output.h (escape_dot): New function.

	* src/server/parse.h (deescape_dot): New function.

	* configure.in (AM_INIT_AUTOMAKE): PACKAGENAME is now Speech Dispatcher, not speechd.

	* src/server/options.c (options_parse): Call options_print_version.

	* src/server/options.h: Added --version, -v.

	* src/modules/module_utils.c (do_message): Convert escape sequence double dots into dots.

	* src/server/output.c (escape_dot): New function.

	* src/server/parse.c (deescape_dot): New function.

	* src/server/sem_functions.c (semaphore_wait): If the system call for semaphores
	was unsuccesful, repeat the call (e.g. because of EINTR). Fixes a bug under
	Valgrind.

2003-10-13  Hynek Hanke  <hanke@volny.cz>
	
	* src/modules/festival.c (_festival_parent): Call module_parent_wait_continue() only
	if some data were sent to synthesis.

	* src/server/parse.c (parse): Strip trailing '\n'.

	* src/modules/module_utils_audio.c (module_audio_output_child): Don't report FATAL ERROR
	when terminating.

	* src/modules/module_utils.c (do_message): Strip the trailing '\n'.

2003-10-13  Hynek Hanke  <hanke@volny.cz>
	
	* configure.in: Don't require librecode.

	* src/tests/long_message.c: Don't use FATAL.

	* src/tests/clibrary.c: Don't use FATAL.

	* src/server/parse.h: Cleaning.

	* src/server/parse.c: Cleaning.

	* src/server/history.h: Cleaning.

	* src/server/history.c: Cleaning.

	* src/server/config.h: New file.

	* src/server/config.c: New file.

	* src/server/alloc.h: Cleaning.

	* src/server/Makefile.am: Changes in file structure in src/server/

	* src/modules/module_utils_addvoice.c (SPDVoiceDef): Moved here from
	intl/module.h

	* src/modules/cstsnd.c: Removed.

	* src/modules/apollo.c: Removed.

	* src/modules/Makefile.am: Don't build cstsnd and apollo.

	* src/c/api/libspeechd.c: Don't use underscores for private functions
	as these are reserved for compiler symbols.

	* src/c/api/libspeechd.h: Don't use underscores for private functions as these are
	reserved for compiler symbols.

	* src/server/config.c (free_config_options): Bug with array of opts[] fixed.

	* src/modules/cstsnd.c: Removed.
	
	* src/modules/generic.c: Don't include module.h

	* src/modules/festival.c: Don't include module.h

	* src/modules/flite.c: Don't include module.h

	* intl/module.h: Moved to src/server/module.h

	* src/server/sem_functions.c (speaking_semaphore_create): Permissions to semaphore
	changed to 0600.

	* src/server/speechd.c (create_pid_file): New function.
	(destroy_pid_file): New function.
	(speechd_quit): Call destroy_pid_file.
	(main): Call create_pid_file().
	(main): Create new pid file after entering the daemon() mode.
	(speechd_init): Generate key for SYSV semaphore from pid file path.

	* src/server/speechd.h: Include fcntl.h.
	(speechd_pid_file): New variable;

2003-10-10  Hynek Hanke  <hanke@volny.cz>

	* src/modules/festival.c (_festival_parent): Bug with sending part of response even
	if there are no samples fixed.

	* src/server/index_marking.c (insert_index_marks): Insert the last character
	even if there is no follower.

2003-10-10  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/festival_client.c (FestivalSetCapLetRecogn):
	Festival function name fixed.

	* Makefile.am (SUBDIRS): `sounds' removed.
	* configure.in (moduleconfdir): sounds/ excluded.
	* sounds/Makefile.am: Removed.

2003-10-10  Jan Buchal  <buchal@brailcom.org>

	* src/modules/festival_client.c (FEST_SET_STR): Pass nil if param is NULL.
	(FEST_SET_STR): Macros enclosed in { }.

	* src/modules/festival.c (festival_set_cap_let_recogn): New function.

	* src/modules/festival_client.c (FEST_SPEAK_CMD): New parameter
	symbol.
	(festival_speak_command): New parameter symbol.
	(FEST_SET_SYMB): Added capital character mode setting.

2003-10-09  Hynek Hanke  <hanke@volny.cz>

	* src/modules/Makefile.am (EXTRA_DIST): Include festival-interface in distribution.

2003-10-09  Hynek Hanke  <hanke@volny.cz>
	
	* src/modules/festival.c (_festival_parent): Wrong debugging message removed.

	* src/modules/module_utils.c (module_get_message_part): Divide message
	also on blank lines.

	* intl/fdset.h (TFDSetElement): New parameter index_mark.

	* src/server/set.c (set_pause_context_uid): Accept negative values also.

	* src/server/parse.c (parse_set): SSIP SET * PAUSE_CONTEXT now accepts negative values.

	* src/server/speaking.c (reload_message): New function.
	(reload_message): pause_context is now negative or positive.

	* src/server/speechd.h (resume_requested): New global variable.

	* src/server/speaking.c (speak): Handle request for resume here.

	* src/server/speechd.c (speechd_init): pause and resume _ requested set to 0 on start.

	* src/modules/festival_client.h (festivalStringToWaveGetData): Parameters added.

	* src/modules/festival.c (_festival_parent): Call festivalStringToWaveGetData
	with the new parameters. Don't turn multiple wave files receiving on.

	* src/modules/festival_client.c (festivalStringToWaveGetData): If multiple is 1 or two,
	first read the number of waves that should come.
	(festivalStringToWaveGetData): Don't wait for OK if this is not tha last wave.
	(festivalStringToWaveGetData): Decrement the remaining_waves counter if ER is
	returned.

2003-10-08  Hynek Hanke  <hanke@volny.cz>

	* src/server/server.c: Removed tables.

	* src/server/output.c: Debugging messages.

	* src/server/alloc.c: Removed tables.

	* src/audio/spd_audio.c (spd_audio_open): Check if spd_audio_device is not NULL before returning.

	* intl/module.h: Removed EFilteringType.

	* config/speechd.conf.in: Removed tables configuration, removed sound module.

	* src/server/parse.c (parse_set): Table commands removed from SSIP.

	* src/server/set.c (set_spelling_uid): Parameter changed to ESpellMode.
	Code related to tables removed.

	* src/server/speechd.c (speechd_init): Tables removed.

	* src/server/speechd.h (TSpeechDTables): Definition removed, not necessary.
	Sound module removed.

	* src/server/dc_decl.h: No longer necessary callbacks removed (tables, etc.).

	* src/modules/module_utils_audio.c (module_audio_output_child): Read bitrate information
	from parent. Close and open audio.
	(module_parent_send_samples): Send also bitrate information in the first 10 bytes.

	* src/modules/module_utils_audio.c (module_audio_output_child): Don't open/close audio.

	* src/modules/flite.c (module_init): Don't fill module_sample_wave.
	(_flite_child): No module_sample_wave.
	(_flite_child): Open and close audio.

	* src/modules/festival.c (festival_fill_sample_wave): Removed.

	* src/modules/module_utils_audio.c (module_audio_output_child): Open audio before saying
	each data and close it after that.

2003-10-07  Hynek Hanke  <hanke@volny.cz>

	* intl/fdsetconv.c: New file.

2003-10-07  Milan Zamazal  <pdm@brailcom.org>

	* configure.in (AC_OUTPUT): config/{en,cs}/Makefile removed.

2003-10-03  Hynek Hanke  <hanke@volny.cz>

	* src/server/output.c (ADD_SET_STR): Added missing line terminator after "NULL".

	* src/modules/cstsnd.c (module_load):  Call REGISTER_DEBUG().	

	* src/modules/generic.c (module_load):  Call REGISTER_DEBUG().	

	* src/modules/flite.c (module_load):  Call REGISTER_DEBUG().	

	* src/modules/festival.c (module_load): Call REGISTER_DEBUG().

	* src/modules/module_utils.c (REGISTER_DEBUG): New macro.

	* src/server/sem_functions.c (semaphore_wait): Debugging message.

	* src/server/speaking.c (speak): Set speaking_uid to the uid of the client who
	sent this message.

	* src/server/parse.c (parse_list): The SSIP LIST command has only one
	possible parameter "VOICES". This doesn't longer work for tables
	because we want to eliminate the whole "table" idea.

	* src/server/dc_decl.h (cb_AddModule): No filtering type parameter.

	* src/server/speaking.c (speak): Removed all that has something to do with
	punctuation and spelling processing.

	* config/speechd.conf.in: Log default to /var/log/speechd.log
	All punctuation and spelling tables removed. Filtering removed.
	Sound icon, character and key tables temporarily left, there is
	currently no way how to fix this.
	Comments about symbolic voices.

2003-10-01  Hynek Hanke  <hanke@volny.cz>

	* src/c/api/libspeechd.c (xfree): Write NULL after freeing it.

	* intl/def.h (SPEECHD_DEFAULT_PORT): Changed to 6560.

	* config/speechd.conf.in: Default port now 6560.

	* src/modules/generic.c (module_write): Use fallback when recoding.
	(module_load): Added configurable option GenericRecodeFallback.

	* config/modules/festival.conf (FestivalRecodeFallback): New option.

	* src/modules/festival.c (module_load): Added configurable option FestivalRecodeFallback.
	(module_write): Call module_recode_to_iso with FestivalRecodeFallback.

	* src/modules/module_utils.c (module_recode_to_iso): The fallback character is
	now passed as parameter.

2003-09-29  Hynek Hanke  <hanke@volny.cz>

	* config/Makefile.am: Switched back to normally calling `sed'.

	* intl/fdset.h (TFDSetElement): pause_context added.

	* configure.in: Added config/generic/Makefile.am

	* config/speechd.conf.in: Festival now doesn't use the generic filter.
	It supports spelling and punctuation itself.

	* src/server/speaking.c (speaking_pause): Repeat the whole message if index mark
	number gets bellow zero.

	* config/speechd.conf.in: Added DefaultPauseContext.

	* src/server/dc_decl.h (cb_BeginClient): Added pause_context.

	* src/server/set.c (update_cl_settings): Added pause_context.
	(set_pause_context_uid): New function.

	* src/server/parse.c (parse_set): Added new SSIP command `SET who PAUSE_CONTEXT value'.

	* src/server/speaking.c (speaking_pause): Use settings->pause_context

	* src/server/set.c (default_fd_set): Set pause_context to 0.

	* src/modules/module_utils.c (CLEAN_OLD_SETTINGS_TABLE): New macro, splitted from
	INIT_SETTINGS_TABLES.
	(INIT_SETTINGS_TABLES): Call CLEAN_OLD_SETTINGS_TABLE

	* src/modules/festival.c (festival_set_voice): Call CLEAN_OLD_SETTINGS_TABLE, so that
	we set all parameters to new values after setting new voice.

	* src/modules/festival_client.h (festival_connection_crashed): New public global variable.

	* src/modules/festival_client.c (festival_get_ack): Set festival_connection_crashed
	to 1 on failure.
	(festivalOpen): Set festival_connection_crashed to 0.

	* config/Makefile.am: +generic directory
	SUBDIRS now listed in different order.
	(speechd.conf): Use the environment variable SED instead of trying the `sed' binary.

	* src/server/sndicon.c (snd_icon_spelling_get): Look also under the generic table
	if not found specificaly for the given language.
	(sndicon_queue): Rewritten to use se sndicon_spelling_get().

	* src/server/speechd.h (generic_lang_icons): New global variable.

	* src/modules/festival_client.c (festivalSetVoice): Use festival_read_response().
	(festivalSetRate): Use festival_read_response().
	(festivalSetPitch): Use festival_read_response().
	(festivalSetPunctuationMode): Use festival_read_response().	

	* src/modules/festival.c (module_write): Set punctuation_mode in festival.
	(festival_set_punctuation_mode): New function.

	* src/modules/festival_client.c (festival_read_response): New function.

	* src/modules/festival_client.h (festivalStringToWaveRequest): New parameter spelling.

	* src/server/speechd.c (speechd_load_configuration): Also terminate the sound module
	before loading a new one.

	* src/server/parse.c (parse): Write only strlen(OK_BYE) options to output.

	* src/server/sem_functions.h: +semaphore_destroy.
	+speaking_semaphore_destroy
	
	* src/server/sem_functions.c (semaphore_destroy): New function.
	(speaking_semaphore_destroy): New function.
	
	* src/modules/module_utils.c (module_signal_end): Removed unnecessary comment.

	* src/server/sem_functions.c (semaphore_post): Debugging message amplified.

	* src/server/speaking.c (speaking_resume): Post on semaphore only once at the end.

2003-09-24  Milan Zamazal  <pdm@brailcom.org>

	* config/Makefile.am (speechd.conf): New target.
	(all-local): Depend on it, do nothing otherwise.

2003-09-23  Milan Zamazal  <pdm@brailcom.org>

	* src/server/output.c (output_send_data): Log module communication
	with the logging kind `protocol'.
	* src/server/server.c (serve): Likewise.  Log server reply too.
	
	* config/speechd.conf.in: CustomLogFile, commented out, added.
	* src/server/speechd.h (custom_logfile, custom_log_kind): New
	variables.
	* src/server/dc_decl.h (load_config_options): New option
	CustomLogFile.
	(load_default_global_set_options): Initialize custom logging
	options.	
	(cb_CustomLogFile): New callback.
	(cb_LogFile): Print error to stderr, not stdout.
	* src/server/speechd.c (MSG2): New function.
	(MSG): Use it.
	(speechd_init): Initialize custom logging variables.

2003-09-22  Hynek Hanke  <hanke@volny.cz>

	* src/modules/module_utils.c (MODULE_VERSION): Definition removed.
	Some functions moved to module_utils_audio.c
	(module_recode_to_iso): Replace invalid characters with a '?'.

	* src/modules/module_utils_audio.c (module_parent_send_samples): Moved from module_utils.c
	(module_add_samples): Moved from module_utils.c

	* src/modules/module_utils.c (module_speak_thread_wfork): Force exit() in the child
	if the child_function() didn't exit itself.
	(module_speak_thread_wfork): Now returns void.
	(module_parent_wfork): Return 0 if returning for other reasons than being paused.

2003-09-20  Hynek Hanke  <hanke@volny.cz>

	* src/server/Makefile.am: Include insert_marking.c and index_marking.h.

	* src/modules/module_utils.c (module_parent_wfork): Use index marks.

	* INSTALL: Mention the SED=sed step.

	* config/modules/festival.conf (FestivalStripPunctChars): New option added.

	* src/modules/module_utils.c (module_get_message_part): Use index marks.
	Look for "ordinary" divisors before looking for index marks.

	* src/server/speaking.c: Include index_marking.h
	(speaking_pause): Use index marking.
	(speaking_pause): Strip index marks before queueing the message again.

	* src/server/index_marking.c: New file.
	(insert_index_marks): New function.
	(find_next_index_mark): New function.
	(find_index_mark): New function.
	(strip_index_marks): New function.

	* src/server/index_marking.h: New file.

	* src/modules/festival.c (FestivalStripPunctChars): New option.
	Don't delete anything by default.

	* src/modules/flite.c (_flite_child): Don't insert '.' after sentences.

	* src/server/speaking.c (speak): Insert index marks before sending to output.

	* src/modules/module_utils.c (DECLARE_MODINFO): Macro deleted.

	* src/modules/module_utils.c (do_set): Don't set other parameters after an error.

	* src/modules/module_utils.c (do_set): Report status only after the trailing dot.


2003-09-19  Milan Zamazal  <pdm@brailcom.org>

	* src/tests/Makefile.am (audio_LDADD): -lglib changed to
	-lglib-2.0.

2003-09-17  Milan Zamazal  <pdm@brailcom.org>

	* config/modules/festival.conf: Use voice_czech instead of
	voice_cz2_mbrola.

2003-09-15  Milan Zamazal  <pdm@brailcom.org>

	* config/Makefile.am (all-local): Use `:' instead of `-' as the
	sed separator.


2003-09-11  Hynek Hanke  <hanke@volny.cz>

	* src/modules/festival_client.c: Formating.

	* config/modules/flite.conf: Reformated.

	* config/modules/epos-generic.conf: Reformated.

	* config/modules/festival.conf: Reformated.

	* src/modules/festival.c (_festival_parent): Only write samples to soundcards if they
	are more than zero.

	* src/server/speaking.c (stop_priority_except_first): Removed unnecessary debugging message.

	* src/server/speechd.c (speechd_load_configuration): Unload old output modules before
	loading new ones.

	* src/server/output.c (output_close): Sleep only 100 usecs before killing the module.

	* src/server/parse.c (parse): Redudant entry for CHAR removed from CHECK_SSIP_COMMANDs.
	(parse_char): Pass inside_block[fd] as parameter of queue_message, since CHAR is allowed
	inside blocks.

2003-09-10  Hynek Hanke  <hanke@volny.cz>

	* src/modules/module_utils.c (module_strip_punctuation_some): Don't use unicode (this processing is called after converting to uni-byte character set).  

2003-09-08  Hynek Hanke  <hanke@volny.cz>

	* config/modules/epos-generic.conf: Use "play" as the output device.

	* src/modules/generic.c (_generic_child): Bugfix: setpgid() takes two arguments, not zero.

	* src/modules/generic.c (_generic_child): Allocate new char *text for each chunk of data
	that comes, not only once.

	* config/modules/festival.conf: Formating.

	* config/modules/epos-generic.conf: Formating.
	(GenericStripPunctChars): New option.

	* src/modules/generic.c (module_write): Strip only requested punctuation characters.
	(_generic_child): Escape also '`'.

	* src/server/output.c (output_is_speaking): Bug fixed, report the right value, not just
	-1. Don't unlock mutex (since it isn't locked).

2003-09-07  Hynek Hanke  <hanke@volny.cz>
	
	* Big changes in output modules and communication with output modules.
	
	* Client-specific configuration.

	* src/modules/module_utils_audio.c: New file.

	* src/modules/module_utils_addvoice.c: New file.

	* src/modules/module_main.c: New file.

	* src/server/sem_functions.h: New file.

	* src/server/sem_functions.c: New file.

	* src/modules/module_utils_addvoice.c: New file.

	* src/modules/cstsnd.c (_cstsnd_synth): Bug with pointer to signal set fixed.
	(module_stop): Kill the process group, not just the process that calls ogg123 etc.

	* src/audio/spd_audio.c (spd_audio_play_file_wav): Check if the file really exists.

	* src/modules/module_utils_audio.c: New file.


	* src/modules/module_utils.c (xfree): Direct the pointer to NULL after freeing the memmory.

2003-09-03  Hynek Hanke  <hanke@volny.cz>

	* intl/fdset.h (TFDSetElement): Fixed comment on languages.

2003-08-31  Hynek Hanke  <hanke@volny.cz>

	* src/server/output.h: New header file.

	* src/server/output.c: New file: output layer.

	* intl/module.h: Definition of new output module (and communication).

2003-08-11  Hynek Hanke  <hanke@volny.cz>

	* src/modules/Makefile.am: Include festival_client.{c,h} and module_utils.c in
	distribution.

	* int/module.h: Include stdlib.h

	* src/server/server.c (queue_message): Copy all the elements of settings.

	* src/server/alloc.c (spd_message_copy): Set the unnecessary elements of the message
	to NULL so that we can later mem_message_free() it without destroying data in the
	original one.

	* src/server/set.c (set_param_str): Changed parameters, return value.

	* src/server/history.c (history_get_message_list): Don't abort, if invalid
	client id is specified, just report ERR_NO_SUCH_CLIENT.

	* config/speechd.conf: Generic output module for Epos added.
	(MaxHistoryMessages): New option.

	* src/server/server.c (queue_message): Ensure message expiration in history when
	MaxHistoryMessage number of messages archieved in history.

	* src/server/speechd.h (MaxHistoryMessages): New variable.

	* src/server/dc_decl.h (MaxHistoryMessages): New DotConf option (message expiration).
	+ default value, + callback

	* src/modules/module_utils.c (MOD_OPTION_1_FLOAT_REG): New macro.
	(MOD_OPTION_1_FLOAT): New macro.

	* config/speechd.conf (FestivalDebugSaveOutput): Option added.

	* config/en/spelling_long.conf (definition): Correct names of characters.

	* config/en/spelling_short.conf (definition): Correct names of characters.

	* src/modules/generic.c (module_load): New file.

	* src/server/speechd.c (speechd_load_configuration): load_output_module call
	changed to two parameters.

	* src/server/module.c (load_output_module): Take two arguments. Name of the module
	and it's filename.

	* src/server/dc_decl.h (cb_AddModule): Take a LIST argument, not STRING.
	(cb_fr_AddModule): Take a LIST argument, not STRING.
	(cb_SoundModule): Take a LIST argument, not STRING.
	


2003-08-08  Milan Zamazal  <pdm@brailcom.org>

	* ltmain.sh: Updated for libtool 1.5.

	* src/server/parse.c (parse): Allow CHAR in blocks.


2003-08-07  Hynek Hanke  <hanke@volny.cz>

	* src/server/server.c (serve): Check for reply not NULL.

	* src/server/parse.c (parse_block): Check if the command is valid.

	* src/server/speechd.c (MSG): Flush output after writing message.

	* src/server/speaking.c (resolve_priorities): Priority notification message is
	canceled if someone is speaking, not postponed.

	* src/server/speechd.c (MSG): Timestamps added.
	(main): daemon() moved a little bit.

	* src/server/speaking.c (stop_priority_except_first): Don't stop the currently spoken
	message if it has the same ID as the last one in the queue.

	* src/server/speaking.h (speaking_gid): New variable.

	* src/server/speaking.c (speak): Set speaking_gid.

	* src/server/parse.c (parse): inside_block now contains id of the group
	of the messages or zero, if not inside a block.

	* src/server/module.c (module_load): Don't print any debug messages on stdout.

2003-07-31	Jan Buchal  <buchal@brailcom.org>

	* config/en/spelling_short.conf: Colon added.
	
2003-07-23  Hynek Hanke  <hanke@volny.cz>

	* config/cs/sound_icons.conf: Junk definitions with beep.wav removed, changed
	to some more logical text, however without diacritics.

	* src/server/dc_decl.h (cb_AddVoice): Accept also upper-case voice names.

	* src/c/api/libspeechd.h: Define extern "C".

	* src/server/speaking.c (resolve_priorities): Don't stop priority 2 and 3 if
	priority 1 arrives.
	(resolve_priorities): Cancel message of priority 4 if some other priority is
	speaking.


2003-07-21  Milan Zamazal  <pdm@brailcom.org>

	* src/server/speechd.c (main): Set SO_REUSEADDR.


2003-07-21  Hynek Hanke  <hanke@volny.cz>

	* configure.in: Create config/cs/Makefile.in

2003-07-21  Hynek Hanke  <hanke@volny.cz>
	
	* config/Makefile.am (subdirs) + cs/

	* src/audio/spd_audio.c (spd_audio_play_file): New function.
	(spd_audio_play_file_wav): New function. Stuff moved from src/modules/cstsnd.c

	* src/audio/spd_audio.h: New prototypes included.

	* src/audio/spd_audio.c (spd_audio_play_file_ogg): New function. Only quick and
	dirty; it calls ogg123 through system(), but currently I don't know how to do
	it better. It seems to work good.

	* src/modules/cstsnd.c (_cstsnd_synth): Call spd_audio_play_file() instead of
	doing it all alone.

	* src/audio/spd_audio.c (spd_audio_play_file): New function for playing .wav
	and .ogg files.

	* src/tests/audio.c: New test for the audio library: play a wave or ogg file.

	* src/tests/Makefile.am: audio.c: New test.

	* configure.in: Complain if some of the libraries isn't present and exit the build process.
	(AC_LANG): Now set to C.
	(AC_OUTPUT): Inserted doc/Makefile

2003-07-20  Hynek Hanke  <hanke@volny.cz>

	* src/server/parse.c (parse_set): Allow SET * LANGUAGE command inside a BLOCK.

2003-07-18  Hynek Hanke  <hanke@volny.cz>

	* src/server/speechd.h (inside_block): New variable, keeps track of whether
	each of the connections is inside an SSIP BLOCK or not.

	* src/server/parse.h (parse_block): New prototype.

	* src/server/msg.h: New SSIP messages related with BLOCK BEGIN/END.

	* src/modules/module_utils.c (module_speak_thread_wfork): Close pipes correctly
	on error (fork fails etc.)

	* src/server/parse.c (parse_set): Inserted NOT_ALLOWED_INSIDE_BLOCK() macro calls
	where necessary.
	(BLOCK_NO): New macro -- SSIP command allowed inside block.
	(CHECK_SSIP_COMMAND): New argument: allowed_in_block
	(NOT_ALLOWED_INSIDE_BLOCK): New macro.

	* src/server/sndicon.c (sndicon_queue): If inside_block[fd], queue the 
	icon with `reparted' flag.	

	* src/server/parse.c (parse_block): New function.
	(parse): If inside_block[fd], queue the message with `reparted' flag.

	* src/server/speechd.c (speechd_init): Allocate and initialize inside_block.

	* src/server/server.c (server_data_on): Set inside_block[fd] to 0.

	* src/server/dc_decl.h (LogFile): Open the file in `append' mode instead of `write' mode.

	* src/server/sndicon.c (sndicon_queue): If the icon wasn't found for that language table,
	look also to the same table for default language.

	* config/en/sound_icons.conf: New sound icons.

	* src/server/Makefile.am (AM_CFLAGS): Pass pluginsdir, not libdir.

	* src/modules/Makefile.am (plugins_LTLIBRARIES): Changed from lib_LTLIBRARIES.

	* configure.in (pluginsdir): New AC_SUBST variable for automake.

	* src/modules/festival.c (_festival_parent): Debuging with writing received sound to disk enabled.
	(FestivalDebugSaveOutput): New dotconf option for Festival.

	* src/modules/module_utils.c (module_audio_output_child): Data termination string changed fro LFCR.LFCR.
	(module_audio_output_child): If there are some data before the termination string, add them
	to samples.

	* src/modules/festival.c (_festival_parent): Data termination string changed fro LFCR.LFCR.

2003-07-17  Hynek Hanke  <hanke@volny.cz>

	* src/modules/module_utils.c (module_signal_end): New function. Send SIGUSR1 to speechd.

	* src/modules/cstsnd.c (_cstsnd_speak): Call module_signal_end().

	* src/modules/festival_client.c (client_accept_waveform): Determine the sample_count
	and sample_rate correctly from NIST header.
	(festival_accept_any_response): New function.
	(festivalOpen): Set Wavefiletype to nist in festival.

	* src/server/speaking.c (speak): Don't loop / don't post sem_messages_waiting again
	if is_sb_speaking() == 1. Instead rely on the semaphore, which is set by signals
	from output modules.

	* src/modules/module_utils.c (module_speak_thread_wfork): Send SIGUSR1 to parent
	when terminated.

	* src/server/speaking.c (resolve_priorities): Bug in priorities fixed: priority
	``message'' now surpresses priority text, while priority ``text'' doesn't interrupt
	``message''.

	* src/server/Makefile.am (speechd_SOURCES): +options.c

	* src/server/options.h (spd_long_options): -h | --help, new option.

	* src/server/speechd.c (main): Run as a daemon or in single mode.

	* src/server/options.c (options_print_help): New function.

	* src/server/speechd.c (main): Priorities of some debugging messages changed.

	* src/server/dc_decl.h (load_default_global_set_options): SPEECHD_PORT -> spd_port.
	(cb_Port): SPEECHD_PORT -> spd_port.	

	* src/server/speechd.h (spd_port): Renamed from SPEECHD_PORT.

	* src/server/options.c: New file.
	(SPD_OPTION_SET_INT): New macro.
	(options_parse): New function.

	* src/server/Makefile.am (speechd_SOURCES): +options.h

	* src/server/options.h: New file.
	(spd_long_options): New variable.
	(spd_short_options): New variable.

	* src/server/dc_decl.h (load_default_global_set_options): Only set log level and
	port if not set before.

	* src/server/speechd.h (spd_log_level_set): New variable.
	(spd_port_set): New variable.

	* src/server/speechd.c (main): Set SIGPIPE handler to SIG_IGN.

2003-07-16  Hynek Hanke  <hanke@volny.cz>

	* src/tests/run_test.c (main): Accept stdin as valid argument.
	(main): fflush(NULL) when necessary.

	* src/server/speechd.h: Include alloc.h

	* src/server/speechd.c (main): Call daemon(0,0).

	* src/server/server.c (queue_message): Put the message to history before putting
	it into queues (so that we don't free it's content in the second thread before
	we can copy it into history).

	* src/server/alloc.c (spd_message_copy): alloc length __ * sizeof(char) __ for new_buf.

	* src/modules/module_utils.c: Small changes in some debugging messages.

	* src/modules/festival_client.c (festival_get_ack): New function, reopen socket connection
	to festival_server if read() returns 0 (invalid file descriptor).

	* src/server/speaking.c (process_message_punct_cap): Test for spelled_punct == NULL moved
	out of the if(chu){...} block

	* src/server/dc_decl.h (cb_AddVoice): Fill voices structure with NULLs on the beginning.

	* src/server/parse.c (parse_key): Copy strlen(key), not _bytes_ (of the command) to verbat.
	(parse_char): Copy strlen(character), not _bytes_ (of the command) to verbat.
	
	* src/modules/festival_client.c (festivalStringToWaveGetData): Check if read() doesn't return
	0, if yes, return NULL. I don't really understand how read() can return 0 in this situation
	=> possible problems. Or maybe there is some problem in festival itself...

	* src/modules/festival_client.c (festivalOpen): Disable the "festival returned error" message.

	* src/server/speechd.c (main): Catch SIGPIPE and do nothing (broken pipes are ok
	in output modules comunication).
	(speechd_sigpipe_handle): New function.

	* src/server/speaking.c (process_message_punct_cap): Set *sound to 0, if
	snd_icon_spelling_get() doesn't succeed.

	* src/server/sndicon.c (sndicon_queue): Allocate space in "ret" for the trailing 0.
	(snd_icon_spelling_get): Sound initialization moved to the first place in block.

	* src/modules/festival.c (module_close): Force remove of temporary file (if any).

	* src/server/set.c (set_client_name_self): Loop until strlen(client_name)-1.

2003-07-10  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/module_utils.c (module_sigblockall): Don't take any
	arguments.  Let all_signals be an allocated variable, not only a
	pointer.
	(module_audio_output_child): Don't call module_sigblockall with an
	argument.

2003-07-09  Hynek Hanke  <hanke@volny.cz>

	* src/server/sndicon.h: #ifdef -> #ifndef.
	Include glib.h.
	(snd_icon_spelling_get): Prototype updated.

2003-07-08  Hynek Hanke  <hanke@volny.cz>

	* src/tests/run_test.c: Some new functionality added (clear
	screen, indentation)

	* src/tests/general.test: A general tour around SSIP commands for
	LSM 2003.

	* src/c/api/libspeechd.h: Missing prototypes added.

2003-07-07  Hynek Hanke  <hanke@volny.cz>
	
	* src/server/sndicon.c: Use SOUND_DATA_DIR.

	* src/server/speechd.h (SOUND_DATA_DIR): New variable.

	* src/server/dc_decl.h (cb_SoundDataDir): New dotconf callback (+default).

	* config/speechd.conf: DefaultCapLetRecognition set to "none"
	(SoundModule): Renamed from SndModule.
	(SoundDataDir): New option.

2003-07-07  Hynek Hanke  <hanke@volny.cz>
	
	* src/server/sndicon.c: Use SOUND_DIR instead of DATA_DIR.

	* src/server/set.c (SET_SELF_ALL): New macro.

	* src/server/Makefile.am: Use sndatadir instead of datadir.

	* intl/fdset.h (ECapLetRecogn): New type.

	* config/en/spelling_short.conf: Also in capital letters recognition group.	

	* config/en/spelling_long.conf: Also in capital letters recognition group.

	* config/en/sound_icons.conf (capital_letter): New sound icon.

	* config/speechd.conf: cs tables added.

	* sounds/Makefile.am (dist_snddata_DATA): Only install *.wav

	* configure.in (sysconfdir): Default path for sounds is now $datadir/sounds/speechd.

	* src/modules/cstsnd.c: Now uses module_utils.c, converted to the new style of
	output modules.

	* src/server/parse.c (parse_list): LIST CAP_LET_RECOGN_TABLES: New SSIP command.
	(parse_set): SET * CAP_LET_RECOGN_TABLE: New SSIP command.
	(parse_set): SET * CAP_LET_RECOGN: New SSIP command.

	* src/server/dc_decl.h (table_add): New tables group: tables.cap_let_recogn.

	* src/server/speechd.c (speechd_init): New tables group: tables.cap_let_recogn.

	* src/server/dc_decl.h (DefaultCapLetRecognition): New option (+callback, +default).
	(CapLetRecognIcon): New option (+callback, +default).
	(DefaultCapLetRecognTable): New option (+callback, +default).

	* src/server/speaking.c (process_message_punct_cap): Renamed from process_message_punctuation.
	(process_message): Also handle capital letters recognition.

	* src/modules/flite.c (flite_set_voice): Don't use MALE3 for awb.

	* config/speechd.conf: SupportedLanguage deleted. 
	"en" is now first item in LanguageDefaultModule.

2003-07-06  Hynek Hanke  <hanke@volny.cz>
	
	* intl/def.h (SPEECHD_DEFAULT_PORT): Renamed from SPEECH_PORT.

	* src/c/clients/say/say.c (main): Removed junk code.
	Priority changed to new type (SPDPriority).

	* src/tests/run_test.c (main): Check for SPEECHD_PORT in environment variables.

	* src/tests/Makefile.am (clibrary): New test for the C API.

	* src/server/set.c: Use spd_strdup.
	(_spd_set_param_str): First argument changed to char** as we use realloc().

	* src/server/alloc.c (spd_strdup): Now also passes NULL without complaining.

	* src/modules/festival.c (module_close): Wait 5us before subsequent tries
	to stop the module.

	* config/speechd.conf: Most of the options commented out, default values
	are used now instead.

	* src/server/dc_decl.h (cb_Port): New dotconf callback.
	(load_default_global_set_options): Set default SPEECHD_PORT to 9876.

	* src/server/speechd.c (main): Use SPEECHD_PORT.

	* src/server/speechd.h (language_default_modules): New hash table.

	* config/speechd.conf (LanguageDefaultModule): New options.

	* src/server/dc_decl.h (cb_LanguageDefaultModules): New dotconf callback.

	* src/server/speechd.c (speechd_init): Initialize language_default_modules table.

	* src/server/dc_decl.h (cb_DefaultVoiceType): Convert to upper case before comparing.
	(cb_DefaultPriority): Convert to lower case before comparing.

	* src/server/speechd.c (speechd_load_configuration): Load default configuration.

	* src/server/dc_decl.h (load_default_global_set_options): New function.

	* src/c/api/libspeechd.h (SPDVoiceType): New type.
	(SPDPriority): New type.
	New declarations.

	* src/c/api/libspeechd.c (SPD_SET_COMMAND_INT, STR, SPECIAL): spd_set functions are now
	declared by this macro.
	(spd_set_*_table_*): New commands for setting tables.
	(spd_set_voice_*): New commands.
	Priorities are now passed as type SPDPriority.
	

	* src/tests/clibrary.c: A general test of some of the capabilities of the
	C API for Speech Dispatcher.

	* src/server/speaking.c (speak): Check if last_p5_message hasn't been spoken yet.

2003-07-05  Hynek Hanke  <hanke@volny.cz>

	* src/server/dc_decl.h (cb_DefaultVoiceType): Use MALE1, if the specified parameter
	is invalid.

2003-07-05  Hynek Hanke  <hanke@volny.cz>
	
	* src/c/clients/Makefile.am: spd-center removed.

	* src/server/parse.c (parse_char): Check if character != NULL or empty.

2003-07-05  Hynek Hanke  <hanke@volny.cz>
	* src/server/speechd.c (main): Use SIGHUP again instead of SIGUSR2 to reload configuration.

	* src/server/server.c: Don't use alarms for priority 5 handling.

	* src/server/dc_decl.h: Better checking for validity of parameters.
	(GLOBAL_FDSET_OPTION_CB_INT): New macro.
	(GLOBAL_FDSET_OPTION_CB_STR): New macro.
	
	* src/modules/flite.c (module_close): Missing `static' added.

	* src/modules/festival_client.c (festivalClose): Send (quit) to festival server before
	closing pipe.

	* src/audio/spd_audio.c: Check if spd_audio_device is not NULL.

	* intl/def.h (LOG_LEVEL): Unnecessary macro removed.

	* config/en/spelling_long.conf: Table name changed.

	* config/en/keys.conf: Table name changed.

	* config/speechd.conf: Table names changed, default voice now MALE1, not 1.

	* src/modules/festival.c (module_close): Call festivalClose().

	* src/modules/module_utils.c (module_write_data_ok): Check data[0] against 0, not 
	'0' (the character).
	(module_audio_output_child): Close pipes before exiting.

	* src/server/speaking.c (resolve_priorities): Leave at least one message in p5 queue waiting.
	(speak): Speak "last" priority 5 message if there are no msgs waiting and the last
	message said was of priority 5. Set on semaphore after that.

	* src/server/parse.c: Cleaning, using macros, better memmory management.

	* src/server/msg.h (ERR_RATE_TOO_LOW, HIGH): New SSIP messages.

	* src/server/parse.c (parse_history): Don't crash if SSIP "history" is sent alone.

2003-06-27  Hynek Hanke  <hanke@volny.cz>

	* src/audio/spd_audio.c (spd_audio_open): Fill spd_audio_device with NULL if can't open audio.

	* src/modules/festival.c (_festival_parent): Only report number of samples in debugging message.

	* src/modules/module_utils.c (module_audio_output_child): Check if spd_audio_open returns ok.
	Use xfree().

	* src/audio/spd_audio.c: Check parameters for a NULL wave.

	* src/modules/festival_client.c: festivalEmptySocket deleted.

	* src/modules/festival.c (_festival_parent): asserts added.

	* src/modules/festival_client.c (festivalOpen): Added definition of
	speechd_tts_textall.
	(festivalStringToWaveRequest): Use (speechd_tts_textall).

	* src/modules/festival.c: Check if bytes != 0 also in the first run.
	(module_close): Delete the est_ files in tmp if there are any.

2003-06-25  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/module_utils.c (module_strip_punctuation_default):
	Brackets added to the characters to strip.

2003-06-23  Jan Buchal   <buchal@domaciskola.robinson>

	* src/modules/festival.c (festival_set_voice): Set cur_rate
	and cur_pitch to 0 on voice change.

	* src/modules/festival_client.c (festivalSetPitch): Control
	if festival_info is ok.

	* src/server/server.c (serve): Read only BUF_SIZE-1 bytes,
	as BUF_SIZE is with the trailing 0.

2003-06-23  Hynek Hanke  <hanke@localhost.localdomain>

	* src/server/module.c: Renaming to spd_options and spd_num_options.

	* src/server/history.c: Use spd_message_copy for duplicating messages.

	* src/modules/flite.c: Don't include spd_audio.h

	* src/modules/festival_client.c (festival_default_module): Renamed to festivalDefaultModule,
	made public.

	* config/speechd.conf: ApolloDevice option added.

	* src/server/dc_decl.h: Removed ApolloLanguage.

	* intl/module.h: Removed structure ApolloLanguage.

	* src/server/alloc.c (spd_module_free): g_module_close moved to the end.

	* src/modules/module_utils.c (UPDATE_PARAMETER): Stolen from apollo.c
	(UPDATE_STRING_PARAMETER): Burgled from apollo.c

	* src/modules/apollo.c (module_write): Changed arguments.

	* src/modules/module_utils.c (module_get_ht_option): New function.

	* src/modules/apollo.c (module_load): DEVICE defaults to /dev/apollo.
	ApolloDevice is now a dotconf option.


	* src/modules/apollo.c: Include module_utils.c
	Prototypes and modinfo handled by macros.

	* src/server/server.c (queue_message): Use spd_strdup().

	* src/server/speaking.c (process_message_punctuation): Insert coma after spelled punctuation
	characters for better intonation.

	* src/modules/festival.c (_festival_parent): Don't wait for response from child if fwave==NULL.

	* src/server/alloc.c (spd_module_free): New function.

	* src/modules/festival.c (module_close): Delete festival_info when closing.

	* src/server/speechd.h: num_config_options and options aren't global now.

	* src/server/dc_decl.h (dc_cbEndAddModule): Don't abbort if initialization of output module failed.
	(add_config_option): num_config_options now passed as argument.

2003-06-20  Hynek Hanke  <hanke@localhost.localdomain>

	* src/tests/sayfortune.sh: Very simple script using Speech Dispatcher to read a fortune.

	* config/speechd.conf: New options for output modules.

	* src/server/server.c (serve): Use size_t instead of int for _bytes_.

	* src/server/module.c: Changed calls for module_load and module_init,
	reads dotconf callbacks.

	* src/server/dc_decl.h: Now reads configuration in two passes, it includes
	callbacks from output modules.
	(cb_AddModule): Only get the module structure from hash table.
	(cb_fr_AddModule): First-pass AddModule callback, does what cb_AddModule before,
	registers new callbacks.

	* src/server/alloc.c (spd_free): New function (checks if argument isn't NULL).

	* src/modules/festival_client.c (festivalEmpty): Removed.
	(festivalSetPitch): New function for setting pitch mean and stddev.

	* src/audio/spd_audio.c (spd_audio_close): Close audio only if it wasn't closed before.

	* intl/module.h (OutputModule): Changed types of parameters, pause() now returns
	only the position (int) instead of text (char*).

	* intl/fdset.h: Include only once.

	* src/modules/module_utils.c: Many new function and macro utilities 
	aiming to make writing output modules easier.

	* src/module/module_utils.c Proper closing of audio device.

	* src/modules/flite.c: Uses macros for repetitive code, declares it's own
	DotConf options, new pause mechanism, cleaning, ...

	* src/modules/festival.c: Uses macros for repetitive code, declares it's own
	DotConf options, supports pitch setting, allways synchronized with Festival
	server output, new pause mechanism, cleaning, ...

	* src/server/parse.c (parse_pause): Only set flags and add to semaphore.

	* src/server/speaking.c (speaking_pause): Queue message as preprocessed yet.
	(speak): Pause mechanism changed: pause function now called from here depending
	on flags and semaphores (to not block SSIP communication).
	(current_message): Mantain a copy of the last message sent to output module (for
	pause/resume).

	* src/modules/module_utils.c: New functions and macros to help developing output modules.
	(module_getvoice): Accept OutputModule* as parameter.

	* src/modules/flite.c: Cleaned, use module_utils.c functions.
	(module_load): Parameters changed, new options.

	* src/modules/festival.c (_festival_synth): Free thw wave and fwave data.
	(module_init): Free fwave.

	* src/server/parse.c (get_param): Free memmory if there is no parameter to pass.

	* src/server/speechd.c (speechd_init): Don't allocate memmory for logfile.

	* src/server/parse.c (CHECK_SSIP_COMMAND): New macro.

	* src/server/speechd.c (MSG): format_with_spaces deleted.

2003-06-11  Hynek Hanke  <hanke@localhost.localdomain>

	* src/server/speechd.c (speechd_connection_new): Initialize o_buf, o_bytes to 0.


2003-06-09  Jan Buchal  <buchal@brailcom.org>

	* src/tests/Makefile.am: references to multiple_messages removed.


2003-06-08  Hynek Hanke  <hanke@localhost.localdomain>

	* src/server/dc_decl.h (cb_MinDelayProgress): New callback.

	* src/modules/flite.c (module_init): Return -1 if can't set default voice.

	* src/c/api/libspeechd.c: Switched to string-described priorities.

	* config/speechd.conf (MinDelayProgress): New option: how should Speech Dispatcher
	wait before considering tha last message of priority Progress ``the last''.

	* src/server/server.c (queue_message): Use min_delay_progress.

	* intl/fdset.h: min_delay_progress added to TFDSet.

2003-06-05  Hynek Hanke  <hanke@localhost.localdomain>

	* src/server/speechd.h (last_p5_message): Archive last priority ``notification'' message here.

	* src/server/speechd.c (speechd_alarm_handle): Handle alarm for delayed priority 5 messages.
	(speechd_alarm): New function: set alarm to the requested time in microseconds.

	* src/server/msg.h (ERR_UNKNOWN_PRIORITY): New SSIP return message.

	* src/server/parse.c (parse_set): Accept priorities (SET ... PRIORITY name) by their names.

	* src/server/speaking.c (resolve_priorities): Rules for priorities changed.
	(stop_priority_except_first): New function.

	* src/server/alloc.c (speechd_queue_alloc): 2 new priorities.

	* src/server/server.c (queue_message): Priorities changed.

2003-06-03  Hynek Hanke  <hanke@localhost.localdomain>

	* config/speechd.conf: New option ``LogLevel''.

	* src/server/speechd.c (MSG): Use spd_log_level instead of LOG_LEVEL.

	* src/server/speechd.h (spd_log_level): New variable: current log level.

	* src/server/dc_decl.h (cb_LogLevel): New dotconf callback.

	* src/server/speechd.c (speechd_reload_configuration): Reload configuration on SIGHUP.
	(main): Register speechd_reload_configuration for SIGHUP.

2003-06-02  Hynek Hanke  <hanke@localhost.localdomain>

	* src/modules/flite.c (flite_close): Don't panic if stopped around fork().

	* src/server/sndicon.c (sndicon_queue): Don't print out the ugly debuging message.

	* src/server/speaking.c (speak): Don't crash if the data in the message is NULL.

	* src/server/sndicon.c (snd_icon_spelling_get): Cut off the trailing `"'

2003-06-01  Hynek Hanke  <hanke@localhost.localdomain>

	* src/server/speechd.c (MSG): Bug fixed: free allocated memmory.

	* src/server/parse.c (spd_utf8_read_char): Moved from speaking.c

	* src/modules/Makefile.am: module_utils.c added to festival sources.

	* src/server/speaking.c (process_message_spell): The interpunction
	problem solved (inserts punctuation before sound icons text).

	* src/server/speechd.h (sem_messages_waiting): New semaphore.

	* src/server/speaking.c (msglist_insert): Moved from server.c
	(process_message): Moved from server.c
	(process_message_punctuation): Moved from server.c
	(set_speak_thread_attributes): New function: splitted from speak().
	(speak): Use semaphores instead of `busy-wait'.
	(resolve_priorities): New function: splitted from speak().
	(speak): Insert into paused list even messages with priority 3.
	(get_message_from_queue): New function: splitted from speak().
	(get_output_module): New function: splitted from speak().

	* src/server/server.c: Cleaning.

	* src/modules/module_utils.c: New file: Common functions for
	output modules.

	* src/modules/festival.c: Include module_utils.c

2003-05-29  Hynek Hanke  <hanke@volny.cz>

	* src/server/speechd.c (speechd_init): Init max_gid to 0.

	* src/server/sndicon.c: queue_message() calling fixed.

	* src/server/speaking.c (speak): process_message() again under mutex.

	* src/server/dc_decl.h (cb_EndAddModule): Exit on error (bug fixed).

	* src/server/speechd.h (max_gid): New global variable: group id unique identifier.

	* src/server/speaking.c (speaking_stop): Stop the whole message even if it has
	more parts.
	(speaking_stop_all): Stop the whole message even if it has
        more parts.

2003-05-31  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/apollo.c (module_load): Initialize apollo_languages.
	(set_language): Get the language definition parmeters from
	configuration.
	* intl/module.h (SPDApolloLanguageDef): New structure.
	(SPDModuleSettings): New member `apollo_coding'.
	* src/server/dc_decl.h (options): ApolloLanguage added.
	(cb_ApolloLanguage): New dotconf callback.
	* config/speechd.conf: LanguageROM options added to "apollo".

	* src/tests/long_message.c: Omitted newlines added to the
	multiline strings.

2003-05-29  Milan Zamazal  <pdm@brailcom.org>

	* src/tests/long_message.c (main): Split multi-line strings to
	single-line strings.
	* src/tests/multiple_messages.c (main): Likewise.

2003-05-27  Milan Zamazal  <pdm@brailcom.org>

	* src/c/api/libspeechd.c (xmalloc): Prototype declaration fixed.

2003-05-26  Hynek Hanke  <hanke@localhost.localdomain>

	* src/c/api/libspeechd.c (xmalloc): Use unsigned int as it's parameter.

	* INSTALL: Internet links for some of the requiered packages.
	``make all'' moved after the notice about flite with shared
	libraries.

	* configure.in: AC_PROG_CXX deleted, not longer needed.
	AC_CHECK_LIB(recode, main): New check for requiered library.

	* src/server/server.c (process_message_spell): Fixed bug with strlen in for-cycle condition.
	Take into account the changes in snd_icon_spelling_get()
	(process_message_punctuation): Fixed bug with strlen in for-cycle condition.
	

	* src/server/sndicon.c (snd_icon_spelling_get): Optimized for speed.

2003-05-26  Hynek Hanke  <hanke@volny.cz>

	* Speech Deamon renamed to Speech Dispatcher.

2003-05-26  Hynek Hanke  <hanke@volny.cz>

	* src/server/parse.c (parse_set): Handle new SSIP command: SET {SELF|ALL|id} OUTPUT_MODULE module

	* src/server/set.h: Declarations of new functions set_output_module_*

	* src/server/set.c (set_output_module_uid): New function: set other default output module for this client.
	(set_output_module_all): New function.
	(set_output_module_self): New function.

	* src/server/msg.h (ERR_COULDNT_SET_OUTPUT_MODULE): New SSIP message.
	(OK_OUTPUT_MODULE_SET): New SSIP message.
	

2003-05-25  Hynek Hanke  <hanke@localhost.localdomain>

	* src/server/sndicon.c (queue_message): New parameter passed.
	Handle `space' as CHAR parameter.

	* src/server/msg.h (OK_VOICE_LIST_SENT): New SSIP message.

	* src/server/history.c (queue_message): New parameter passed.

	* src/server/server.c (queue_message): New parameter: is it a whole message or only a piece?
	(queue_messages):  New parameter: is it a whole message or only a piece?

	* intl/fdset.h (TFDSetElement): New flag for messages after spelling and punctuation.

	* src/server/speaking.c (speak): Handle priority 3 messages sent in more pieces (after processing).

	* src/server/parse.c (get_param): Parameters aren't enclosed in doublequotes.
	(parse_char): Handle "space" parameter.
	(parse_list): LIST VOICES implemented.


2003-05-22  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/festival.c: All internal objects declared static.
	(module_getparam_int): Use `strtol' instead of `atoi' and be safe
	on conversion failure.
	(module_getvoice): Report "Unknown voice" instead of "Internal
	error".


2003-05-21  Hynek Hanke  <hanke@volny.cz>
	
	* src/server/speaking.c (speak): Don't include process message into mutex.

2003-05-21  Hynek Hanke  <hanke@volny.cz>
	
	* src/modules/festival_client.c (festivalSetRate): New function.

	* src/modules/festival.c (festival_write): Set the appropriate rate.
	(festival_write): Also call festivalSetVoice when the language changes.
	(festival_cur_rate): New variable. (Set rate only when necessary.)
	(_festival_recode): Recode the stream when necessary.
	(festival_write): Call _festival_recode for each incomming data.

2003-05-20  Hynek Hanke  <hanke@volny.cz>

	* src/server/server.c (Module): Added debugging message.

	* src/modules/festival.c (festival_write): Insert one extra space to festival_message.
	More debugging messages.

	* src/modules/festival.c (_festival_synth): Make sure the buffer is empty.
	(_festival_synth): Only process wave if it's not NULL.

	* src/modules/festival_client.c (festivalEmptySocket): New function: clear the data stream.

2003-05-18  Hynek Hanke  <hanke@volny.cz>

	* intl/fdset.h (Module): NO_VOICE: New type of voice

	* config/speechd.conf: New mechanism for loading output modules.

	* src/modules/flite.c (module_load): Initialize the settings tables.

	* src/modules/festival.c (module_getvoice): New function. Get voice name from passed settings.
	(festival_write): Set the appropriate voice.

	* src/modules/festival_client.c (festivalSetVoice): New function.

	* src/modules/flite.c (modinfo_flite): Settings initialization.
	(module_init): New function.
	(module_load): Renamed from module_init().

	* src/modules/cstsnd.c (modinfo_cstsnd): Settings initialization.
	(module_init): New function.
	(module_load): Renamed from module_init().

	* src/modules/festival.c (modinfo_festival): Settings initialization.
	(module_init): New function.
	(module_load): Renamed from module_init().

	* src/modules/apollo.c (modinfo_apollo): Settings initialization.
	(module_init): New function.
	(module_load): Renamed from module_init().
	
	* intl/module.h (SPDVoiceDef): New structure type: Mapping of the symbolic voice names.
	(SPDModuleSettings): New structure type: Settings for the output modules.
	(OutputModule): New item: SPDModuleSettings settings.
	Initialization in other modules changed.

	* src/server/dc_decl.h (cb_AddModule): Now also act as a switcher between contexts.
	Don't initialize the output module, only load it into memmory.
	(cb_EndAddModule): Terminate current context.
	Initialize the output module.
	(cb_AddParam): Add new parameter to the given output module.
	(cb_AddVoice): Add new voice to the given output module.

	* src/server/module.c (init_output_module): New function: initialize output module.
	(load_output_module): Renamed from init_output_module: only load it into memmory.

	* src/modules/festival.c (module_init): Set server_host and server_port according
	to user settings.

2003-05-17  Hynek Hanke  <hanke@volny.cz>

	* src/audio/spd_audio.h: Include flite/flite.h.

	* src/modules/Makefile.am: Don't use C++.
	Link festival.c into a new plugin for Speech Deamon.

	* src/modules/festival_client.c: Festival client/server functions library.

	* src/modules/festival_client.h: Festival client/server functions library.

	* src/modules/festival.c: New Festival output plugin.

2003-05-13  Jan Buchal  <buchal@robinson>

	* src/server/server.c (process_message_punctuation): Only fill new_message if str not NULL.

2003-05-12  Milan Zamazal  <pdm@zamazal.org>

	* configure.in: Missing AC_CHECK_LIB arguments added.

2003-05-11  Hynek Hanke  <hanke@volny.cz>

    	* src/server/server.c (process_message_spelling): Don't queue \r and \n strings when
	not found in sound icons.

	* src/sounds: New directory.

	* src/sounds/Makefile.am: Install sounds.

	* Makefile.am: New directory sounds.

	* src/configure.in: Set datadir to the appropriate path.

	* src/server/sndicon.c: Read sound icons from DATA_DIR

2003-05-11  Hynek Hanke  <hanke@volny.cz>

	* src/c/api/libspeechd.c: Completely reworked.
	All callers changed.

	* src/c/api/libspeechd.h: Completely reworked.
	All callers changed.

2003-05-07  Hynek Hanke  <hanke@volny.cz>

	* src/tests/spelling.test: New test.
	
	* src/server/dc_decl.h: Exit if the specified output module doesn't exist.
	
	* src/tests/punctuation.test: New test.

	* src/server/parse.c: Added "LIST PUNCTUATION_TABLES"
	
	* src/server/server.c (process_message_punctuation): Bug corrected.

2003-05-07  Hynek Hanke  <hanke@volny.cz>
	
	* config/speechd.conf (SndModule): New option: sound module to load.
	Fixed sound->rate in commentaries.

	* src/modules/Makefile.am (cstsnd): New output module for sound.

	* src/modules/cstsnd.c: New output module.
	
	* src/server/sndicon.c (sndicon_queue): Handle icons represented by sounds.

	* src/server/server.c (process_message_punctuation): Handle icons represented by sounds.
	(process_message_punctuation): Don't throw away signs not found in "important" table.

	* src/server/speaking.c (speak): Call sound_module for sounds.

	* src/audio/spd_audio.c (spd_audio_read_wave): New function.

	* src/server/speaking.c (speak): Use sound output module when necessary.

	* src/server/speechd.h (sound_module): New variable.

	* src/server/server.c (process_message_spell): Handle icons represented by sounds.
	(queue_messages): New function. Queue a list of messages.

	* src/server/sndicon.h (snd_icon_spelling_get): New parameter int *sound
	
	* src/server/dc_decl.h (cb_SndModule): Define sound module.

	* src/server/sndicon.c (snd_icon_spelling_get): Handle icons representing sound (wav).

	* intl/fdset.h (EMessageType): New type MSGTYPE_SOUND.

	* src/server/dc_decl.h (cb_AddTable): Accept entries in "".

	* src/modules/flite.c (_flite_synth): Bug with messages not terminated by a dot fixed.

2003-05-06  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/apollo.c (module_init): Set punctuation off.

2003-05-06  Hynek Hanke  <hanke@localhost.localdomain>

	* src/server/history.c (history_get_message): New function.

	* src/server/parse.c (parse_history): HISTORY CURSOR NEXT/PREV changed to FORWARD/BACKWARD.
	(parse_history): HISTORY GET MESSAGE: New SSIP command.

	* src/server/msg.h (OK_CLIENT_ID_SENT): New SSIP message.

	* src/server/history.c (history_get_client_id): New function.

	* src/server/parse.c (parse_history): Added HISTORY GET CLIENT_ID.

	* config/speechd.conf (DefaultClientName): Added "user" entry.

	* src/modules/Makefile.am (AM_CFLAGS): Link libsdaudio dynamically.

	* src/modules/flite.c (_flite_sigblockusr): New function. Block SIGUSR1 signal.
	(_flite_synth): Block SIGUSR1 while sending data to soundcard.
	(_flite_synth): Divide message according to sentences, not lines.

	* src/server/speaking.c (speaking_pause_all): Queue according to the paused clients,
	not the calling one.


2003-05-05  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/festival.cc (modinfo_festival): `filename' removed.

2003-05-01  Hynek Hanke  <hanke@localhost.localdomain>

	* src/modules/flite.c (module_flite): filename entry deleted.

	* src/modules/apollo.c (apollo_is_speaking): Return 2 for ``don't know''
	(module_apollo): filename entry deleted.

	* src/server/speaking.c: is_sb_speaking() can also return 2 for ``don't know'' 

2003-04-29  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/apollo.c (apollo_pause): Call apollo_stop.

	* INSTALL: libfestival-dev and libestools-dev added.
	* configure.in: Call AC_PROG_CXX.
	* src/modules/est_string_config.h: New file.
	* src/modules/Makefile.am: Build the Festival module.
	(AM_CXXFLAGS): New variable.
	* src/modules/festival.cc: Renamed from festival.c.
	(festival_pause): New function.

2003-04-28  Milan Zamazal  <pdm@brailcom.org>

	* src/Makefile.am (SUBDIRS): Process `audio' before `modules'.

2003-04-28  Hynek Hanke  <hanke@localhost.localdomain>

	* src/server/speaking.h: New headers for speaking_pause_all(), speaking_resume_all().

	* src/server/speaking.c (speaking_pause_all): New function.
	(speaking_resume_all): New function.
	(speaking_pause): Reworked.
	(speaking_resume): Reworked.

	* src/server/speechd.h: Removed stop/cancel/pause/resume functions.
	
	* src/server/parse.c (pause): Reworked.
	(resume): Reworked.
	
	
	* src/modules/apollo.c (apollo_pause): New function. Needs some work:)

	* src/modules/flite.c (_flite_speak): Use the spd_audio.c library.
	(_flite_synth): New function. Splitted from _flite_speak.
	(flite_pause): New function. Stop speaking the message and return the rest.

	* src/audio/spd_audio.h: New header file for spd_audio.c.

	* src/audio/spd_audio.c: New file: Audio output for Speech Deamon.

	* configure.in: Build src/audio.	

	* Makefile.am: Build src/audio.

	* src/Makefile.am: Build src/audio.

2003-04-25  Milan Zamazal  <pdm@brailcom.org>

	* INSTALL: Dependency on librecode added.
	* src/modules/Makefile.am (libsdapollo_la_LDFLAGS): -lrecode
	added.
	* src/modules/apollo.c: Include recode.h and stdbool.h.
	(recode_outer, recode_request): New variables.
	(module_init): Initialize them.
	(set_language): Set recoding.
	(apollo_write): Recode data.
	(set_speed): Renamed to set_rate.
	(apollo_write): Change above considered.
	(UPDATE_STRING_PARAMETER): Typo in the new_value NULL test fixed.

2003-04-24  Hynek Hanke  <hanke@volny.cz>

	* config/speechd.conf: english -> en
	
	* src/server/dc_decl.h: speed -> rate
	
	* src/server/speechd.h (fds_allocated): New variable.

	* src/server/sndicon.c (sndicon_key): Reworked, new key format introduced.

	* src/server/parse.c (parse_help): New function, SSIP HELP command.

	* src/server/msg.h (OK_HELP_SENT): New SSIP message.

	* src/server/set.c (set_client_name_self): Control if SET CLIENT argument has the
	proper format.

	* src/server/speechd.h (awaiting_data): Now ordinary dynamic array instead of GArray.
	(o_bytes): Now ordinary dynamic array instead of GArray.
	
	* src/server/parse.c (parse_set): Call the new settings functions.
	(parse_set): Added {id, self, all} to every SSIP settings command.

	* src/server/set.c: New function names set_*_uid, set_*_self, set_*_all.

	* src/server/parse.c (parse): Function moved from server.c.

	* src/server/parse.h: Prototypes for parse.c.

	* config/en/keys.conf: New keys format.

	* intl/fdset.h: speed->rate.

2003-04-24  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/apollo.c: Include math.h.
	(set_speed, set_pitch): Allocate `command' as an empty array.  Use
	`snprintf', not `sprintf'.
	(apollo_write): Negate the return value.
	(send_apollo_command): Send carriage return additionally.
	(apollo_write): Convert line feeds to carriage returns.  Add a
	closing carriage return.

2003-04-23  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/apollo.c: New file.
	* src/modules/Makefile.am (libsdapollo_la_SOURCES)
	(libsdapollo_la_LDFLAGS): New variables.
	(lib_LTLIBRARIES): libsdapollo.la added.

2003-04-18	Hynek Hanke	<hanke@volny.cz>

	* src/server/set.c (set_character_table): New function.
	(set_key_table): New function.
	(set_sound_table): New function.
	
	* src/server/parse.c (parse_set): New settings SSIP commands.
	
	* src/server/server.c (parse): New LIST SSIP command.

	* src/server/sndicon.c (sndicon_list_sound_tables): New function.
	(sndicon_list_char_tables): New function.
	(sndicon_list_key_tables): New function.
	(sndicon_list_punctuation_tables): New function.
	(sndicon_list_spelling_tables): New function.
	(sndicon_list_tables): New function.

	* src/server/dc_decl.h: New configuration options.

	* intl/fdset.h (TFDSetElement): Added tables for characters, keys, sound icons.

	* src/server/speechd.h (TSpeechDTables): New structure. 

	* src/server/speechd.c (speechd_init): Initialize lists of (speechd_init): Initialize lists of tables.tables.

	* config/speechd.conf: New options.

	* tables in config/en/: Added groups, the definition: tag.

	* src/server/msg.h: New SSIP return messages.

2003-04-17  Hynek Hanke  <hanke@volny.cz>

	* src/server/speechd.c (speechd_init): Initialize tables.

	* src/server/speechd.h (TSpeechDTables): New structure (lists of available tables).

2003-04-17	Hynek Hanke	<hanke@volny.cz>

	* src/server/server.c: Bug with cutting of messages when spelling and "punctuating" fixed.

2003-04-17	Hynek Hanke	<hanke@volny.cz>

	* src/server/server.c (queue_message): Additional parameter: type of the message.

	* src/server/server.c (process_message_spell): Free the GString.

	* src/server/sndicon.c (sndicon_icon): Call queue_message with message-type.

	* src/server/parse.c (set punctuation_table): New SSIP command.

	* src/server/msg.h: New return messages.

	* src/server/set.c (set_punctuation_table): New function.

	* src/server/speaking.c (speak): Don't change (spelling, punctuation) non-textual messages.

	* src/server/speechd.c (MSG): Free format_with_spaces memmory.

	* intl/fdset.h (EMessageType): New type for (text, char, key, sound_icon)

	* config/speechd.conf (DefaultPunctuationTable): New option.

2003-04-15	Hynek Hanke	<hanke@volny.cz>

	* INSTALL: Requierement to have automake 1.7+ added.
	Remove autoheader from requiered tools.
	
	* src/server/icons_en_conf: Old version removed.

2003-04-15  Hynek Hanke <hanke@volny.cz>

	* src/clients: Content moved to src/c/ ...

2003-04-15  Hynek Hanke  <hanke@volny.cz>

	* config/speechd.conf (PunctuationSome): New option.

	* intl/fdset.h (TFDSetElement): punctuation_some: new configuration string.

	* src/server/set.c (default_fd_set): Copy also punctuation_some.

	* src/server/dc_decl.h (cb_PunctuationSome): New dotconf callback

	* src/server/server.c (process_message_punctuation): New function, process punctuation.

	* src/clients/libspeechd.c (spd_say_key): Use KEY command.
	Parameter SELF added.

	* src/server/parse.c (parse_stop): Accept ID, ALL, SELF.
	(parse_cancel): Accept ID, ALL, SELF.

	* src/server/speaking.c: Functions regulating speech output moved here.

	* src/server/speaking.h: New header file for speaking.c

	* build.sh: New script for easier building from CVS.

	* config.status config.sub config.guess mkinstalldirs missing depcomp: Removed,
	unnecessary. Now generated by automake -a.


2003-04-14  Hynek Hanke  <hanke@volny.cz>

	* src/server/msg.h: ERR_PARAMETER_INVALID added.

	* src/server/speechd.c: (p_msg_lc), (p_msg_uid_lc): Moved to compare.c

	* src/clients/libspeechd.c (spd_cancel): New function.
	(spd_cancel_fd): New function.

	* src/clients/libspeechd.h (spd_cancel): New function.
	(spd_cancel_fd): New function.

	* src/server/parse.c (parse_set): set spelling parameter switched to on/off.
	(parse_set): set punctuation now accepts {all|some|none}

	* src/server/server.c (process_message_spell): Splitted from process_message.
	Correct UTF-8 handling.
	(spd_utf8_read_char): New function.
	(speak): Bug fixed: Pull message from queue 3 if there are more than zero, not one.
	
	* src/modules/flite.c (flite_write): Speech rate scale up to duration_stretch=4

	* src/server/compare.c: New file, functions for comparing fd's, id's and other
	data in elements of different lists moved here.

	* src/server/compare.h: New header file for compare.c

	* Makefiles: Use AM_CFLAGS instead of CFLAGS.

	* configure.in: Don't call AC_ARG_PROG, it is called before implicitly.

	* depcomp: New script. Needed for automake 1.7.2.

2003-04-12  Milan Zamazal  <pdm@brailcom.org>

	* src/server/parse.c: English grammar and spelling fixes.

2003-04-12  Hynek Hanke  <hanke@volny.cz>

	* src/modules/flite.c (flite_write): Rate scale tweaked.

	* src/server/server.c (speak): If spelling on, convert the message.
	(process_message): New function.

	* src/server/sndicon.c: New file for sound icons related functions.

	* src/server/sndicon.c: New header file for sndicon.c.

	* src/server/speechd.h: +sndicon.h

	* src/server/Makefile.am: Added snd_icon.c, snd_icon.h

	* src/server/parse.c: Use snd_icon.c functions.

	* config/speechd.conf: The various options have some comments now.
	Cleaned.

2003-04-11  Hynek Hanke  <hanke@volny.cz>

	* config/speechd.conf: Moved from speechd.conf.

	* Makefile.am: Added configuration for the new directory config/

	* configure.in: Added configuration for the new directory config/

	* INSTALL: Added info about config/, fixed some paths.

	* config/en: Configuration for English.

	* src/server/set.c (set_spelling_table): New function.

	* intl/fdset.h (TFDSetElement): New entry char* spelling_table. 

	* src/server/dc_decl.h (cb_DefaultSpellingTable): New function.
	(cb_AddTable): Moved from cb_AddSndIcon, apmplified.

	* src/server/parse.c (parse_key): New function.
	(parse_char): New function.
	(get_param): New parameter lower_case: 1 -> convert output to
	lower case.

	* src/server/server.c (parse): SND_ICON -> SOUND_ICON
	(parse): CHAR: new SSIP command, KEY: new SSIP command.

2003-04-11  Milan Zamazal  <pdm@brailcom.org>

	* INSTALL: Order of auto* tools invocations improved.

2003-04-09  Tomas Cerha  <cerha@freebsoft.org>

	* INSTALL (Module): Added `autoheader' to suggested compilation
	process.

2003-04-07  Milan Zamazal  <pdm@brailcom.org>

	* configure.in (AM_CONFIG_HEADER): Generate template for config.h,
	not config.h.in.

2003-04-06  Hynek Hanke  <hanke@volny.cz>

	* src/modules/flite.c (flite_write): Set rate and pitch.
	(flite_write): Support more voices (experimental AWB voice).
	* src/modules/Makefile.am: Include libflite_cmu_time_awb voice.
	* src/server/parse.c (parse_set): New SSIP command SET VOICE added.
	* src/server/set.c (set_voice): New function.
	* src/server/msg.h (OK_VOICE_SET): New SSIP message.
	(ERR_COULDNT_SET_VOICE): New SSIP message.
	* intl/fdset.h: EVoiceType now includes more than one male and female voices. 

2003-04-06  Hynek Hanke  <hanke@volny.cz>
	
	* src/server/msg.h OK_CANCELED: New SSIP message. 

	* src/server/dc_decl.h (cb_AddSndIcons): Typo. 

	* src/server/parse.c: Call the new stop-family functions.

	* src/server/speechd.h: +get_client_uid_by_fd().

	* src/server/set.c (get_client_uid_by_fd): New function.
	(get_client_settings_by_fd): Use get_client_uid_by_fd().

	* src/server/server.c (speaking_uid): New variable.
	(get_speaking_uid ()): New function.
	(speaking_stop ()): Moved from stop_c().
	(speaking_cancel ()): Moved from stop_c().
	(speaking_pause ()): Moved from stop_c().
	(speaking_resume ()): Moved from stop_c().
	(message_list_compare_uid): New function.
	(parse): cancel: new SSIP command.

2003-04-04	Hynek Hanke	<hanke@volny.cz>
	* src/server/server.c (stop_c): Return 0 after resume.
	* src/server/dc_decl.h (cb_AddSndIcons): Accept more files defining icons for the same language.
	* src/modules/festival.c: Prototype for Festival output plugin.
	* src/clients/say.c: Unused variables removed.

2003-04-02  Milan Zamazal  <pdm@brailcom.org>

	* src/server/msg.h: Multiple occurence of
	ERR_COULDNT_SET_PUNCT_MODE removed.

2003-03-30  Hynek Hanke <hanke@volny.cz>

	* src/server/dc_decl.h (cb_AddSndIcons): Read sound icons file
	from SYS_CONF/filename.conf.
	* src/server/server.c (serve): Check if the client connection
	isn't closed yet before write().
	* src/server/Makefile.am: Added snd_icons_en.conf to instalation.
	* src/server/speechd.h: Removed unnecessary history client search
	functions.
	* configure.in: etc/ -> etc/speechd/
	
2003-03-29  Hynek Hanke <hanke@volny.cz>

        * src/server/speechd.h (fdset): Now hash table -> faster searching. 
	* src/server/speechd.h (fd_uid): New hash table for fast searching of unique ids.
	* src/server/speechd.c (speechd_quit): Call FD_CLR for server socket.
	* src/server/server.c (fdset): Also includes non-active connections.
	* src/server/server.c (parse): Accept lower-case commands.
	* src/server/history.c (message_history): New global list for history.
	* src/server/history.c: Switching to global history.
	* src/server/history.h (THistoryClient): Deleted, we will use global list of history.
	* src/server/history.h (THistClientSet): Deleted, configuration moved to TFDSetElement.
	* src/server/parse.c (get_param): Accept longer parameters in quotation marks.
	* intl/fdset.h (TFDSetElement): History settings moved here.

2003-03-27  Hynek Hanke <hanke@volny.cz>
    * src/server/server.c: Compare against \r\n.\r\n only if there are enough bytes.

2003-03-27  Tomas Cerha  <cerha@brailcom.org>

	* INSTALL (Module): `robod' -> `speechd'.

	* INSTALL.in (Module): `robod' -> `speechd'.
	

2003-03-25  Hynek Hanke <hanke@volny.cz>
	* src/server/speechd.c: Logging messages switched to their levels of verbosity.
	* src/server/speechd.c (speechd_modules_terminate()): Call module_speak for each module being closed.
	* src/server/speechd.c (MSG): Now a function instead of macro.
	* src/server/speechd.h (MSG): Declaration.
	* src/server/speechd.h (FATAL) (DIE): Macros moved from src/intl/def.h 
	* src/server/server.c (speak()): Ignore all signals in this thread.
	* src/server/server.c: Logging messages switched to their levels of verbosity.
	* src/modules/flite.c (flite_close): Terminate the flite_speak() thread if speaking.
	* src/server/dc_decl.c (LogFile()): New DotConf callback function.	
	* src/intl/def.h: - MSG, FATAL, DIE
	* speechd.conf: + LogFile settings.

2003-03-24  Hynek Hanke <hanke@volny.cz>
	* src/server/server.c: Changes in SSIP.
	* src/server/set.c: Changes in SSIP.
	* src/server/history.c: Changes in SSIP.
	* src/server/parse.c: Changes in SSIP.
	* src/server/msg.h: Numerical codes of return values added.
	* src/clients/libspeechd.c: Changes in SSIP.
	* src/clients/spd_center.c: Priority 2 in menu -> priority 3.
	* src/clients/speechd.c: Some messages switched to another levels of verbosity.

2003-03-23  Hynek Hanke <hanke@volny.cz>
	* src/modules/flite.c (DEBUG_FLITE): A new switch.
	* src/modules/flite.c (flite_stop()): Send SIGKILL instead of SIGINT.
	* src/server/server.c: All stops are now called in the separate speak() thread (faster).
	* src/server/server.c (fd_settings): now hash_table instead of a list
	* src/server/server.c (speak()): Uses mutexes to be thread safe.
	* src/server/set.c (fd_settings): now hash_table instead of a list
	* src/server/history.c (fd_settings): now hash_table instead of a list
	* src/server/alloc.c: Functions for allocating and freeing data structures;
	* src/tests/long_message.c: New test trying to say two long texts.
	* src/server/speechd.c: select() now doesn't return unless there is some communication.
	* src/server/speechd.c: Speech Deamon now doesn't interrupt client's messages on @quit.
	* src/server/speechd.c: fd_settings now hash_table instead of a list
	* src/server/speechd.c (terminate_client): New function for unloading clients.
	* src/server/speechd.c (terminate_module): New function for unloading modules.
	* src/server/speechd.c (stop_c()): Uses mutexes to be thread safe.
	* src/server/module.c (load_output_module()): Write gmodule* into module_info.
	* src/server/Makefile.am: Added new sources.
	* src/clients/spd_center.c: Now uses priority 3 instead of sending @stops.
	* src/clients/libspeechd.c: (LIBSPEECHD_DEBUG): New define macro for debugging.
	* src/clients/libspeechd.h: (LIBSPEECHD_DEBUG): New define macro for debugging.
	* intl/def.h: (SPEECHD_DEBUG): New preprocesor variable for debugging.
	* intl/module.h (OutputModule): New entry gmodule*
	* Polished.


2003-03-13  Hynek Hanke <hanke@volny.cz>
    * src/modules/flite.c: Now uses threads and processes to get better performance.
    * src/modules/Makefile.am: Links also flite shared libraries.
    * src/clients/libspeechd.c: Cosmetical changes.
    * src/tests: New directory.
    * src/tests/Makefile.am: Makefile for new directory.
    * src/tests/multiple_messages.c: New file, a speed test.
    * src/server/server.c (speaking_module): Now directly a pointer to the module instead of its name.
    * src/server/server.c (speak): speak() is now a separate thread.
    * src/server/speechd.c (main): speak_thread initialization.
    * src/server/speechd.h (speak_thread): New thread for speak().
	* src/Makefile.am: Added new directory tests.
	* configure.in: Added tests for pthread and flite shared libraries.
	* INSTALL: Note about the requierement to have compiled flite with shared libraries.
	* speechd.conf: Default values of speed and pitch of voice now 0, not 100.

2003-03-16  Tomas Cerha  <cerha@brailcom.org>

	* README: Robod -> Speech Daemon.

	* INSTALL: pkg-config and libtool added to requirements.  
	Robod -> Speech Daemon.  Cosmetical changes.

2003-03-13  Hynek Hanke	 <hanke@volny.cz>
	* src/modules/flite.c: Bug with swapped flite_is_speaking() and flite_close() fixed.
	* src/intl/module.h: Bug with swapped flite_is_speaking() and flite_close() fixed.

2003-03-12  Hynek Hanke  <hanke@volny.cz>

	* src/clients/libspeechd.c (spd_say()): Bug with @data off corrected.
	* src/clients/libspeechd.c (spd_voice_rate()): Renamed from spd_voice_speed().
	* src/clients/libspeechd.c (spd_voice_punctuation()): Now accepts 3 values (0=no,1=full,2=some).
	* src/server/server.c (parse()): o_buf now doesn't have fixed size.
	* src/clients/say.c (main()): Things that shouldn't be there removed.
	* src/server/parse.c (parse_set): New SSIP commands for settings.
	* src/server/set.c: New SSIP commands for settings.
	* src/modules/flite.c (flite_pause()): Function removed, unnecessary.
	* src/modules/flite.c (flite_resume()): Function removed, unnecessary.
	* src/modules/flite.c (flite_close()): New function.
	* src/modules/festival.c (festival_pause()): Function removed, unnecessary.
	* src/modules/festival.c (festival_resume()): Function removed, unnecessary.
	* src/modules/module.h (OutputModule): Reworked.
	* src/server/msg.h: New SSIP messages for the settings commands.
	* src/server/set.h: Headers for new settings functions.

2003-03-12  Milan Zamazal  <pdm@brailcom.org>

    * src/clients/libspeechd.c: `speed' -> `rate'.
    * src/clients/libspeechd.h: Likewise.
    * src/clients/spd_center.c: Likewise.


2003-03-09  Hynek Hanke  <hanke@volny.cz>

	* src/clients/libspeechd.c (spd_icon()): New function.
	* src/clients/libspeechd.c (spd_say_letter()): New function.
	* src/clients/libspeechd.c (spd_say_digit()): New function.
	* src/clients/libspeechd.c (spd_say_sgn()): New function.
	* src/clients/libspeechd.c (spd_say_key()): New function.
	* src/clients/libspeechd.c (spd_voice_speed()): New function.
	* src/clients/libspeechd.c (spd_voice_pitch()): New function.
	* src/clients/libspeechd.c (spd_voice_punctuation()): New function.
	* src/clients/libspeechd.c (spd_voice_cap_let_recognition()): New function.
	* src/clients/libspeechd.h: Declarations of new functions.
	* src/server/server.c (queue_message()): Splitted from parse().
	* src/server/server.c (parse()): Added handling for new SSIP command @snd_icon.
	* src/parse.c (parse_snd_icon()): New function.
	* src/server/snd_icons_en.conf: New file. Rules for sound icons in English.
	* src/server/dc_decl.c (cb_AddSndIcons): New DotConf callback.
	* src/server/speechd.h (snd_icon_langs): New hash table for maintaining information about defined sound icons.


2003-03-05  Milan Zamazal  <pdm@brailcom.org>

	* INSTALL: libdotconf added to the required software.  Current way
	of the build process mentioned.

2003-03-04  Milan Zamazal  <pdm@brailcom.org>

	* src/clients/say.c (main): Dummy `cl_active' argument added to
	the `spd_get_client_list' call.

01.02.2003	Hynek Hanke <hanke@volny.cz>
	* Added copyright notices to each file, better comments.
	* doc/: Switched to Texinfo.

11.1.2003	Hynek Hanke <hanke@volny.cz>

	* /src/client/spd_center.c (spdc_complete): String completion from given template.
	* /src/client/spd_center.h (quit()): endwin() added to fix the weird behavior after quitting.
	* /src/client/spd_center.h (TComplete): Data type for string completion.
	* /src/server/server.c: Handling of pause messages moved to stop_c(), because the problem of queues (we can't browse through them) is solved by using list and treating them as semi-queues instead.
	* /src/client/libspeechd.c (spd_history_say_msg()) (spd_history_select_client()) (spd_get_message_list_fd()): New functions.

4.1.2003	Hynek Hanke	<hanke@volny.cz>

	* /src/server/speechd.c (main): Added handling for SIGINT and the function quit() 
	* /src/server/speechd.c (history_list_alloc_message): Bug with not copying the actual data of settings.language,output_module and client_name, but only pointers to them fixed.
	* /src/server/server.c (serve): Bug with the missing FD_CLR() fixed.
	* /src/server/server.c (awaiting_data): the size of awaiting_data array is now handled in speechd.c
	* /src/server/server.c (stop_c): the section handling @stop completely reworked.
	* /src/client/spd_center.c: Implemented command input/menu logic.
	* /src/client/spd_center.c (selected): New data structure for maintaining record of what has the user selected (which client has he chosen, which subclient, which mode of sorting, etc.)
	* /src/clients/spd_center.c (spdc_initialize()): Fills _selected_ with default values.
	* /src/clients/spd_center.c: Strings prepared for gettext().
	* /src/clients/spd_center.h: New header file for spd_center.c
	* /src/clients/spd_center.c (run_cmdl()): Pause and resume functions implemented (pause(), pause(fd), pause_cur_client(), resume(), resume(fd), resume_cur_client()).
	* /src/clients/spd_center.c (run_cmdl()): Stop functions implemented (stop(), stop(fd), stop_cur_client()).
	* /src/server/speechd.c (stop_c): New parameter _target_ for stopping other clients (needed for spd_center).
	* /src/clients/libspeechd.c (spd_stop_fd(fd): Stop messages from other client fd.
	* /src/clients/libspeechd.c (spd_pause_fd(fd): Pause messages from other client fd.
	* /src/clients/libspeechd.c (spd_resume_fd(fd): Resume messages from other client fd.
	* /src/server/parse.c: Added support for @stop, @pause, @resume with parameter.
	* /src/server/set.c: Added support for @stop, @pause, @resume with parameter.
	* /intl/def.h (FATAL()): Now prints the exact line and fil when the error ocured.
	* /intl/fdset.h (TFDSetElement): Added new record int uid for unique id of the client.


16.12.2002	Hynek Hanke	<hanke@volny.cz>

	* /src/server/speechd.c (main): Test for msgs_to_say, select has timeout of 10us, but added a sleep() after each cycle (highly reduces CPU usage).
	* /src/server/speechd.h (msgs_to_say): New global variable: number of messages to be said (for lower CPU usage)
	* /src/client/spd_center.c: New file. Speech Deamon Center -- combined history and configuration client.
	* /src/server/Makefile.am: Sysconfdir passed to gcc as -D from @sysconfdir@ (needed for loading speechd.conf).
	* /src/server/Makefile.am: Libdir passed to gcc as -D from @libdir@.
	* /src/server/history.c (history_say_id()): msgs_to_say incremented.
	* /src/server/history.c (history_get_message_list()): Find proper client, added third parametr client_id.
	* /src/server/history.c: Multiline commands now terminate with '\'.
	* /src/server/history.c (send_data()): char *reply returned is now dynamic.
	* /src/server/parse.c (history_get_message_list()): Added third parametr client_id for @history get message_list.
	* /src/server/set.c (set_client_name()): Now affects also history client settings.
	* /src/client/libspeechd.c: Multiline return values. History get clients/messages function.
8.12.2002	Hynek Hanke	<hanke@volny.cz>

	* Renamed back to Speech Deamon

2.11.2002	Hynek Hanke	<hanke@volny.cz>

	* gdsl --> glib2 transaction
	* polished
	* Autoconf and all it's standard files and various Makefile.am
	* /src/server/msg.h: New file defining the messages transmitted between client and server.
	* /src/server/parse.c: Functions related to parsing the input from the client moved here.
	* /src/server/set.c: Functions related to setting parameters of the client/server session moved here.
	* /src/server/set.c (set_client_name()): New function: @set client_name implemented.
	* /src/server/server.c: Polished, some functions moved to set.c and parse.c.
	* /src/server/server.c (parse()): The ugly 3 static arrays are now dynamic ones defined in robod.h and initialized in robod.c
	* /src/server/history.c (history_cursor_set_last()): Bug fixed: move to the last entry _minus_one_ (this is a property of glib)
	* /src/server/dc_decl.h: Added configuration for DefaultModule, DefaultSpeed, DefaultPitch, DefaultLanguage, DefaultPriority, DefaultPunctuationMode, DefaultClientName, DefaultVoiceType, DefaultSpelling, DefaultCapLetRecognition.
	* /src/server/dc_decl.h: New file with definitions of DotConf callbacks and other things related to DotConf.
	* /src/server/Makefile.am: Added set.c, msg.h, parse.c.
	* configure.in: Configuration for autoconf.
	* /src/client/robodlib.c (rbd_sayf()): New function: the same as say, but formated in the printf() style.
	* /src/client/robodlib.c (rbd_stop()): New function.
	* /src/client/robodlib.c (rbd_pause()): New function.
	* /src/client/robodlib.c (rbd_resume()): New function.
	* /src/client/robodlib.c (rbd_init()): The part where connection name is set now working.

07.07.2002	Hynek Hanke <hanke@volny.cz>
	* /src/server/server.c (history_()): New functions called.
	* /src/server/server.c: Cosmetic changes.
	* /src/server/server.c: History functions moved to history.c.
	* /src/server/server.c: Messages are now inserted on tail of lists and got from it's head.
	* /src/server/history.h: New header file for history commands.
	* /src/server/history.c: New file for history commands.
	* /src/server/history.c (history_get_message_list()): New function.
	* /src/server/history.c (history_cursor_set_last()): New function.
	* /src/server/history.c (history_cursor_set_first()): New function.
	* /src/server/history.c (history_cursor_set_pos()): New function.
	* /src/server/history.c (history_cursor_next()): New function.
	* /src/server/history.c (history_cursor_prev()): New function.
	* /src/server/history.c (history_cursor_next()): New function.
	* /src/server/history.c (history_cursor_get()): New function.
	* /src/server/history.c (history_say_id()): New function.
	* /src/server/history.c (client_compare_id()): Moved from server.c; renamed.
	* /src/server/history.c (histset_compare_fd()): Moved from server.c; renamed.
	* /src/server/history.c (message_compare_id()): Moved from server.c; renamed.
        * /src/server/speechd.c: History clients are now inserted on tail of list. (more logical)
        * /src/server/speechd.c (default_fd_set): Bug with client_name fixed.
        * /src/server/speechd.h (THistSetElement): New type of structure for settings for each active client.
        * /src/server/speechd.h: (ESort) New enum type for sorting modes.
        

07.02.2002	Hynek Hanke <hanke@volny.cz>
	* /src/server/server.c (stop_speaking_active_module): New function divided from stop_c().
	* /src/server/server.c (history_get_client_list): New function implementing @history get client_list
	* /src/server/server.c (message_nto_speak): Changed name from message_to_speak (more logical). Added parameter void* value so that it's useful also as compare function for searching through queues and lists.
	* /src/server/server.c (MessagePausedList): Added list for messages that we get from output queues but it's client is paused. We browse through this list every cycle to see if some client have sent @resume.
	* /src/server/server.c (o_buf[fd][0] = 0;): Bug fixed.
	* /src/server/speechd.h (TFDSetElement): Moved to /include/fdset.h
	* /src/server/speechd.h (EVoiceType): Moved to /include/fdset.h
	* /src/server/speechd.h (client_name): Uncomented, now used.
	* /src/server/speechd.c : Now working with client_name.
	* /src/modules/flite.c (TFDSetElement): Moved to /include/fdset.h
	* /src/modules/flite.c (EVoiceType): Moved to /include/fdset.h
	* /include/fdset.h : New include file used in both modules and server.
