Sophie

Sophie

distrib > Fedora > 13 > i386 > media > os > by-pkgid > 268ec4c47bcb54bedcae43646a1dc4f5 > files > 44

speech-dispatcher-0.6.7-4.fc13.i686.rpm


2008-07-31  Hynek Hanke  <hanke@brailcom.org>
	
	* config/modules/espeak-mbrola-generic.conf: Missing space added.

2008-07-31  Hynek Hanke  <hanke@brailcom.org>

	* config/modules/espeak-mbrola-generic.conf: Set volume, do not use TMP files.
	Missing space added.

2008-07-30  Hynek Hanke  <hanke@brailcom.org>

	* configure.in (LIB_SDAUDIO_AGE): Revision incremented.

	* config/modules/swift-generic.conf: New file.

	* config/modules/espeak-mbrola-generic.conf: Added language coding
	specifications.
	New file.

	* src/c/api/libspeechd.c: Do not define _GNU_SOURCE.

	* src/c/api/libspeechd.h: Do not define _GNU_SOURCE.

	* src/c/api/Makefile.am: Define _GNU_SOURCE.

	* config/modules/llia_phon-generic.conf: Use PLAY_COMMAND.

	* config/modules/espeak-generic.conf: Use PLAY_COMMAND.

	* config/speechd.conf.in: New addmodule lines
	for mbrola and swift.

	* src/modules/generic.c (module_load): By default,
	do not strip any punctuation.
	(module_speak): Only strip SSML for MSGTYPE_TEXT
	(_generic_child): Escape backslash as well.

	* src/modules/generic.c (_generic_speak): Substitute play, aplay, paplay for PLAY_COMMAND.

2008-07-14  Hynek Hanke  <hanke@brailcom.org>

	* configure.in (moduleconfdir): Do not expand paths until during 'make'

2008-07-11  Hynek Hanke  <hanke@brailcom.org>

	* src/Makefile.am (EXTRA_DIST): Include python/speechd_config

	* config/speechd.conf.in: Do not begin any textual comments with
	option names.

	* src/server/speechd.c (main): Set umask.
	(main): Set log_level = 1 early.
	(main): Output Speech Dispatcher version early.

	* src/server/options.c (options_parse): Use tmpdir correctly
	for debugging destination.

	* src/modules/module_utils.c (do_debug): More verbose debugging
	messgages.

	* src/modules/generic.c (string_replace): Relace all occurances,
	not just the first one.
	(_generic_speak): Substitute TMPDIR and HOMEDIR.

	* config/modules/llia_phon-generic.conf: Use TMPDIR instead of /tmp/

	* config/modules/espeak-generic.conf: Use TMPDIR instead of /tmp/

	* config/modules/epos-generic.conf: Use TMPDIR instead of /tmp/

	* config/modules/dtk-generic.conf: Use TMPDIR instead of /tmp/

2008-07-09  Hynek Hanke  <hanke@brailcom.org>

	* src/python/speechd_config/__init__.py: New file.

	* src/python/speechd_config/config.py: New config directory.

	* src/python/speechd_config/test.wav: New test sound.

	* config/modules/Makefile.am (dist_moduleconforig_DATA): Place *.conf
	into moduleconforig dir as well.

	* config/clients/Makefile.am (dist_clientconforig_DATA): Place *.conf
	into clientconforig dir as well.

	* config/Makefile.am: Place speechd.conf into spdconforig as well.

	* configure.in: Added *conforigdir variables pointing
	into $datadir, where original untouched configuration
	is stored.

2008-07-07  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.c (speechd_init): Only create new debug destination
	if not already debugging.
	(MSG2): Debugging.

	* src/server/options.h: -D, --debug new option.

	* src/server/options.c (options_parse): -D, --debug new option.

	* src/server/module.c (load_output_module): Turn debugging on
	when loading the module.

2008-07-01  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.c (speechd_init): debug_destination
	is now inside LogDir.
	(speechd_init): Create the debug/ subdir.

	* src/server/set.c (set_debug_destination_uid): DEBUG_DESTINATION
	removed.
	(set_debug_uid): Avoid conflicts in debugging.

	* src/server/parse.c (parse_set): Include debug location in
	reply on debugging SET ssip command.
	(parse_set): DEBUG_DESTINATION setting removed from SSIP.

	* src/server/msg.h (OK_DEBUG_DESTINATION_SET): DEBUG_DESTINATION
	messages removed.

2008-06-27  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.h: New prototypes.

	* src/server/speechd.c (MSG): Handle additional debugging.
	(speechd_modules_debug): New function.
	(speechd_module_debug): New function.
	(speechd_modules_nodebug): New function.	
	(speechd_module_nodebug): New function.
	(speechd_options_init): Set defaults for debug and debug_destination.

	* src/server/set.h: New prototypes.

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

	* src/server/parse.c (parse_set): Handle 'DEBUG' and
	'DEBUG_DESTINATION'

	* src/server/output.h: New prototypes.

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

	* src/server/msg.h (OK_DEBUG_DESTINATION_SET): New messages
	for debugging functionality

	* src/server/module.h: Prototypes for new functions.

	* src/server/module.c (output_module_debug): New function.
	(output_module_nodebug): New function.

	* src/modules/module_utils.h: module_audio_output_method switched
	to correct type AudioOutputType.
	(DBG): Added external debugging.
	Prototypes for new functions.

	* src/modules/module_utils.c (do_debug): New function.
	(do_quit): Change to correct type 'void'.

	* src/modules/module_main.c (PROCESS_CMD_NRP): New macro.
	(main): Call do_quit() as without reply.

	* src/modules/ivona_client.c (ivona_play_file): Correct casts.

	* src/modules/festival_client.c (festival_accept_any_response):
	Useless rebug message removed.

	* src/modules/espeak.c (espeak_play_file): Correct casts.
	(module_init): Unused variable removed.

	* src/modules/Makefile.am: Include dummy-message.wav into EXTRA_DIST.

	* NEWS: 0.6.7

	* INSTALL: 0.6.7

	* ANNOUNCE: 0.6.7

	* src/modules/ivona.c (ivona_set_cap_let_recogn): Handle recogn none.

	* src/modules/festival_client.c (festival_accept_any_response): Useless test removed.
	
	* src/audio/pulse.c (_pulse_set_sample): Volume settings back in.
	(pulse_open): Do not initialize pulse_volume, pulse_volume_valid=0
	should be enough.
	(_pulse_open): Typo.

2008-06-11  Hynek Hanke  <hanke@brailcom.org>

	* src/server/index_marking.c (insert_index_marks): Also insert
	index marks if the end of sentence punctuation is followed by HTML
	tag or entity instead of space character.

	* src/server/output.c (output_send_audio_settings): Pass
	audio_pulse_server option.

	* src/modules/module_utils.c (do_audio): Do not report status on
	success.

2008-06-09  Gilles Casse  <gcasse@oralux.org>

	* src/modules/ibmtts.c, config/modules/ibmtts.conf: the
	IBM TTS abbreviation dictionaries are now enabled (default) or
	disabled using the IbmttsUseAbbreviation variable.	
	
2008-06-09  Hynek Hanke  <hanke@brailcom.org>

	* src/server/module.c (load_output_module): Send audio settings
	after initialization.

	* src/server/config.c: New configuration options for audio.

	* src/modules/module_utils.h: Prototypes for new functions.
	Protect against multiple inclusions.
	

	* src/modules/module_utils.c (SET_AUDIO_NUM): New macro.
	(SET_AUDIO_STR): New macro.
	(do_audio): New function.
	(module_audio_init_spd): New function.

	* src/modules/festival_client.c (festival_speak_command): New
	debugging message.

	* src/modules: Removed local audio settings, now
	depends on global configuration. New function
	module_audio_init() in every module.
	
	* src/modules/dummy.c (module_audio_init): New function.
	Removed config file options (we do not want dummy to depend
	on configuration files).
	Debug on by default (makes sense in a fallback module).

	* src/modules/cicero.c (module_audio_init): New function.

	* src/audio/spd_audio.h: Protect again multiple inclusion.

	* src/audio/spd_audio.c (spd_audio_open): audio_endian ->
	spd_audio_endian.
	(spd_audio_open): spd_audio_endian initialization.

	* src/audio/alsa.c (alsa_play): audio_endian -> spd_audio_endian.

	* intl/fdset.h (TFDSetElement): New prefered audio options.

	* config/modules/: Removed all audio output settings, moved to
	speechd.conf

	* config/speechd.conf.in: All audio output settings moved here.

	* src/modules/dummy.c (_dummy_child): Correct inclusion of DATADIR path.

	* config/modules/ibmtts.conf: Sentence boundary detection section removed.

	* src/audio/spd_audio.c: Definition of spd_audio_endian moved here to avoid multiple def error.

	* src/modules/module_main.c (main): New command: 'AUDIO'.

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

	* src/server/module.h (OutputModule): New members for audio configuration.

2008-05-15  Hynek Hanke  <hanke@brailcom.org>

	* config/speechd.conf.in: Added dummy module AddModule line.

	* src/modules/dummy-message.wav: New file. Pre-recorded
	message for playback in the dummy output module.

	* src/modules/dummy.c (_dummy_child): Use $DATADIR instead
	of hardcoded path.

	* src/modules/Makefile.am (AM_CFLAGS): Pass the snddatadir location
	via -D.
	(snddata_DATA): Install also dummy-message.wav

	* src/server/output.c (get_output_module): First try the requested
	module, if impossible to load, then the default module, then
	any available module, then the dummy output module and if this
	fails, just produce a serious error message in the logfile.

	* src/modules/dummy.c: New output module.

	* src/modules/Makefile.am (modulebin_PROGRAMS): New output module: sd_dummy.
	Changes in the conditioning of compilation of various modules.

