forked from len0rd/rockbox
voice: Corrections to 24-hour time voicing:
* Voice leading "Oh" if hours is under 10. (ie "0900" is read as "oh nine hundred hours" Change-Id: I09853909221e0dd6da354f7e4bb9733ff5edca90
This commit is contained in:
parent
39b82afb45
commit
a952cf52d5
1 changed files with 5 additions and 1 deletions
|
@ -1493,9 +1493,13 @@ void talk_time(const struct tm *tm, bool enqueue)
|
|||
else
|
||||
{
|
||||
/* Voice the time in 24 hour format */
|
||||
if(tm->tm_hour < 10)
|
||||
talk_id(VOICE_OH, true);
|
||||
talk_number(tm->tm_hour, enqueue);
|
||||
if (tm->tm_min == 0)
|
||||
talk_ids(true, VOICE_HUNDRED, VOICE_HOUR);
|
||||
{
|
||||
talk_ids(true, VOICE_HUNDRED, VOICE_HOURS);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Pronounce the leading 0 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue