
Hi guys.
I need a little help with an RSS feed script and hoping someone can point me in the right direction.
Question one.
Is there a way to have an RSS feed to be spoken through the EZB4 instead of through the PC's sound card as I haven't seen a "SpeakRSSEZB() script function?
Question 2.
I am looking for a way to insert something similar to a "Sleep()" function in-between each RSS feed in the script below with a 2 second gap between each feed read. Code:
SpeakRSS("http://feeds.skynews.com/feeds/rss/uk.xml",1)
SpeakRSS("http://feeds.skynews.com/feeds/rss/uk.xml",2)
SpeakRSS("http://feeds.skynews.com/feeds/rss/uk.xml",3)
SpeakRSS("http://feeds.skynews.com/feeds/rss/uk.xml",4)
The "Sleep() script function is not a viable option as the length of the feeds spoken change length from day to day (or hour to hour) so I need something like a "SayWait() but not sure what or where to put the correct function in to my script.
Many thanks.
Steve G.
Thanks.
The code for reworking the exe is in the notes section of the ez-robot job if you want to try your hand at making the change.
Anyway, no worries I know you're busy....
Cheers
Richard
That's fantastic David. It works like a charm :D. After my failed attemp I must admit it was a little over my head to achieve this (for now at least). I can't thank you enough for supplying this. Once I get Xmas out of the way I will look in to studying C# programming a bit more, but for now I have enough to do learning all what EZ Script can do and how to use it to try and fully get the most out of it before starting to learn a new language.
Anyway I really appreciate your help with this, and thank you once again.
Steve G.
here
The new exe can be downloaded from
here
You need to put this into a directory on c:\rssfeeds which you will need to create. I didn't take the time to build a setup package as I am sure this will change with time. I have only tested this with one RSS feed which is skynews' rss feed.
Let me know if you run into any issues.
Thanks
David
Also, if you get to where you can work with C#, you could replace words with phonetically spelled words as you find them. One that I have replaced is Winds with Wends. it sounds much nicer when the robot is speaking.
Check it out. I will check back tomorrow for any issues you have in using this.
@d.cochran... the new version works great.... thanks
check the path of the rssfeed.txt and see why the program can't find it....
If the app is running in task manager, kill it and then try again from the example ARC project.
If it's one of the ones from earlier, try removing the ,1 from the end of the url.
Steve.
I just updated the ARC project with rss feeds that should work for you.
The exe always writes to the same text file (c:\rssfeeds\rssfeed.txt). This allows you to only have to change the line in the script that looks like
Code:
You can copy the script text and paste it into a new script and then change this line. You could make this a parameter and then set it, and call a single script that would read in this variable to read whatever rss feed you wanted also.
I will also setup a couple of scripts that will do this in the ARC project.
I have a new version here for you. You will see a few new scripts.
ReadNews, ReadWeather and ReadTraffic, along with readRSS. The readRSS script is what calls the exe and does the actual work of reading the RSS feed.
The other 3 are what you would modify to call the readRSS script. They set some variables so that readRSS can work.
This is the ReadTraffic script.
Code:
This just makes it a bit easier to use and a bit easier to add new feeds as you need to. Download the EZ-B project again to see how its all used.
Your very welcome. I love adding features to ARC that haven't been put in yet. I am sure that DJ and team will put this in at some point, but this helps and can allow them to focus on something else for a bit.
I am looking for some assistance with this program. I cannot find the latest .exe file to use?
any news ?
or where can I get the old "rssGetter.exe" ?