2008-05-12  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/spd_audio.h (suspended): New flag. 

	* src/audio/pulse.c (_pulse_timeout_thread): Do not close the
	device, but only cork it.
	(pulse_play): Uncork device before playback starts.

	* INSTALL: Updated.

	* src/audio/pulse.c (PULSE_TIMEOUT_IN_USEC): Lower the timeout limit.
	(_pulse_open): Set suspended flag to false.
	(pulse_play): Debugging message.
	(pulse_play): Resume sinks (if suspended) before playback.

	* src/audio/spd_audio.h (AudioID): New PulseAudio parameter 'suspended'. 

2008-04-09  Hynek Hanke  <hanke@brailcom.org>

	* src/tests/Makefile.am: Added new test clibrary2.c

	* src/c/api/libspeechd.h: Prototypes for new functions.

	* src/c/api/libspeechd.c (spd_list_modules): New function.
	(spd_list_voices): New function.
	(spd_list_synthesis_voices): New function.
	(spd_set_synthesis_voice*): New functions.

	* configure.in (LIB_SDAUDIO_AGE): New interface functions,
	thus version incremented (compatible).

2008-04-07  Hynek Hanke  <hanke@brailcom.org>

	* src/c/api/libspeechd.h: Do not include more than once.

	* configure.in (LIB_SDAUDIO_REVISION): Incremented revision.

2008-04-03  Hynek Hanke  <hanke@brailcom.org>

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

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

	* src/modules/Makefile.am: Added Ivona (new output module).

	* config/speechd.conf.in: AddModule line for Ivona.

	* version.sh (VERSION): Version 0.6.7-cvs.

	* configure.in: Ivona compilation.

2008-02-29 C. M. Brannon <cmbrannon@cox.net>

	* src/c/api/libspeechd.c (spd_send_data):
	Insure that function does not hold a mutex when it returns.

2008-02-22  Lukas Loehrer  <listaddr1@gmx.net>

	* src/modules/flite.c (_flite_speak): Call flite_strip_silence to
	get rid of leading and trailing silence in utterance
	(Idea and algorithm copied from eflite).
	(flite_set_rate): Increase maximum speech rate.

2008-02-15  Hynek Hanke  <hanke@brailcom.org>

	* configure.in: Revision incremented.

	* src/Makefile.am (EXTRA_DIST): Include python/Makefile.in instead of python/Makefile.

2008-02-11  Hynek Hanke  <hanke@mach>

	* src/modules/Makefile.am: Link with gthread_libs.

	* src/modules/module_main.c (main): Call g_thread_init()

	* src/server/speechd.c (main): Call g_thread_init()
	so that we are sure GLIB is thread safe!!!

	* src/server/parse.c (get_param): Additional assertion.

	* src/server/index_marking.c (insert_index_marks): Assertion
	added.

	* src/server/config.c (AddModule): Copy module name
	before inserting.

	* src/server/Makefile.am (speech_dispatcher_LDADD): Include
	gthread_libs.

2008-02-08  Hynek Hanke  <hanke@mach>

	* src/server/config.c (DOTCONF_CB): Insert copies of module
	name string into hash table and output_modules_list .

2008-02-08  Hynek Hanke  <hanke@brailcom.org>

	* version.sh: 0.6.6
	
	* ANNOUNCE: Version 0.6.6

	* NEWS: Version 0.6.6

	* src/server/output.c: Check for module_name not null.

	* src/tests/connection-recovery.c: New test.

	* src/tests/Makefile.am (bin_PROGRAMS): connection_recovery
	-- new target.

	* src/c/api/libspeechd.h (SPD_FATAL): Flush stdout.

	* src/c/api/libspeechd.c (spd_close): Join th events thread.
	(spd_say): Check reply.
	(spd_say): Set msg_id to -1 on error.
	(spd_execute_command): Logging message.
	(spd_execute_command_wo_mutex): Logging message.
	(spd_execute_command_with_reply): Return -1 on error.
	(spd_send_data): Return NULL on error in spd_send_data_wo_mutex.
	(spd_send_data): Return NULL if connection->stream is NULL.
	(spd_send_data_wo_mutex): Only print out the reply if it is not NULL.
	(spd_events_handler): Formatting.
	(spd_events_handler): Signal reply ready even if socket is broken.
	(xmalloc): Formatting.

2008-02-06  Luke Yelavich <themuso@themuso.com>

	* src/modules/espeak.c: Set max rate to 390.

2008-02-04  Hynek Hanke  <hanke@brailcom.org>

	* configure.in (LIB_SPD_AGE): Create src/python/Makefile.

2008-02-01  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/cicero.c (_cicero_speak): Fixed bug: assigment instead of comparision.

	* src/modules/festival.c (_festival_speak): Removed debugging messages.

	* src/server/speaking.c (speaking_resume_all): Initialize err correctly.

	* src/server/history.c (history_say_id): 

	* src/audio/pulse.c (pulse_open): Casts changed from int to
	size_t, which is the correct size for pars[1..4]
	(pulse_play): a_total_mem_free changed from int to size_t.

	* src/server/speechd.c (fatal_error): Cosmetic to avoid
	gcc warning.

	* src/server/parse.c (parse): Check for proper UTF-8 on input.
	(parse_general_event): Check for proper UTF-8 on input.

	* src/server/msg.h (ERR_INVALID_ENCODING): New error message ERR_INVALID_ENCODING.

	* src/audio/spd_audio.c (spd_audio_play): Formatting.

	* src/server/parse.c (parse): Check for proper UTF-8 encoding in message data.
	(parse_general_event): Check for proper UTF-8 in events.

	* src/audio/alsa.c (alsa_stop): Removed log message call to snd_pcm_state
	so that it doesn't create race conditions. 

2008-01-21  Hynek Hanke  <hanke@homer.brailcom.xx>

	* NEWS: 0.6.5 added. 
	0.6.3 -> 0.6.4 (there was no 0.6.3 oficial release).

2008-01-14  Hynek Hanke  <hanke@syrr.buchal.name>

	* src/c/api/libspeechd.h: Added include stddef, so that
	we have type wchar_t.

2007-12-23  Gilles Casse  <gcasse@oralux.org>

	* src/audio/pulse.c: if the connection to the PulseAudio server
	fails, pulse_context must be freed too.
	
2007-12-19  Gilles Casse  <gcasse@oralux.org>

	* src/audio/pulse.c: if the connection to the PulseAudio server
	fails, the internal allocations are now cleaned up. Define the
	error values in an enum.
	
2007-12-17  Hynek Hanke  <hanke@syrr.buchal.name>

	* src/server/Makefile.am (speech_dispatcher_LDADD): -ldl unnecessary.

	* src/modules/Makefile.am: -lm unnecessary in many modules.

	* src/c/api/Makefile.am: -lm unnecessary.

	* src/audio/Makefile.am (NAS_LIBS): -lXau unnecessary.

	* configure.in (flite_basic): -lm unnecessary.

2007-12-08  Gilles Casse  <gcasse@oralux.org>

	* src/audio/pulse.c, src/audio/spd_audio.h: automatically close
	the PulseAudio connection after a moment of inactivity (currently
	set to 100ms in PULSE_TIMEOUT_IN_USEC). 

	* src/audio/pulse.c: pulse_play now returns once the given track
	has been drained.

2007-11-30  Hynek Hanke  <hanke@syrr.buchal.name>

	* INSTALL: Added Pulse Audio.

	* ANNOUNCE: Added information about default access
	restrictions. Architecture details taken out. Minor
	details.

2007-11-26  Hynek Hanke  <hanke@homer.brailcom.xx>

	* src/modules/module_utils.c: Typo.

2007-11-26  Hynek Hanke  <hanke@syrr.buchal.name>

	* INSTALL: Example of server_access_list for Festival.

	* src/modules/module_utils.c (module_parent_dp_write): %d -> %ld
	for size_t argument.
	(module_strip_ssml): Convert &amp; entity back to '&'.

	* src/modules/festival.c: %d -> %ld for size_t argument.

	* src/modules/module_utils.c (module_strip_ssml): Escape ampersound
	SSML entity.

	* src/server/Makefile.am (AM_CFLAGS): Removed MODULECONFDIR.

	* config/speechd.conf.in: Default output module is espeak.

	* version.sh: Version incremented to 0.6.5rc1

	* src/server/module.c (load_output_module): Construct path to
	module config files from SpeechdOptions.conf_dir.

	* configure.in (modulebindir): MODULECONFDIR definition modified.

	* src/server/speechd.c (main): Only set SpeechdOptions.conf_dir to default
	if it was not set by the user via command line.

	* src/server/options.c (options_print_help): -C changed
	from config-file to config-dir.

	* config/speechd.conf.in: LocalhostAccessOnly option
	and its description.
	Removed MaxHistoryMessages and SoundDataDir (obsolete).

