| ECS-L Home Automation and Security Archives |
| Subject: From: Date: | RE: [ECS] TTS of weather A.J. Griglak Sat, 12 Feb 2000 12:20:12 -0500 |
Every other line was blank... Maybe it's a by-product of the HTML formatting. I also parse out a team report for the N.J. Devils, and it, also come out 'double spaced' For example: ----snip---- The Devils' unbeaten streak against the archrival New York Rangers reached 19 games following Wednesday's 4-1 victory. New Jersey is 13-0-6 against the Rangers since January 12, 1997. ----snip--- That was taken directly from the output of EDM by cut and paste. The TTS will pause at a blank line, but won't pause if there isn't a blank in between - i.e. the "End of Line" won't cause a pause. I tried playing with the CRLF command listed in the edm.hlp file, but it kept giving an error message: "Bad op-code" Supposedly this command will toggle between saving the file with a <CR> and a <LF> at the end of each line. But, as I said before, it works close enough for me! -=A.J. -----Original Message----- From: Mark Gilmore [mailto:omnip@usit.net] Sent: Saturday, February 12, 2000 11:23 AM To: ecs-list@netbloc.com Subject: Re: [ECS] TTS of weather I don't know what a "double-spaced format" is, but EDM saves files in straight ASCII text (no "special" formatting of any kind). -- Mark Gilmore Omnipotence (ECS home automation software) http://www.usit.com/omnip 423-745-0026 A.J. Griglak wrote: > > 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