Author |
|
judetf Senior Member
Joined: January 23 2008
Online Status: Offline Posts: 234
|
Posted: February 21 2008 at 21:22 | IP Logged
|
|
|
In playing with TonyNo's weather macro, I am trying to incorporate TTS to speak the temperature.
When I add a TTS line to the macro and have it speak the temperature global variable after it's been set, it says:
"twenty two point two degrees" (I add the word "degrees")
But when I leave TTS out of the macro and instead build a trigger and use a formula to run the weather macro and then use ph_tts in the trigger to read the same variable, it says:
"twenty two dot two degrees"
It is changing from "point" to "dot" for the decimal point all by itself.
Any ideas and ways to control? I know I could programmatically change the decimal point to the word "point" but that's... inelegant. Besides, I'm curious as to why it works differently depending on where/how called.
Thanks!
jtf
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: February 22 2008 at 11:45 | IP Logged
|
|
|
Try using 2 ph_tts
ph_tts( ph_getglobal_s("curtemp")) + ph_tts("degrees")
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
judetf Senior Member
Joined: January 23 2008
Online Status: Offline Posts: 234
|
Posted: February 22 2008 at 12:20 | IP Logged
|
|
|
Hmm, that "fixes" it. It throws a break into the continuity of the TTS, but it works. Thanks!
|
Back to Top |
|
|