2007-11-23  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.h (SpeechdOptions): New members: conf_dir,
	home_speechd_dir, log_dir.

	* src/server/speechd.c (speechd_options_init): Initialize
	home_speech_dir and log_dir.
	(speechd_init): Construct log_dir and initialize logging.
	(logging_init): New function
	(main): Decide where to place PID file (.speech-dispatcher/pid/,
	PIDPATH or user specified option). Create the pid/ directory
	in ~/.speech-dispatcher if it doesn't exist.

	* src/server/module.c (load_output_module): Handle module
	configuration with respect to MODULE_CONF_DIR, .speech-dispatcher.

	* src/server/config.c (cb_LogDir): New handler.
	(cb_LogFile): Deprecated.
	(cb_AddModule): Do not use custom path any more,
	construct a path to the default log directory
	instead.

	* config/speechd.conf.in: LogFile configuration option
	removed and LogDir added.
	Default output module is espeak.
	Some descriptions updated.
	Removed IncludePath as this is overriden by Dispatcher
	to the configuration directory.

2007-11-23  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.c (logging_init): New function.

2007-11-21  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.h (SpeechdOptions): New member: conf_file.

	* src/server/speechd.c (speechd_options_init): New option
	SpeechdOptions.conf_file.
	(speechd_load_configuration): Use SpeechDOptions.conf_file.
	(main): Fill in SpeechdOptions.conf_file with correct value.

	* src/server/options.h: New option: --config-file, -C.

	* src/server/options.c (options_parse): New option: --config-file.

2007-11-18  Gilles Casse  <gcasse@oralux.org>

	* src/audio/pulse.c, src/audio/spd_audio.h: add pulse_mutex.
	
2007-11-14  Gilles Casse  <gcasse@oralux.org>

	* src/audio/pulse.c: fixes, take in account rate changes if the stream is
	already opened, add a missing userdata in _subscribe_cb.
	
2007-11-12  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/espeak.c (espeak_send_to_audio): spd_audio_play
	call updated with endian information.

	* src/audio/alsa.c (alsa_play): Handle endianness correctly.

	* src/modules/ibmtts.c (ibmtts_play_file): spd_audio_play
	call updated with endian information.

	* src/modules/flite.c (_flite_speak): spd_audio_play
	call updated with endian information.

	* src/modules/festival.c (festival_send_to_audio): spd_audio_play
	call updated with endian information.

	* src/modules/espeak.c (espeak_play_file): spd_audio_play
	call updated with endian information.

	* src/audio/spd_audio.h: Argument format added to spd_audio_play,
	all callers updated.

	* src/audio/spd_audio.c (spd_audio_play): Perform
	byte swap if endianness doesn't match (Patch by Luke
	Yelavich.

2007-11-11  Gilles Casse  <gcasse@oralux.org>

	* src/audio/pulse.c: New file.

	* configure.in, config/modules/espeak.conf,
	config/modules/festival.conf, config/modules/flite.conf,
	config/modules/ibmtts.conf, src/audio/Makefile.am,
	src/audio/spd_audio.c, src/audio/spd_audio.h,
	src/modules/espeak.c, src/modules/festival.c, src/modules/flite.c,
	src/modules/ibmtts.c: files updated for PulseAudio support.

2007-11-05  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speaking.c (speaking_pause_all): Initialize err
	to 0.

	* src/server/output.c (_output_get_voices): Unused variable j,
	atom removed.

	* src/server/set.c (set_synthesis_voice_uid): Unused variable
	output_module removed.

	* src/server/speechd.h (SpeechDOptions): localhost_access_only: new
	variables.

	* src/server/speechd.c (speechd_options_init): Default values
	for LocalhostAccessOnly.
	(main): Open port to all adresses or to localhost only based
	on LocalhostAccessOnly option.

	* src/server/config.c (load_default_global_set_options): Added new
	option LocalhostAccessOnly with default value 1.
	

2007-09-24  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/module_main.c: Conflicting getline definition changed.

2007-09-23  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/module_utils.h: Fixed int -> size_t in getline definiton.

	* src/modules/module_utils.c (do_message): Fixed int -> size_t.
	(do_set): Fixed int -> size_t.

	* src/modules/module_main.c (main): Fixed int -> size_t.

2007-08-28  Hynek Hanke  <hanke@brailcom.org>
	* Version 0.6.4.

2007-08-07  Lukas Loehrer  <listaddr1@gmx.net>

	* config/modules/ibmtts.conf: Add column with expected input encoding to
	IbmttsDialect for each language.
	Disable debugging by default

	* src/modules/ibmtts.c: Added TODO list at the beginning of the
	file.
	(ibmtts_send_to_audio): Increased maximum speech volume
	(module_speak): Convert input from utf-8 to expected encoding for
	selected language dialect, if SSML is not used.
	Check if input is valid utf-8. Assume it is latin-1 if not.
	(various places): Fixed most compiler warnings.
	(_ibmtts_synth): Insert dummy index mark at the end of the message
	to force a callback even if message produces no speech.
	Fix race condition where end of message event can get lost.
	(_ibmtts_stop_or_pause): Prevent stop thread from spuriously waking up.

2007-07-30  Lukas Loehrer  <listaddr1@gmx.net>

	* src/modules/module_utils.c (module_strip_ssml): Make sure result
	is always NULL terminated. "<" was not.

2007-07-29  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/module_utils_addvoice.c (module_getvoice): Return
	NULL instead of exiting on unknown voice.

	* src/modules/ibmtts.c (module_speak): Strip SSML if IbmttsUseSSML
	is 0.
	(module_load): IbmttsUseSSML: new option.

	* config/modules/ibmtts.conf (IbmttsUseSSML): New option.

	* src/modules/ibmtts.c (module_speak): Strip SSML only if
	IbmttsUseSSML is 0.

2007-07-13  Hynek Hanke  <hanke@brailcom.org>

	* INSTALL: Minor details.

	* config/speechd.conf.in: Espeak is now on by default.

	* config/modules/ibmtts.conf: Removed chunk settings.
	Docstring to audio output method settings updated.

	* config/modules/festival.conf: Docstring to audio output method
	settings updated.

	* config/modules/flite.conf: Docstring to audio output method
	settings updated.
	
	* config/modules/espeak.conf: Docstring to audio output method
	settings updated.


	* src/server/alloc.c (spd_message_copy): Copy synthesis_voice to
	the new message.

	* src/server/server.c (queue_message): Copy also synthesis_voice.

	* src/modules/flite.c (_flite_speak): Report end event if
	module_get_message_part does not return anything. (Not error
	and stop event as previously)
	
	* src/modules/module_utils.h: Module list voices included.

	* src/modules/module_utils.c (do_message): Pass space as " "
	to the output modules.

2007-07-11  Milan Zamazal  <pdm@brailcom.org>
>
	* src/modules/festival_client.c: When changing Festival synthesis
	voice, call speechd-set-festival-voice instead of
	speechd-set-voice.

2007-07-11  Lukas Loehrer  <listaddr1@gmx.net>

	* src/modules/espeak.c (module_speak): Special treatment of
	"space" character.
	(espeak_set_language): Temporary fix for failing assertion when setting language.

2007-07-11  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/module_utils.h (CLEAN_OLD_SETTINGS_TABLE): Fix of
	typo in a variable name.

2007-07-11  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/festival.c (module_speak): Use
	UPDATE_STRING_PARAMETER instead of UPDATE_PARAMETER for updating
	synthesis_voice.

	* src/modules/module_utils.h (CLEAN_OLD_SETTINGS_TABLE)
	(INIT_SETTINGS_TABLES): Add synthesis_voice.

2007-07-11  Milan Zamazal  <pdm@brailcom.org>
	
	* src/modules/festival_client.c: Use FEST_SET_SYMB instead of
	FEST_SET_STR for FestivalSetSynthesisVoice.

2007-07-10  Lukas Loehrer  <listaddr1@gmx.net>

	* src/modules/espeak.c (module_close): Before calling
	pthread_join(), make sure threads have really exited by calling
	pthread_cancel().
	(_espeak_play): Fixed potential race with stop thread.
	(_espeak_play , _espeak_stop_or_pause): Work around spurious sem_post()
	after wake-up-up from suspend-to-disk.

2007-07-10  Tomas Cerha  <cerha@brailcom.org>

	* config/speechd.conf.in: Espeak module added.  Descriptions
	improved.

2007-07-09  Tomas Cerha  <cerha@brailcom.org>

	* INSTALL: Minor improvements of the "User applications" section.

