summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2021-07-08 10:42:54 -0400
committerSolomon Peachy <pizza@shaftnet.org>2021-07-08 10:57:57 -0400
commita952cf52d5015e4389c12840aad6837c67dfed6a (patch)
tree3ccc27d828a7837b4d2a1ba8d827fccb8c85ff04
parent39b82afb45fb0072e65c07a0eb5392dce5d9439e (diff)
downloadrockbox-a952cf52d5015e4389c12840aad6837c67dfed6a.tar.gz
rockbox-a952cf52d5015e4389c12840aad6837c67dfed6a.zip
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
-rw-r--r--apps/talk.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/talk.c b/apps/talk.c
index 551d9672bc..827dd10c2a 100644
--- a/apps/talk.c
+++ b/apps/talk.c
@@ -1493,9 +1493,13 @@ void talk_time(const struct tm *tm, bool enqueue)
1493 else 1493 else
1494 { 1494 {
1495 /* Voice the time in 24 hour format */ 1495 /* Voice the time in 24 hour format */
1496 if(tm->tm_hour < 10)
1497 talk_id(VOICE_OH, true);
1496 talk_number(tm->tm_hour, enqueue); 1498 talk_number(tm->tm_hour, enqueue);
1497 if (tm->tm_min == 0) 1499 if (tm->tm_min == 0)
1498 talk_ids(true, VOICE_HUNDRED, VOICE_HOUR); 1500 {
1501 talk_ids(true, VOICE_HUNDRED, VOICE_HOURS);
1502 }
1499 else 1503 else
1500 { 1504 {
1501 /* Pronounce the leading 0 */ 1505 /* Pronounce the leading 0 */