Asked
— Edited

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.
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.
A real quick-and-dirty method for scripting could be using the native XML type in PowerShell to get the RSS, pipe it to a file, then use one of the FileRead functions in EZB. That way, the XML can be manipulated into all kinds on wonderful ways quite easily.
The PowerShell code would be simple:
EZB script might be something like this:
Wrote that from memory though... so it could be a lot cleaner
Edit: I missed the "Say()" function from the EZB code
That would work, but it wont clean up the xml.
@d.cochran.
Well I downloaded Visual Studio and gave it a try, and failed miserably as I kept getting errors. Bearing in mind that I didn't really know what I was doing, I obviously did something wrong so I would like to take you up on your help request. Please find the RSS feeds below.
I will still keep playing around with it but it's like trying to find my way around in the dark at the moment, so any help you can offer will be most welcome.
Will do. I will have time to do this for you tonight. I will test them and will post these on http://cochranrobotics.com/EZ-Robot-Plugins
I will get to these at about 6:00 PM CST so that you should have these by tomorrow.
Fantastic. There's no rush so please take your time. And thank you very much.
I took lunch to get the first one going for you.
I published a sample project at Example
Try this one. I tested it and it works well for me. I did change the code in the exe to handle the feed. I placed the code for the exe in the notepad component in the project if anyone is interested.
It was compiled with .net framework 4.5. Instructions are in the EZ-Robot project. Let me know if you have any issues with this one and I will work on the others tonight.
Thanks David
d.cochran... works great... Is there anyway to change the feed location to something other than the UK?
You would have to modify the exe or build a new one using the code that is in the package. I will make a modification to this when I have time, that will allow you to pass a parameter with the rss feed into it, and it would then generate a file that is more generic. I will be publishing all 6 of these so that anyone can see how to modify the exe until I complete the addition.
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.