Speak The Time
Moderator: Martin
-
- Posts: 8
- Joined: 12 Apr 2013 00:18
Speak The Time
Speak the time in full e.g. 4 o'clock; quarter to 5; 25 minutes to 6.
http://automagic4android.com/flow.php?i ... 820db6bc04
http://automagic4android.com/flow.php?i ... 820db6bc04
Re: Speak The Time
What a great idea !!!
I've taken it and translated into german.
http://automagic4android.com/flow.php?i ... 70203de2ed
I've taken it and translated into german.
http://automagic4android.com/flow.php?i ... 70203de2ed
-
- Posts: 53
- Joined: 17 Mar 2013 16:08
Re: Speak The Time
Very cool! Thx for both solutions!
Re: Speak The Time
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).
That would be much more natural (if you can the machine voice like that).
-
- Posts: 8
- Joined: 12 Apr 2013 00:18
Re: Speak The Time
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
http://automagic4android.com/flow.php?i ... 1ce0c9996d
Re: Speak The Time
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
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
-
- Posts: 8
- Joined: 12 Apr 2013 00:18
Re: Speak The Time
Glad to hear it is now working but I'm not sure what else you changed.
Re: Speak The Time
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
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
-
- Posts: 56
- Joined: 16 Mar 2013 14:10
Re: Speak The Time
Have you previously used an action or condition that makes that variable available. Try a Battery level condition before the speak action.
Re: Speak The Time
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.
- 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.