Revision: Version 1.2
What is new?
* Error Detection
* HTML 5 Audio for Beeps (when enabled)
* Translation
Previously you could configure the settings to spanish ie: es-ES for the isoLangCode, but it would only read the text as is, for instance "The time is:" would still be "The Time is" just with a spanish reader.
The new version has had efforts made to cover 4 languages (Spanish, English, French, German) or en-US, en-GB, es-ES, fr-FR, de-DE.
* 4 Modes
Millitary (Zero 800 hours) 08:00
Basic (08:01) = eight: zero one
Friendly (08:45) = quarter to nine
Talking Clock = at the next stroke, the time sponsored by accurist will be 8, 45, precisely
Objects
Previously settings was just variables, now the JS file contains 2 main objects
* Config
* TTS
Settings can now be added to the page as follows
Code:
<script type="text/javascript" src="talkingClock.js"></script>
<script>
Config.testing = false;
Config.testTime = "00:00:00";
Config.refreshRate = 100;
Config.readOutFrequency = 1;
Config.repeatTimePerMinute = 4;
Config.volume = 100;
Config.readStyle = 2;
Config.prefix = "The time now is:";
Config.suffix = "";
Config.dayState = false;
Config.includeSeconds = true;
TTS.grabVoices = 10;
TTS.voiceToUse = 4;
TTS.isoLangCode = "de-DE";
TTS.enableBeeps = true;
TTS.beeper = TTS.beeperMP3Path;
</script>
Default values
Error detection
Time of the day:
ie: if the time is before mid-day the time will have "in the morning" appended to the reading
Bookmarks