Speak The Time

Share and discuss your flows and ideas with other users.

Moderator: Martin

MagiciAndroid
Posts: 8
Joined: 12 Apr 2013 00:18

Speak The Time

Post by MagiciAndroid » 17 Apr 2013 13:20

Speak the time in full e.g. 4 o'clock; quarter to 5; 25 minutes to 6.

http://automagic4android.com/flow.php?i ... 820db6bc04

inReinbek
Posts: 95
Joined: 02 Feb 2013 22:04

Re: Speak The Time

Post by inReinbek » 17 Apr 2013 19:10

What a great idea !!!
I've taken it and translated into german.

http://automagic4android.com/flow.php?i ... 70203de2ed

LightTempler
Posts: 53
Joined: 17 Mar 2013 16:08

Re: Speak The Time

Post by LightTempler » 17 Apr 2013 20:54

Very cool! Thx for both solutions!

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Speak The Time

Post by MURTUMA » 20 Apr 2013 12:09

It says "zero four minutes past three". With my expertise I can't do any scripting but could some of you update the speech script so that it leaves the "zero" out of there?

That would be much more natural (if you can the machine voice like that).

MagiciAndroid
Posts: 8
Joined: 12 Apr 2013 00:18

Re: Speak The Time

Post by MagiciAndroid » 20 Apr 2013 13:59

I can't replicate the problem on my phone... the leading zero is suppressed. However, I think I may have discovered the problem. I was formatting the minutes as "mm" meaning that the zero is probably included and on some phones it must get read out. Try it again...

http://automagic4android.com/flow.php?i ... 1ce0c9996d

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Speak The Time

Post by MURTUMA » 20 Apr 2013 14:21

Your fix didn't actually fix it, but now that you explained it a little I found the problem. There two places, where you define minutes. You forgot to change the other.

This is now fully fixed and working. However, I take no credit of fixing this... It was all you. Thanks for your help! ;)

http://automagic4android.com/flow.php?i ... 5cede28453

EDIT: Yeah, like I said, I understand only very little of scripting bit now it just got way over my head. I didn't touch the flow I had problems with bit instead tried your fix as separate flow. However, now the problems are vanished. Something unexplainable its happening here and it's creepy.. :O

MagiciAndroid
Posts: 8
Joined: 12 Apr 2013 00:18

Re: Speak The Time

Post by MagiciAndroid » 20 Apr 2013 14:56

Glad to hear it is now working but I'm not sure what else you changed.

Pepoluz89
Posts: 3
Joined: 03 May 2013 13:50

Re: Speak The Time

Post by Pepoluz89 » 03 May 2013 23:00

DOn't know if my post fits here.

When in a a Speech OUT action, set Text to "The battery is {battery_percentage} percent", the phone says "The Battery is NULL percent ".
What is wrong ???

THKS

bobchernow
Posts: 56
Joined: 16 Mar 2013 14:10

Re: Speak The Time

Post by bobchernow » 04 May 2013 23:57

Have you previously used an action or condition that makes that variable available. Try a Battery level condition before the speak action.

Pepoluz89
Posts: 3
Joined: 03 May 2013 13:50

Re: Speak The Time

Post by Pepoluz89 » 05 May 2013 14:03

I had read in help documentation that variable {battery_percentage} is an internal variable, so i guess it doesn't need to be initiate, any way, for test propouse i add a script initiating it.

- SCRIPT: setvalue(BatNiv, {battery_percentage}) -

Then add a the Speech OUT action, set Text to "The battery is {BatNiv} percent", the phone says "The Battery is NULL percent "

did i initiate the variable well?, is there any way to assign a variable with {battery_percentage} value for use in a Speech OUT action ?

Thks for help.

Post Reply