This patch is a response to http://sourceforge.net/projects/ialertu/forums/forum/704516/topic/3378663 which is a request for speech support to be added to iAlertU. I have changed the General preferences window by adding a checkbox to switch the feature on or off, as well as a text box to allow the user to input a string for iAlertU to read. By default, this feature is switched off, as I imagine it will be quite niche.
When the alarm is triggered, a timer is started that runs every 2 seconds. If it is not currently speaking, it will start doing so. If it is speaking, it will do nothing. When the alarm is disabled, the timer is stopped and speech synthesizer is instructed to stop speaking at the end of the current sentence.
This patch has been tested on Mac OS X 10.6.4, using XCode 3.2.3, and all appears to be working fine. Unfortunately, the layout change has only been made in the English version.