FS#11541 - Add Voice Announcement of Summary Info to WPS hotkey
This patch adds an additional menu option to the list of WPS hotkey choices, "Announce Information". This voices basic information about the player, currently playing file and current tracklist.
This feature reads a simple definition with a single line of no more than 20 characters from the file "announce.cfg" in the .rockbox directory.
This definition consists of a string of single character tokens, each of which announces a particular canned piece of information.
The tokens are:
A - current time
B - elapsed time and total length of the current track
C - current track number and total tracks in playlist
D - battery level as a percentage
E - battery remaining in hours and minutes
F - sleep timer remaining in minutes
If more than one token is specified, more than one piece of information is announced, so:
would announce the time followed by elapsed time and track length
Multiple announcements may be bound to the hotkey by separating one or more groups of tokens with a ":"
In this example, the first time the hotkey is pressed, the time is announced. If it is pressed again within 10 seconds, the battery level and sleep timer are announced and so on.
A space between tokens adds a short pause to the announcement.
If no announce.cfg file is present, the time is announced by default.
This task depends upon