2007-07-09  Lukas Loehrer  <listaddr1@gmx.net>

	* src/modules/espeak.c
	(synth_callback): Use gnit64 to hold
	temporary value to prevent integer overflow in long messages.
	Set default value of EspeakNASServer to "localhost" (fixes warning.
	(module_speak): Removed spurious <speak> tags.

2007-07-08  Hynek Hanke  <hanke@brailcom.org>

	* AUTHORS: Added Steve Holmes and Lukas Loehrer.

	* doc/ssip.texi: LIST SYNTHESIS_VOICES and SET SYNTHESIS VOICE added.

	* INSTALL: Sections reorganized. Added notes about Espeak.

	* ANNOUNCE: Updated for 0.6.3 relese.

	* NEWS: Updated for 0.6.3 relese.

	* config/speechd.conf: Added AddModule line for espeak (native) driver.

	* src/server/output.c (_output_get_voices): Check if reply is not
	null.

2007-07-08  Steve Holmes  <steve@holmesgrown.com>

	* src/modules/generic.c: GenericPunctNone, GenericPunctSome and
	GenericPunctAll: new options.

 	* config/modules/espeak-generic.conf: added 3 new punctuation
 	variables: GenericPunctNone, GenericPunctSome, and GenericPunctAll 
	
2007-07-06  Lukas Loehrer  <listaddr1@gmx.net>

	* src/modules/espeak.c: Added source file for espeak output module.

	* src/modules/Makefile.am: Added sd_espeak to list of output modules.

	* config/modules/espeak.conf: Created configuration file for espeak
	output module.

	* configure.in: Added configuration option for espeak output
	module (--with-espeak).
	
2007-07-02  Hynek Hanke  <hanke@brailcom.org>

	* src/server/module.h (OutputModule): voices -- new variable.

	* src/server/module.c (load_output_module): Generate list of voices.

	* src/server/output.c (_output_get_voices): 

	* src/modules/festival.c (module_speak): Do not update synthesis_voice twice.
	List of voices is generated on the beginning and each language changed and saved
	to memmory.

	* src/server/output.c (_output_get_voices): Renamed from output_list_voices.
	(output_list_voices): New function. Only read from module attributes.

	* src/modules/festival.c (festival_voice_list): New variable.
	(module_init): Get a list of festival voices.

2007-06-26  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/festival_client.c (festivalGetVoices): Incorrect
	type cast fixed.

2007-06-26  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/festival_client.c (festivalGetVoices): Return
	language and dialect codes instead of names.

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

	* src/modules/module_utils.h (CLEAN_OLD_SETTINGS_TABLE)
	(INIT_SETTINGS_TABLES): Set language to NULL.

2007-06-24  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/festival.c (module_speak): Removed NULL
	substitutions for an empty string.

2007-06-21  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.c(speechd_init): initialize output modules list.

	* src/server/config.c: Update output_modules_list.

	* src/modules/module_utils.h(INIT_SETTINGS_TABLES): Added module_get_voices.

	* src/modules/module_utils.c: New parameter synthesis_voice.
	(do_list_voices): New function

	* src/modules/generic.c (module_list_voices): New interface function (do nothing)
	
	* src/modules/festival_client.c (lisp_list_get_vect): New function.
	(festivalGetVoices): New function.
	(vect_read_item): New function.

	* src/modules/module_utils.h (CLEAN_OLD_SETTINGS_TABLE): _old.language=strdup("en")

	* src/modules/festival.c (module_speak): Added synthesis_voice.
	(festival_set_synthesis_voice): New function.

	* src/server/output.c (output_send_settings): synthesis_voice new parameter.

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

	* intl/fdsetconv.c (str2EVoice): If unresolved, voice=NO_VOICE
	instead of -1 (out of enum).

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

	* src/server/parse.c (parse_list): LIST SYNTH_VOICES: New SSIP command.

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

	* src/server/msg.h (C_OK_MODULES): New constant.
	(OK_MODULES_LIST_SENT): New constant.

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

	* src/server/module.c (reload_output_module): Add module name into output_modules_list.

	* src/modules/ibmtts.c (module_list_voices): New interface function (do nothing)

	* src/modules/cicero.c (module_list_voices): New interface function (do nothing)	

	* src/modules/flite.c (module_list_voices): New interface function (do nothing)	

	* src/modules/module_main.c (main): New command GET

2007-06-16  Hynek Hanke  <hanke@brailcom.org>

	* src/c/api/libspeechd.c (spd_events_handler): Do not exit on
	broken socket, but report error.
	(escape_dot): Bug with single character omisions fixed.

2007-05-23  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/Makefile.am (EXTRA_DIST): Added -Wall.

	* src/c/api/Makefile.am (AM_CFLAGS): Added -Wall

	* src/modules/module_utils.h: Copyright updated.

	* src/server/Makefile.am (AM_CFLAGS): Added -Wall.

	* configure.in (LIB_SDAUDIO_BEVISION): Incremented.

	* config/speechd.conf: DefaultCapLetRecognition comment updated.

	* src/modules/ibmtts.c (module_speak): Strip SSML via module_strip_ssml() of module_utils.c

	* src/c/api/libspeechd.c (spd_string_new): New function.
	(spd_string_append): New function.
	(escape_dot): Completely rewritten.

2007-05-06  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/module_utils.h (MOD_OPTION_1_INT_REG): Switch order
	of module_dc_options field addition and variable assigment.

	* src/modules/module_utils.h (MOD_OPTION_1_STR_REG): Switch order
	of module_dc_options field addition and variable assigment.

	* version.sh: 0.6.3test1

	* configure.in: libspeechd revision +1

2007-05-03  Hynek Hanke  <hanke@brailcom.org>

	* src/c/clients/say/say.c: First set language, then output module (to override default output module
	for the given language).

	* config/Makefile.am (CLEANFILES): Added speechd.conf to CLEANFILES.

	* src/server/speechd.h: Logging mutex.

	* src/server/speechd.c (MSG2): ctime/vfprintf safe logging.
	(MSG): ctim/vfprintf safe logging.
	(main): Initalize logging_mutex.

	* src/c/api/libspeechd.c (spd_send_data_wo_mutex, SPD_DBG): Thread safe logging.
	(spd_events_handler): fixed bug: strdup(reply) + xfree(reply), otherwise we could
	over
	(spd_events_handler, spd_send_data_wo_mutex): fixed bug: strdup(connection->reply) + xfree(connection_reply)

2007-02-27  Hynek Hanke  <hanke@brailcom.org>

	* config/speechd.conf.in: Uncomment espeak.

	* config/speechd.conf.in: Comment out default language modules.

	* NEWS: 0.6.2

	* config/modules/espeak-generic.conf: speak changed to espeak.

	* src/modules/generic.c (generic_set_language): If no language
	entry is specified, set the language code passed by SSIP without
	any charset recoding.

	* config/modules/espeak-generic.conf: Language settings removed
	(unnecessary).  Added definitions for all available espeak voices.
	Changed speak to espeak.

	* src/server/server.c (queue_message): Cast mem_free_message to GFunc
	instead of GFunc* in g_list_foreach.

	* src/server/speaking.c (speak): Cast mem_free_message to GFunc
	instead of GFunc* in g_list_foreach.

	* INSTALL: Reverted to version 1.40 and small improvements
	(mention espeak etc.)

	* version.sh (VERSION): 0.6.2

	* src/modules/festival.c: Copyright update.

	* src/modules/generic.c (_generic_speak): Report CANCEL on signal
	termination of the child process and END if it terminates
	normally.

2007-02-17  Hynek Hanke  <hanke@brailcom.org>

	* version.sh : Version number 0.6.2test1

2007-02-17  Hynek Hanke  <hanke@brailcom.org>

	* src/server/compare.c (compare_message_uid): Remove unnecessary
	assertion.

	* src/server/config.h: Copyright.

	* src/server/index_marking.c (insert_index_marks): Assert msg->buf
	!= NULL.

	* src/server/speaking.c (queue_remove_message): New function.
	(empty_queue): Use queue_remove_message.
	(empty_queue_by_time): Use queue_remove_message.
	(message_nto_speak): Spelling.

	* src/server/speechd.c (main): Increased number of connections to
	hold in the listen() queue to 50.
	Copyright.

	* src/server/compare.c (compare_message_uid): Do not check for
	message->settings.fd.

	* src/server/speaking.c (speaking_cancel_all): +stop_priority(4,5)

2007-01-27  Olivier BERT  <obert01@mistigri.org>

	* src/modules/cicero.c: Converting to ISO-8859-1 is not needed anymore

2006-11-29  Hynek Hanke  <hanke@brailcom.org>

	* src/c/api/libspeechd.c (spd_char): Execute CHAR command
	without mutex!
	(RET): Unlock mutex in RET.
	(spd_events_handler): 

2006-11-17  root  <hanke@brailcom.org>

	* configure.in (LIB_SDAUDIO_AGE): LIB_SPD_REVISION=2

2006-11-17  Hynek Hanke  <hanke@brailcom.org>

	* src/c/api/libspeechd.c (spd_get_client_list): removed.
	: Copyright updated.

	* src/server/parse.c (parse_stop, parse_stop): Added mutexes
	around speaking_stop*() calls.

2006-11-05  Hynek Hanke  <hanke@brailcom.org>

	* src/guile/README: Mailing list correction.

2006-09-28  Hynek Hanke  <hanke@brailcom.org>

	* src/tests/priority_progress.test: New test.

	* src/server/server.c (queue_message): Insert all messages from tha last priority
	progress block into the last_p5_block list.

	* src/server/speaking.c (speak): Handle last priority progress messages as a list
	of messages in a block.

	* src/server/speechd.c (speechd_init): last_p5_message renamed to last_p5_block.

	* src/server/speechd.h: last_p5_message renamed to last_p5_block.

2006-07-25  Hynek Hanke  <hanke@brailcom.org>

	* Makefile: Added distdir: target

	* version.sh: 0.6.1

	* INSTALL: +Orca experimental support.

2006-07-20  Hynek Hanke  <hanke@brailcom.org>

	* config/modules/cicero.conf: Rewritten + comments.

	* src/modules/cicero.c (module_init): Drop CiceroWrapper. Use
	CiceroExecutable.  New option: CiceroExecutableLog
	(module_init): Ignore SIGPIPE in both threads.

2006-07-13  Hynek Hanke  <hanke@brailcom.org>

	* src/python/setup.py: Distutils setup.

	* src/python/Makefile: New file.

	* src/Makefile.am (SUBDIRS): +python

2006-07-11  Hynek Hanke  <hanke@brailcom.org>
	FSF address updated in all files.

2006-07-11  Hynek Hanke  <hanke@brailcom.org>
	
	* src/server/speechd.h: speechd_pid_file removed.

	* src/server/speechd.c (main): If pid_file specified on command
	line, use this one.

	* src/server/options.c (options_parse): Added pid_file.
	(SPD_OPTION_SET_STR): New macro.

	* src/server/speechd.h: Added pid_file to SpeechdOptions.

	* src/server/options.h: Added options pid-file.

2006-06-29  Olivier BERT  <obert01@mistigri.org>

	* src/modules/cicero.c: Updated Copyright in cicero.c
	* spe/modules/cicero.c: Replaced a fixed buffer size by a dynamic 
	  allocation


2006-06-29  Hynek Hanke  <hanke@brailcom.org>

	* config/modules/cicero.conf: Captions, debugging.

2006-06-27  Hynek Hanke  <hanke@brailcom.org>

	* src/Makefile.am: Include Python and Guile files in the
	distribution.

2006-06-22  Olivier BERT  <bert_o@epita.fr>

	* Added support for the cicero TTS (french and english).
	    Cicero TTS URL: www.cam.org/~nico/cicero
	* Updated config/speechd.conf.in to add the declaration of the
	 cicero module.
	* The specific documentation and files for the cicero module are
	  still at the following URL:
	  http://www.terramitica.net/projects/speech-dispatcher

2006-05-17  Hynek Hanke  <hanke@brailcom.org>

	* INSTALL: Users must run './configure' before 'make all'.

2006-05-13  Hynek Hanke  <hanke@brailcom.org>

	* README.packagers: Most information about IBM TTS moved to INSTALL.

	* INSTALL: Info about IBM TTS output module from README.packagers.

	* ChangeLog: Comments about documentation moved to doc/ChangeLog.

2006-05-07  Gary Cramblitt <garycramblitt@comcast.net>

	* config/modules/espeak-generic.conf: Support for pitch adjustment
	and better mappings.

2006-04-25  Gary Cramblitt <garycramblitt@comcast.net>

	* src/c/clients/say/say.c, options.h, options.c:

2006-04-23  Gary Cramblitt <garycramblitt@comcast.net>

	* config/modules/ibmtts.conf: * src/modules/ibmtts.c: *
	configure.in: * src/modules/Makefile.am: Sound icon emulation.
	Requires libsndfile.  Also, permit customization of voices in
	config file.

	* src/tests/sound_icons.test: Simple test script for sound icons.

2006-04-22  Hynek Hanke  <hanke@brailcom.org>

	* config/modules/espeak-generic.conf: eSpeak generic output module
	configuration.

	* config/speechd.conf.in: Added espeak-generic conf module
	(commented out).

	* src/server/speaking.c (speak): Break loop when SPEAKING only
	after checking for pause. Do not fill resume_requested with 1.

	* src/server/set.c (default_fd_set): Initialize
	paused_while_speaking to 0.

	* src/server/server.c (queue_message): Only copy settings and
	type when we get an fd. For uids, the message settings are
	already filled in.


2006-04-21  Gary Cramblitt <garycramblitt@comcast.net>

	* config/modules/ibmtts.conf:
	* src/modules/ibmtts.c: Permit per-language key substitution.


2006-04-16  Gary Cramblitt <garycramblitt@comcast.net>

	* src/modules/ibmtts.c: Rework stop and pause logic.  You cannot call
	module_report_* from within a modules_stop() or module_pause call.

	* src/tests/stop_and_pause.test: Minor changes.

2006-04-12  Gary Cramblitt <garycramblitt@comcast.net>

	* src/modules/ibmtts.c:
	* config/modules/ibmtts.conf: Key substitution for IBM TTS.

	* src/tests/keys.test: Test script for keys.

2006-04-11  Gary Cramblitt <garycramblitt@comcast.net>

	* src/tests/run_test.c: Add "wait for <str>" operator.  Useful for
	waiting for event notifications.

	* src/tests/README: Document "wait for".

	* src/tests/stop_and_pause.test: Use "wait for".

2006-04-10  Gary Cramblitt <garycramblitt@comcast.net>

	* src/c/clients/say/say.c, options.h, options.c:

	* config/modules/ibmtts.conf:
	* config/speechd.conf.in:
	* src/modules/ibmtts.c, Makefile.am:
	* src/configure.in.in: New output module for IBM TTS synthesizer.
	It compiles and even speaks, but don't expect much else right now.

	* src/modules/module_utils.c, src/c/api/libspeechd.c: Remove do
	nothing statement in xfree().

	* src/tests/basic.test: Minor spelling and grammar corrections.

	* src/tests/ssml.test: Start on new SSML test script.

	* src/tests/stop_and_pause.test: A script for testing STOP and
	PAUSE functions.


2006-04-10  Hynek Hanke  <hanke@brailcom.org>

	* COPYING: Added GNU Lesser General Public License.

	* src/modules/module_utils.c: Relicensed to GNU Lesser General
	Public License

	* src/modules/module_utils.h: Relicensed to GNU Lesser
	General Public License

	* src/modules/module_utils_addvoice.c: Relicensed to GNU Lesser
	General Public License

	* src/modules/module_main.c: Relicensed to GNU Lesser
	General Public License

	* src/audio: Relicensed to GNU Lesser General Public License

2006-04-07  Gary Cramblitt <garycramblitt@comcast.net>

	* /src/modules/flite.c: Correct DBG "NAS" -> "ALSA"

2006-04-06  Gary Cramblitt <garycramblitt@comcast.net>

	* src/modules/module_utils.h: Fix broken macro (not previously used).

2006-03-31  Tomas Cerha  <cerha@brailcom.org>

	* FAQ: Formatting improved.

2006-03-30  Gary Cramblitt <garycramblitt@comcast.net>

	* doc/Makefile.am: Correct build error for HTML.

2006-03-29  Gary Cramblitt <garycramblitt@comcast.net>


2006-03-13  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/oss.c: Include string.h

2006-01-25  Hynek Hanke  <hanke@brailcom.org>

	* version.sh: 0.6

	* ANNOUNCE: release 0.6

	* FAQ (A): +server_access_list

2006-01-09  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/alsa.c (gettimeofday): 0->NULL

	* src/audio/nas.c (nas_play): gettimeofday takes 2 arguments only
	under _GNU_SOURCE.

2006-01-08  Hynek Hanke  <hanke@brailcom.org>

	* : Missing declarations fixed, cleaning w/r to gcc -Wall

2005-12-22  Hynek Hanke  <hanke@brailcom.org>

	* src/c/clients/say/say.c, options.c, options.h: Allow setting of
	client name and connection name.

	* version.sh: version 0.6rc1

2005-12-07  Hynek Hanke  <hanke@brailcom.org>

	* src/c/api/libspeechd.c (spd_execute_command_with_reply): Don't use mutex.

	* src/audio/oss.c: Fixed memmory leaks.

	* src/audio/alsa.c (alsa_play): Free alsa_poll_fds.

	* src/modules/festival_client.c (FEST_SEND_CMD): Examine reponse on (require 'speech-dispatcher).

	* src/modules/flite.c (module_speak): Bugfix (use *flite_message, not flite_message)
	(_flite_speak): Call delete_wav().
	(_flite_speak): Free buf.

	* src/modules/generic.c (_generic_speak): Formatting.
	(_generic_speak): Print "no_voice" to $VOICE when no voice is
	specified.

	* src/modules/module_utils.c (do_pause): Changed return values of do_stop, do_pause.
	(module_get_message_part): reformated header.

	* src/modules/module_utils.h: Cleaning-up: fixed return values of do_stop and do_pause, remove do_speaking

	* src/server/output.c (output_module_is_speaking): Debugging.

	* src/server/server.c (queue_message): Save msg_id before
	resolv_priorities() is called and return this id.
x
	* src/c/clients/say/say.c: Now recognizes also -S (stop all) and -C (cancel all) functions.

	* src/c/api/libspeechd.h (spd_execute_command_wo_mutex): New function
	(spd_send_data_wo_mutex): New function.

	* src/c/api/libspeechd.c: libspeechd should now be thread-safe.

2005-11-30  root  <hanke@brailcom.org>

	* src/server/server.c (queue_message): Return id, not new->id, since new doesn't have to exist
	after resolve_priorities().

2005-11-30  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/generic.c (_generic_speak): If no voice is found, print "no_voice"
	into the command string.

	* src/server/output.c (output_is_speaking): Don't check for output != NULL.
	(output_module_is_speaking): Check for output != NULL.

	* src/audio/oss.c (oss_play): free track_volume.samples.

	* src/audio/alsa.c (alsa_play): Free id->alsa_poll_fds structure at the end of playback.

	* src/modules/flite.c (module_speak): Memmory leak fixed.
	(_flite_speak): xfree(buf);

	* src/server/speaking.c (speak): Debug message.

	* src/server/output.c (output_is_speaking): If speaking_module is NULL, then
	assigne NULL to *index_mark, not index_mark.
	(output_module_is_speaking): Added more debugging.

2005-11-21  Hynek Hanke  <hanke@brailcom.org>

	* src/c/api/libspeechd.h (spd_set_data_mode): Added.

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

	* configure.in: New version of libspeechd.c

	* src/c/api/libspeechd.c (spd_events_handler): Bugfix: reply_code >= 700

2005-11-08  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/alsa.c (alsa_play): Call snd_pcm_drop at the end of
	playback.

2005-10-29  Hynek Hanke  <hanke@brailcom.org>

	* src/server/output.c
	(waitpid_with_timeout): New function.
	(output_close): Don't wait for reply from CLOSE.
	(output_close): Rewritten.
	(output_module_is_speaking): Handle 7xx codes.

	* src/server/module.c (unload_output_module): Only load modules with configfilename, drop semaphore.

	* src/modules/module_utils.h: Prototypes for module_report_ functions.

	* src/modules/module_utils.c (module_send_asynchronous): New function.
	(module_report_index_mark): Renamed.
	(module_report_event_begin): New function.
	(module_report_event_end): New function.
	(module_report_event_pause): New function.
	(module_report_event_stop): New function.
	Don't use current_index_mark variable.

	* src/modules/festival.c: Use module_report_event functions
	for events.

	* src/audio/alsa.c (_alsa_open): Don't initialize hw_params.
	(_alsa_open): Don't open pipes.
	(alsa_play): Initialize/free hw_params and pipes.
	_alsa_open was now splitted into two parts in the hope
	to avoid crack sounds and go around the buggy place in
	alsa lib which brings all ALSA apps down when reached.

2005-10-26  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/module_utils.c (module_report_index_mark): Index marking
	splitted into index marks and events signalization.

	* src/audio/oss.c (_oss_open): Bug: id freed before id->fd_mutex
	is unlocked.

	* src/server/output.c (output_close): Don't wait for reply from STOP.
	(output_close): Use waitpid_with_timeout instead of waitpid. If it
	doesn't succeed in 1 seccond, kill the module.
	(waitpid_with_timeout): New function.

2005-10-16  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/festival.c (module_close): Only close audio if festival_audio_id != NULL.

	* src/server/speechd.c (main): fclose(stdout) and fclose(stderr) removed since this would
	free the first three file descriptors and some function might use them, although daemon()
	will subsequently close them.
	(main): Call pthread_create() only after daemon(). For some reason, threads don't mix with
	daemon.

	* src/audio/alsa.c (_alsa_close): Only close the device if it wasn't closed earlier.

2005-10-16  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/festival.c (module_speak): Handle
	festival_connection_crashed == 1

	* src/modules/festival_client.c: If connection to Festival
	is broken, set festival_connection_crashed to 1.

	* src/server/sem_functions.c: Unnecessary semaphore functions
	removed.

	* src/server/sem_functions.h: Unnecessary semaphore functions
	removed.

	* src/server/speaking.c (speak): Log error if the module can't
	say the message, but doesn't crash.

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

	* src/audio/Makefile.am: Include oss.c, alsa.c and nas.c in EXTRA_DIST.

	* src/audio/oss.c (oss_play): Don't fail if it's not possible to set the exact bitrate,
	just log it as an error.

	* src/c/api/libspeechd.c (spd_open): First create connection->stream and initialize mutexes
	and only later create the new events thread.

	* src/server/speechd.c (main): Detach only after all initialization took place
	and Speech Dispatcher is ready to accept new connections.

2005-10-12  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speaking.c (speak): Activity events POLLPRI added to POLLIN.
	(is_sb_speaking): Use speaking_semaphore_post() after CANCEL notification from
	output module.

	* src/server/output.c (output_send_data): New custom log branch: output_module.
	(output_send_data2): New function.

	* src/modules/module_main.c (main): Don't use semaphore.

	* src/c/api/libspeechd.c (spd_open): Set no buffering for connection socket associated
	stream.

	* src/modules/module_utils.h (SPDSemaphore): Variable removed.

	* src/modules/module_utils.c (module_index_mark_store): SPDSemaphore: related functions removed.

	* src/modules/festival.c (_festival_speak): Signal STOPPED instead of END on festival_stop.

2005-10-10  Hynek Hanke  <hanke@brailcom.org>

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

	* src/server/speechd.c (speechd_init): Init speaking_pipe.

	* src/server/speaking.c (speak): Use pipe instead of semaphore.

	* src/server/sem_functions.c (speaking_semaphore_post): Use pipe
	instead of semaphore.

	* src/server/output.c (output_read_reply): New function.
	(output_send_data): Use output_read_reply.

	* src/server/module.h (OutputModule) stream_out: New variable.

	* src/server/module.c (load_output_module): Create stream from socket
	for buffered reading.

	* src/modules/flite.c (module_load): Include ALSA in audio output methods.

	* configure.in: Fixed versioning for libsdaudio

	* src/modules/festival.c (CLEAN_UP): Index mark signalling moved
	here.
	(CLP): Index mark signallling moved here.

	* src/modules/module_main.c (main): STOP and PAUSE are now without
	reply.

	* src/modules/module_utils.c (module_index_mark_store): Write
	directly to stdout.

	* src/server/speaking.c (speak): Use pipes and poll() instead of
	semaphore.

2005-10-05  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.c (speechd_init): Semaphore sanity test temporarily disabled.

2005-09-12  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/alsa.c (_alsa_close): Removed redundant free().

2005-09-12  Hynek Hanke  <hanke@brailcom.org>

	* src/tests/run_test.c (main): Do not cancel() the messages at the end.

	* src/tests/long_message.c (main): Updated for new spd_open()

	* src/tests/clibrary.c (main): Updated for new spd_open()

	* src/server/set.c (set_notification_*): New functions.
	(SET_NOTIFICATION_STATE): New macro.

	* src/server/server.c (queue_message): Behave differently if the message is queued or re-queued.

	* src/server/parse.c (CHECK_SSIP_COMMAND): Index marks.

	* src/server/msg.h: Define index marking 7xx replies.

	* src/server/index_marking.h (SD_MARK_*): New macros.

	* src/server/history.c (history_get_message): Return dynamically allocated SSIP replies.

	* src/server/alloc.c (spd_message_copy): Copy index_mark too.
	(mem_free_fdset): Free index_mark too.

	* src/modules/module_utils.h (module_is_speaking): Now returns char* (index mark).

	* src/modules/flite.c: Implement callbacks.

	* src/modules/festival.c: Implements callbacks.
	* src/c/clients/say/say.c: Implement -w.

	* src/c/clients/say/options.h: New -v option.

	* src/c/clients/say/options.c: Include correct system headers.
	(options_print_version): Updated copyright info.
	(options_parse): New -w option.

	* src/c/api/libspeechd.h: Prototypes for new functions.

	* src/c/api/libspeechd.c: Use SPDConnection* instead of int as a connection.
	(parse_response_data): Rewritten.
	(get_param_int): New function.
	(get_param_str): New function.
	(spd_events_handler): New function. Asynchronous events handler.
	(get_reply): Rewritten.
	(spd_open): Added parameter mode. (Backwards incompatibility :(

	* src/c/api/Makefile.am: Include lpthread.

	* src/audio/oss.c (oss_play): Better debugging.
	(oss_play): Timing reworked.

	* intl/fdset.h (ENotification): New type.
	(notification): New variable.
	(paused_while_speaking): New variable.

	* config/modules/festival.conf: Updated. 0 and 1 insted of On and Off (they don't work).

	* configure.in (LIB_SDAUDIO_AGE): New version of the library, AGE=0.

	* src/server/speaking.c (is_sb_speaking): Post on semaphore when "end" is received.

	* src/modules/module_main.c (main): Redundant \n removed.

	* src/modules/festival_client.c (festivalGetDataMulti): Free reply in the last round.

	* src/server/server.c (queue_message): Free the whole last_p5_message, not just spd_free().

	* src/modules/module_utils.c (do_message): Free 'cur_line'.

	* src/modules/module_main.c (main): Free 'cmd_buf' in each loop.

	* src/modules/festival.c (_festival_speak): Free 'fwave' in multi-mode.

	* src/server/server.c (serve): Free 'reply' even if delivered empty or with '999' code.

	* src/server/speechd.c (MSG2): Free memmory for 'time' string.

	* src/server/parse.c (GET_PARAM_INT): Free memmory for 'helper'

	* src/server/speechd.c (MSG): Free memmory for 'time' string.

	* src/server/module.c (load_output_module): Force read/write
	privilegies for owner when creating module log.

	* src/c/clients/say/say.c: Now uses callbacks and supports a '-w'
	option which causes it to wait until the message is said or
	discarded.

	* src/c/api/libspeechd.c (spd_set_notification): New function.
	(NOTIFICATION_SET): New macro.
	(spd_set_notification_off): New function.
	(spd_set_notification_on): New function.

	* src/server/speaking.c (reload_message): Insert messages with
	NULL index mark into the queue too.

	* src/modules/flite.c (module_pause): Flite doesn't support real
	pause. Just stop.

	* src/audio/oss.c (oss_play): Removed a timing bug.

	* src/modules/festival.c (module_pause): PAUSE now acts
	immediatelly. The change of the state is reported by the
	appropriate index_mark event.

	* src/server/speaking.c (reload_message): Don't free msg->buf since this will be done through current_message.

	* src/server/index_marking.h (SD_MARK_HEAD): Separated into _HEAD and _BODY

	* src/server/speechd.c (speechd_init): Init socket_com_mutex.

	* src/server/speechd.h (socket_com_mutex): New mutex.

	* src/server/set.c (default_fd_set): Set all notifications to 0.
	(set_notification_self): New function.

	* src/audio/alsa.c (alsa_play): Typo.

	* src/c/api/libspeechd.{c.h}: Declarations of internal functions moved to libspeechd.c so that
	gcc doesn't complain about redeclarations of static functions as non-static.

	* src/audio/alsa.c (alsa_play): Handle XRUN state when preparing to play.

2005-07-23  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/alsa.c (alsa_play): Initialize hw_params each time
	before setting parameters.

2005-07-10  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/alsa.c (ERR): New macro. Use it, when appropriate.
	(_alsa_open): Output device name too when impossible to open.
	No mutexes now necessary.
	(_alsa_open): Create a pipe for communication of stop requests to
	the other thread.
	(_alsa_close): Close the pipe.
	Improved logging.
	(wait_for_poll): New function.
	(ERROR_EXIT): New macro. Used instead of ``goto error_exit''.
	(alsa_play): The while loop modified for the new mechanism (see comments).

2005-07-04  Hynek Hanke  <hanke@brailcom.org>

	* src/server/config.c (cb_EndClient): Assign NULL to cl_spec_section.

	* src/server/server.c (last_messge_id): Start counting from 1.
	(queue_message): Changed return value to message uid on success, 0 on failure.

2005-07-02  Hynek Hanke  <hanke@brailcom.org>

	* src/c/clients/say/options.c (options_print_version): fixed copyright notice

2005-07-02  Hynek Hanke  <hanke@brailcom.org>

	* config/clients/emacs.conf: Change nothing by default.

	* config/speechd.conf.in: Load the clients specific configuration files for Emacs and Gnome Speech by default.

	* config/clients/gnome-speech.conf: Local configuration for gnome speech.

	* config/modules/festival.conf: Mention FestivalALSADEvice

	* src/audio/alsa.c (alsa_play): Bug: snd_pcm_format_silence_8() -> snd_pcm_format_silence()

	* src/audio/spd_audio.c (spd_audio_open): Typo.

	* src/modules/festival.c (module_load): Add FestivalALSADevice parameter.

	* src/audio/alsa.c (alsa_open): New parameter: alsa device.

2005-06-10  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/alsa.c: Alsa now works in blocking mode (thx Gary Cramblitt)
	MSG() new macro.
	Better logging mechanism.

	* config/modules/: DebugFile option moved to speechd.conf.

	* config/speechd.conf.in: main and custom logfiles default path modified.

	* config/speechd.conf.in: logfile paths added for each output module.

	* src/modules/festival.c (module_speak): INIT_DEBUG() removed.

	* src/modules/flite.c (module_init): INIT_DEBUG() removed.

	* src/modules/generic.c (module_init): INIT_DEBUG() removed.

	* src/modules/module_utils.h (DECLARE_DEBUG): Removed DebugFile.
	(REGISTER_DEBUG): Removed DebugFile.
	(INIT_DEBUG): Removed.

	* src/server/module.h (OutputModule): New variables debugfilename and stderr_redirrect.

	* src/server/config.c (cb_AddModule): Handle 3rd parameter: debugfile.

	* src/server/module.c (load_output_module): Redirrect stderr to the file specified
	as mod_dbgfile argument (given in the configuration).

2005-05-13  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/alsa.c: New file.

	* src/modules/festival.c (module_init): Added the "alsa" parameter
	as a valid output method.

	* INSTALL: Warn about NAS bugs under heavy use, mention ALSA.

	* src/c/clients/say/say.c: New parameter -P, --priority.

	* src/c/clients/say/options.c (options_print_help): Added -P, --priority.
	(VERSION): 0.3
	(options_parse): priority.

	* src/c/clients/say/options.h: Added the priority parameter.

	* src/audio/spd_audio.c: Include alsa module.

	* configure.in: Optional (and autodetect) compilation with ALSA support.

	* src/audio/Makefile.am (ALSA_LIBS): New variable.
	(ALSA_FLAGS): New variable.

	* src/audio/spd_audio.h (AudioID): Added ALSA variables.
	include alsa/asoundlib.h

2005-05-06  Hynek Hanke  <hanke@brailcom.org>

	* src/tests/run_test.c: Cancel everything at the end.

	* src/server/index_marking.c (insert_index_marks): Escape '<' correctly after a dot.

	* INSTALL: Updated the list of compatible applications.
	New section ``Building from CVS''

	* INSTALL: libaudio removed, speechd doesn't depend on it.
	autotool chain replaced by build.sh

	* src/c/clients/say/options.c (options_parse): Missing 'break'.

2005-02-27  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/festival.c (_festival_speak): Removed some redudant debug messages.

	* src/c/clients/say/say.c (main): Print help correctly.

2004-12-10    <hanke@robinson>

	* src/audio/nas.c: One more DBG removed.

	* src/audio/nas.c (_nas_handle_server_error): Use fprintf instead of DBG since
	we don't have access to DBG in the library anyway.

2004-12-10  Hynek Hanke  <hanke@brailcom.org>

	* configure.in (LIB_SDAUDIO_REVISION): Incremented.

	* src/audio/nas.c (_nas_handle_server_error): New function.
	(nas_open): Setup our own error handler.

2004-11-29  Hynek Hanke  <hanke@brailcom.org>

	* configure.in (LIB_SDAUDIO_REVISION): Incremented.

	* src/audio/oss.c (_oss_open): Don't use O_NONBLOCK since this is some undocumented
	feature and doesn't have to work on other systems.
	(oss_play): Compute the number of bytes needed to send correctly with bytes_per_sample.
	(oss_play): Determine the optimal fragment size and available buffer space in OSS
	using SNDCTL_DSP_GETOSPACE ioctl().
	(oss_play): DELAY is now in seconds rather than nanoseconds.
	(oss_play): If after the first write in the loop we still have a little data,
	but not a full fragment, we write them to OSS immediatelly.
	(oss_play): Better calculation of the timing shift (delay).

2004-11-21  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/nas.c (nas_play): Correct type for event_handler.

	* src/audio/spd_audio.c (spd_audio_open): Don't generare incompatible types warnings.

	* configure.in (flite_kal): Provide --with-nas and --with-flite options.

	* src/audio/spd_audio.h (Funct): (*open) now returns int.

	* src/modules/festival.c (_festival_speak): Set FestivalMultiMode only if text not found in cache.

2004-11-19  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/spd_audio.h (device_name): New parameter of AudioID.

	* src/audio/oss.c (_oss_open): New function.
	(_oss_close): New function.
	(oss_open): Don't open OSS device.
	(oss_play): Open OSS device and close it again.
	(oss_close): Don't close OSS device.

	* config/modules/flite.conf (FliteNASServer) "tcp/" added.

	* config/modules/festival.conf (FestivalNASServer) "tcp/" added.

	* src/modules/flite.c (_flite_speak): oss_pars removed. Open and close
	audio device only at the beginning and end.

	* config/speechd.conf (DefaultVolume): Now 0 (makes sense for NAS).

	* src/modules/festival.c (_festival_speak): oss_pars removed. festival_pars is used now.
	(_festival_speak): Open and close the audio device only at the beginning and end, not
	before and after playing each track.

2004-11-15  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/Makefile.am (modulebin_PROGRAMS): sd_festival and sd_generic added into modulebin_PROGRAMS.

	* INSTALL: More information about Flite and NAS support when building.

	* src/tests/Makefile.am (bin_PROGRAMS): The 'audio' target removed. This test was
	removed with the new audio subsystem.

	* src/modules/Makefile.am (modulebin_PROGRAMS): Compile the flite module according
	to the flite_support variable.

	* src/audio/oss.c (oss_play): Adjust the volume in a copy of the track,
	not in the track itself, since this leads in degenerating the tracks
	maintained in cache.

	* configure.in: Don't require flite libraries to be present.
	Report on whether flite libraries are available.
	(flite_support): New conditional variable.

2004-11-14  Milan Zamazal  <pdm@zamazal.org>

	* src/audio/Makefile.am (libsdaudio_la_LDFLAGS): -L/usr/X11R6/lib
	added.

2004-11-14  Milan Zamazal  <pdm@brailcom.org>

	* configure.in (audio): -L/usr/X11R6/lib added to the test.

2004-11-13  Hynek Hanke  <hanke@brailcom.org>

	* src/tests/Makefile.am (bin_PROGRAMS): Exclude audio target.

	* src/server/output.c (output_check_module): Added more debug info to "protocol" log.

	* src/modules/module_utils.h (MOD_OPTION_1_STR_REG): If arguments is NULL, handle correctly.

	* src/modules/flite.c:  Reworked to support the new audio interface.

	* src/modules/festival.c: Reworked to support the new audio interface.

	* src/modules/Makefile.am (EXTRA_DIST): Removed modle_utils_audio.c

	* src/audio/spd_audio.h: New library header file.

	* src/audio/Makefile.am (am_cflags): New variable.
	Compile the library with or without NAS according to ($nas_support)

	* src/modules/festival.conf: New audio output options.

	* src/modules/flite.conf: New audio output options.

	* configure.in: Check for NAS libraries.

	* configure.in (LIB_SDAUDIO): Version incremented (backwards incompatible).

	* src/audio/spd_audio.c (oss_play): New audio output library with support of stopable
	(and possibly non-blocking) OSS output.
	(oss_play): Some more timing magic.

	* src/modules/flite.c (_flite_child): Use flite_text_to_wave again and play the sound
	through the new sound output system.

	* src/modules/module_utils_audio.c: Removed, no longer necessary.

2004-10-18  Hynek Hanke  <hanke@brailcom.org>

	* config/speechd.conf.in: Modified comment for AddModule (new default relative path).

	* ANNOUNCE: 0.5 release.

	* src/modules/module_utils.c (module_get_message_part): Old-style index marking with '@' removed.

	* src/server/module.c (load_output_module): Report path of each module it can't load.

	* src/server: Log levels for various status messages going into the logfile
	changed.

2004-10-10  Hynek Hanke  <hanke@brailcom.org>

	* src/server/server.c (serve): Substitute binary zeros with a '?'
	in incomming data.

	* src/python/speechd/_test.py (Client.check_it): Some more tests.

	* src/python/speechd/client.py (Client.char): New method.
	(Client.key): New method.
	(Client.sound_icon): New method.
	(Client.pause): New method.
	(Client.resume): New method.
	(Client.set_punctuation): New method.
	(Client.set_spelling): New method.
	(Client.set_cap_let_recogn): New method.
	(Client.set_voice): New method.
	(Client.set_volume): New method.
	(Client.block_end): New method.
	(Client.block_begin): New method.

	* src/python/speechd/client.py (Client.say_char): New function.
	(Client.cancel): New function.
	(Client.__set_priority): New function.
	(Client.say): Use __set_priority.
	(Client.get_client_list): Commented out since not active in current SSIP.

	* src/python/speechd/client.py (_SSIP_Connection.send_data): Correct escaping of the end-of-data sequence.

	* src/python/speechd/_test.py (tests): Added test for escaping dot.

	* configure.in, all Makefiles.am: Don't link unnecessary libraries.

2004-08-12  Milan Zamazal  <pdm@brailcom.org>

	* configure.in (AC_OUTPUT): spdsend added.

	* src/c/clients/spdsend/Makefile: Removed.

	* src/c/clients/spdsend/Makefile.am: New file.

	* src/c/clients/Makefile.am (SUBDIRS): `spdsend' added.

2004-08-04  Hynek Hanke  <hanke@brailcom.org>

	* src/server/set.c (CHECK_SET_PAR): Report name of the parameter.
	(update_cl_settings): Update also volume.

2004-07-22  root  <hanke@brailcom.org>

	* src/modules/festival_client.c (client_accept_waveform): Only fill in wave->samples if wave->num_samples
	is more than 0.

2004-07-21  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/festival.c (cache_insert): Don't copy the fwave structure, just save the pointer.
	(module_speak): Removed redudant debugging messages.

2004-07-21  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/Makefile.am (AM_CFLAGS): $(spdlibdir) not ($spdlibdir)

	* src/modules/module_utils.h: module_init now has a new parameter char **status_info.

	* src/audio/Makefile.am (spdlib_LTLIBRARIES): Install into spdlibdir.

	* configure.in: Define spdlibdir.

	* src/server/module.c (load_output_module): Send the INIT command and provide the user with
	the resulting information in log.

	* src/modules/module_utils.c (module_strip_punctuation_some): Don't care about index marks.

	* src/modules/generic.c (module_init): Provide information about the reason if initialization fails.

	* src/modules/flite.c (module_init): Provide information about the reason if initialization fails.

	* src/modules/festival.c (module_init): Provide information about the reson if initialization fails.

	* src/modules/module_main.c (main): Wait for INIT command after launch.

	* src/server/speechd.h (BUF_SIZE): Lowered to 128 since we are reading only one line.

	* src/server/speechd.c (MSG2): Append exact timestamps to custom log also.

	* src/modules/festival_client.c: Don't wait for response with character, sound-icon, key.

2004-07-18  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/generic.c (module_speak): Handle if recoding fails.

	* src/modules/festival.c (module_parent_dp_init): Don't set MultiMode before each synthesis.

	* src/server/index_marking.c (insert_index_marks): Escape ampersound.

	* src/modules/festival_client.c (festivalGetDataMulti): Wait for terminating OK even in case
	speechd-next returns 'nil'.

2004-07-13  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.c (MSG): Include timestamps in microseconds.

	* src/server/output.c (output_lock): Don't output silly debugging messages.

	* config/modules/llia_phon-generic.conf: New file.

	* src/modules/festival.c (_festival_parent): Do not delete the wav if it's in cache.
	(module_speak): Enable multi-mode right at the beginning.

	* src/modules/generic.c (module_init): Set default values for generic_msg_language.
	(module_speak): Strip ssml marks before speaking.

2004-07-04  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.c (main): Exit if create_pid_file != 0.

2004-07-02  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/Makefila.am: Include module_utils.h into sources.

	* Release 0.5-rc1

2004-06-28  Hynek Hanke  <hanke@brailcom.org>

	* src/server/parse.c (parse_set): New SSIP command SET SELF SSML_MODE.

	* src/server/index_marking.h: Removed find_next_index_mark(), not necessary.

	* src/server/config.c (load_default_global_set_options): Initialize ssml_mode to 0.

	* src/modules/module_utils_audio.c (module_audio_output_child): Initialize bitrate and volume to 0 (default).

	* src/modules/module_utils.h: New file.

	* src/modules/module_utils.c: Some stuff moved to module_utils.h

	* src/modules/module_main.c (main): Cleaning.

	* src/modules/generic.c (module_speak): Strip SSML marks.

	* src/modules/flite.c (module_speak): Strip SSML marks.

	* src/modules/festival.c (module_pause): Now handled through SSML index marks.

	* src/modules/Makefile.am: module_utils.c now linked, not included.

	* src/audio/spd_audio.h: Added headers for some functions.

	* intl/fdsetconv.c: With header fdsetconv.h

	* intl/fdsetconv.h: New file.

	* config/modules/festival.conf: Removed "text transformation" section, no longer necessary.

	* src/modules/module_utils_audio.c (module_audio_output_child): Parameter ``nothing'' removed.

	* src/modules/festival.c (module_load): Festival MaxChunkLength and Delimiters removed.
	(module_load): FestivalStripPunctChars removed.

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

	* src/server/msg.h (ERR_COULDNT_SET_PRIORITY): SSML MODE messages added.

	* src/server/index_marking.c (strip_index_marks): Rewritten.

	* src/modules/festival_client.c: Use speechd-speak-ssml instead of speechd-speak.

	* src/server/index_marking.c (insert_index_marks): Switch to SSML-type callbacks.

	* src/modules/festival_client.c (festivalStringToWaveGetData): Removed the multiple-waveform
	behavior.


	* Makefile.am (EXTRA_DIST): Include version.sh to the distribution.


	* src/modules/festival.c (module_speak): If socket is closed, open a new one.

	* src/modules/festival_client.c (festivalGetDataMulti): New
	parameters stop_flag and stop_by_close.
	(socket_receive_file_to_buf2): Variant on
	socket_receive_file_to_buff capable of stopping in the middle.

	* src/modules/festival.c: festival_pid -> festival_child_pid

2004-05-31  Hynek Hanke  <hanke@brailcom.org>

	* configure.in: LIBTOOL_IS_A_FOOL workaround for -rpath by Marcelo Magallon

	* src/modules/Makefile.am (EXTRA_DIST): Don't include the festival-interface directory (obsolete).

	* Makefile.am (EXTRA_DIST): Only the .c and .h files from intl/

	* src/Makefile.am (EXTRA_DIST): A positive list of what should be included from cl/.

2004-05-30  Hynek Hanke  <hanke@brailcom.org>

	* ANNOUNCE: 0.4.1 release.

2004-05-29  Hynek Hanke  <hanke@brailcom.org>

	* 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@brailcom.org>

	* ANNOUNCE: Release 0.4.

	* FAQ: 16-bit Flite voice.

	* TODO: Index marking.

2004-05-26  Hynek Hanke  <hanke@brailcom.org>

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

2004-05-25  Hynek Hanke  <hanke@brailcom.org>

	* 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@brailcom.org>

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

2004-05-24  Hynek Hanke  <hanke@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* ltmain.sh: Removed.
	* build.sh: Copy the correct version of ltmain.sh to the source tree.

2004-05-20  Hynek Hanke  <hanke@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* INSTALL: Mention festival-interface instalation.

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

2003-10-29  Hynek Hanke  <hanke@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

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

2003-10-24  Hynek Hanke  <hanke@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

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

2003-10-09  Hynek Hanke  <hanke@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

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

2003-08-31  Hynek Hanke  <hanke@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

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

2003-07-21  Hynek Hanke  <hanke@brailcom.org>

	* 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@brailcom.org>

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

2003-07-18  Hynek Hanke  <hanke@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

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

2003-07-08  Hynek Hanke  <hanke@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

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

2003-07-05  Hynek Hanke  <hanke@brailcom.org>

	* 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@brailcom.org>
	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* Speech Deamon renamed to Speech Dispatcher.

2003-05-26  Hynek Hanke  <hanke@brailcom.org>

	* 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@brailcom.org>

	* src/server/speaking.c (speak): Don't include process message into mutex.

2003-05-21  Hynek Hanke  <hanke@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

    	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

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

2003-04-17	Hynek Hanke	<hanke@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* src/clients: Content moved to src/c/ ...

2003-04-15  Hynek Hanke  <hanke@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>
	* 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@brailcom.org>

	* 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@brailcom.org>

        * 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@brailcom.org>
    * 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@brailcom.org>
	* 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@brailcom.org>
	* 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@brailcom.org>
	* 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@brailcom.org>
    * 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@brailcom.org>
	* 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@brailcom.org>

	* 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@brailcom.org>

	* 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@brailcom.org>
	* Added copyright notices to each file, better comments.
	* doc/: Switched to Texinfo.

11.1.2003	Hynek Hanke <hanke@brailcom.org>

	* /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@brailcom.org>

	* /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@brailcom.org>

	* /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@brailcom.org>

	* Renamed back to Speech Deamon

2.11.2002	Hynek Hanke	<hanke@brailcom.org>

	* 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@brailcom.org>
	* /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@brailcom.org>
	* /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.