|
ECS-L Home Automation and Security Archives |
learn more
| view messages for this
month | NetBloc® | terms of use | search
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects
Subject: From: Date: | RE: [ECS] TTS of weather Kevin Keast Sat, 12 Feb 2000 12:02:29 -0500 |
Hi A.J.
I am glad you were able to figure it out! That's great! I was messing with
the g: command but gave up. Thanks to you too!
Kevin
-----Original Message-----
From: A.J. Griglak [mailto:ajgriglak@iname.com]
Sent: Saturday, February 12, 2000 11:01 AM
To: ecs-list@netbloc.com
Subject: [ECS] TTS of weather
Well, after about an hour and a half of tweaking, I am able to get the
reading of the weather report close to perfect. Many thanks to Kevin Keast
who sent me his script for parsing out the weather info, which most of this
is based on.
I also went into the Lexicon for the TTS item and changed the following:
wind - winned
winds - winneds
pop - percent of precipitation
est - eastern standard time
mon - monday
tue - tuesday
wed - wensday (pronunciation, not spelling ;-)
thu - thursday
fri - friday
sat - saturday
I didn't put one in for sun, incase the weather report says something like
'increasing sun'
I figured out that the pause at the end of the lines was not caused by the
EOL itself, but because EDM saves the text file in a double-spaced format.
I came up with the lengthy solution which you'll see below of g:3 / d g:4 /
d, etc. I'm sure that there's a shorter way to do this, but frankly, I got
tired of reading the edm.hlp and trying to decipher it!! This way works, so
it's good enough for me. The af command appends a closing sentence for
"Hank" to read: "This has been Hank with your local weather repot." ;-)
-=A.J.
EDM Script:
bell
r wpdl.htm
f MIDDLESEX
d-
d
g:1
d3
f =
d+
CA/ ... ,
c/.' ' ..
c/ .
g:2
d
g:3
d
g:4
d
g:5
d
g:6
d
g:7
d
g:8
d
g:9
d
g:10
d
g:11
d
g:12
d
g:13
d
g:14
d
g:15
d
g:16
d
b
af wxend.txt
w wxtemp.txt
q
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects