Search the web
Sign In
New User? Sign Up
ms-speech · Microsoft Speech Recognition
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Problem with the weather macro   Message List  
Reply | Forward Message #5324 of 5467 |
I just started playing around with the speech macros today and can not get the
weather one to speak the weather. It speeks the "OK" but nothing after that (no
errors either).

It seems to be hung up on the xml_doc.load() call. The Url is OK.

I tried adding a try/catch to get additional info about the error but it is not
getting caught.

This is the segment of code from the macro:



<command>
<listenFor>Tell me the weather forecast for [CityName]</listenFor>
<speak>OK</speak>
<script language="JScript">
<![CDATA[
var xml_doc = new ActiveXObject("Microsoft.XMLDOM");
xml_doc.async = false;

xml_doc.load("http://www.rssweather.com/zipcode/{[Spoken.CityName.zipCode]}/rss.\
php");

var titles = xml_doc.getElementsByTagName("title");
var descriptions = xml_doc.getElementsByTagName("description");

Application.Speak(titles.item(2).text + " in {[*CityName]}");
Application.Speak(descriptions.item(2).text);
]]>
</script>
</command>

Ultimately, I'd like to do some home automation like having the PC control an IR
emitter to control my entertainment center.

Thanks,
Gary Davis




Mon Jun 22, 2009 7:16 pm

gadavis
Offline Offline
Send Email Send Email

Forward
Message #5324 of 5467 |
Expand Messages Author Sort by Date

I just started playing around with the speech macros today and can not get the weather one to speak the weather. It speeks the "OK" but nothing after that (no...
Gary Davis
gadavis
Offline Send Email
Jun 23, 2009
6:10 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help