• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Talking Clock issue/help

This may help:

Variable Set %MYTIME %TIME
Variable Split %MYTIME "."
Variable Set %MYAMPM "a m"
Variable Set %MYAMPM "p m" If %MYTIME1 > 11
Variable Subtract %MYTIME1 12 If %MYTIME1 > 12
Variable Add %MYTIME1 12 If %MYTIME1 = 0
Variable Set %MYTIME1 %MYTIME1 [Do Maths] (should eliminate any leading zeros)
Variable Set %MYTIME2 %MYTIME2 [Do Maths] (should eliminate any leading zeros)
Variable Set %MYTIME2 "o %MYTIME2" If %MYTIME2 < 10
Say %MYTIME1 %MYTIME2 %MYAMPM

Tested at 18:09 it said "six oh nine pee em"

NOTE: Edited from original post to address some overlooked issues.
Im very new to this and was curious how to get the talking clock to say when it is 30 min past the hour everytime like it does the hour using the setup you posted can you help ?
 
Thanks for the reply , I changed the settings and it worked except , at the 30 minute interval it said it was 7 oclock pm , I added the following say the time is %MYTIME1 thirty %MYAMPM . if %mytime2 = 30 and then it would say its 7 oclock pm , 2 seconds later it said its 7 30 pm any ideas ? Thanks again for the help .
 
Your task is exactly the same as in the original post? It sounds like something got messed up while inputting it.
Post the description of what you have put together, I'll try and spot the error.
Must not be in "beginners mode". Long press on the profile, menu (3 dots in corner), export, description (not XML)
 
Profile: TIME SPEAK (15)
Time: Every 30m
Enter: Anon (16)
A1: Variable Set [ Name:%MYTIME To:%TIME Do Maths:Off Append:Off ]
A2: Variable Split [ Name:%MYTIME Splitter:. Delete Base:Off ]
A3: Variable Set [ Name:%MYAMPM To:A M Do Maths:Off Append:Off ]
A4: Variable Set [ Name:%MYAMPM To:P M Do Maths:Off Append:Off ] If [ %MYTIME1 > 11 ]
A5: Variable Subtract [ Name:%MYTIME1 Value:12 ] If [ %MYTIME1 > 12 ]
A6: Variable Add [ Name:%MYTIME1 Value:12 Wrap Around:0 ] If [ %MYTIME1 = 0 ]
A7: Variable Set [ Name:%MYTIME1 To:%MYTIME1 Do Maths:On Append:Off ]
A8: Variable Set [ Name:%MYTIME2 To:0 %MYTIME2 Do Maths:Off Append:Off ] If [ %MYTIME2 < 10 ]
A9: Say [ Text:The Time is %MYTIME1 oh clock %MYAMPM Engine:Voice:com.svox.pico:eng-USA Stream:2 Pitch:5 Speed:5 Continue Task Immediately:Off ]
A10: Say [ Text:The Time is %MYTIME1 thirty %MYAMPM Engine:Voice:com.svox.pico:eng-USA Stream:3 Pitch:5 Speed:5 Continue Task Immediately:Off ] If [ %MYTIME2 = 30 ]
 
so I added a if %mytime2 = 00 to the a9 line and it seems to have fixed the issue thanks for the help . I was just overthinking the issue .
 
Back
Top Bottom