TTS Clock for Empeg r7
http://www.zabaware.com/empeg/ttsclock.zip
by Robert Medeksza
medeksza@zabaware.com
TTS Clock is a simple bash script for the Empeg Rio Car that will speak out loud
the weekday, month, day, and time using prerecorded files a few seconds
after ignition. Click here
to here a sample of it speaking in MP3. To install it, simply follow these steps:
- First make sure that you have the developer version of the empeg player
software version 2.00
- Next make sure hijack 320 or higher is installed on your empeg. Hijack and instructions
for installing it are at
http://empeg-hijack.sourceforge.net/
- Download the TTS Clock program from
http://www.zabaware.com/empeg/ttsclock.zip
- Unzip all the files in this archive onto a folder on your PC.
- Open a Command Prompt
- CD into the folder where you unzipped this archive
- Type the following command:
ftp -s:ttsclock.ftp [empeg]
(where [empeg] is the hostname or IP address of your empeg)
- Next you will need to edit your config.ini file. Instructions on how to
edit config.ini can be found
here. Add the following line to the [hijack] section of your config.ini:
;@EXEC_ONCE /drive0/var/ttsclock
Time zones:
The empeg player app uses its own time zone settings separate from the kernel.
If you use the player's time zone settings and have set the time zone to
anything other then UTC or Universal then you need to use a command line option
with the TTS Clock to tell it what time zone to use. The command line is -t#
where # is a number (can be negative) that should be added to the universal time
to get your time zone. For example, if you live on the East coast of the US the
time is -5 hours off. The config.ini line for that should be:
;@EXEC_ONCE /drive0/var/ttsclock -t-5
West coast of the US would be:
;@EXEC_ONCE /drive0/var/ttsclock -t-8
Germany would be:
;@EXEC_ONCE /drive0/var/ttsclock -t1
The empeg player app will automatically adapt for day light savings time
changes. Unfortunately, the TTS Clock does not and will require you to edit the
config.ini during time changes. If you wish to avoid this, you can change the
player app to use Universal time and forget about this command line option.
Changes in r7
Fixed bug in timezone command line argument where it gave the time of the selected timezone, but continued to give the date of the UTC timezone
Changes in r6
- Redesigned to work with hijack's EXEC_ONCE instead of preinit
- Mounting code removed as hijack does not require this
- Added a command line option to control timezones
Changes in r5
- fixed bug so that it is able to say date between 20 and 30
- created automatic installation script
Changes in r4
- Fixed bug with 12 AM and 12 PM not working correctly
- Instead of saying "Welcome" it now says "Good Morning", "Good
Afternoon", or "Good Evening" depending on the time
Changes in r3
- Fixed bug with month, day, hour, or minute being the value of 8 or 9
- Now says AM/PM after time
- Added mounting code to B10tts
Changes in r2
- Renamed M10tts to B10tts so that preinit waits until it finishes
speaking before launching the player
- Fixed bug when minutes is less then 10
- Fixed bug with date command not working
- Made the "o" sound in o'clock and times like :02 sound better
- Made the "6" sound better