Asked — Edited

Rss News

Hey guys, here is a script I have been working on. It reads the Rss News and after it is done with the first story it asks you if you want to continue. If you say "Yes" it will continue to the second story, and if you say "NO" it will end the script. I didn't know if this was posted already somewhere but I thought I would share it anyways . RSSNEWS.EZB:D


ARC Pro

Upgrade to ARC Pro

Become a Synthiam ARC Pro subscriber to unleash the power of easy and powerful robot programming

United Kingdom
#17  

Oh dear, how embarrassing blush. Serves me right for rushing when I type. Yes I meant Parentheses. Thanks for correcting me Alan. ;)

United Kingdom
#18  

They shouldn't be needed. The script runs fine (except for ending before an answer is spoken) without them in 2014.10.28.00 and adding them is not correct syntax unless this has been changed since 2014.10.28.00

As far as I know WaitForSpeech() isn't broken so I can only assume the premature ending before answering is due to running the script as a stand alone project and not having any speech recognition set up on this PC (or in the project).

United Kingdom
#19  

@Rich.

I do have speech recognition set up with a good headset and is constantly trained so it may be as you say, running it stand alone. I did also add a "yes" and "no" commands to the speech recognition control config along with "tell me the news".

So with running it stand alone possibly being the cause, can I ask what do you suggest I could run it with (another script or control)? I think the RSS script you came up with is pretty cool and would love to get it fully working.

Cheers.

P.s. @Rich. love the new avatar by the way :P.

#20  

Maybe your ARC or RSS is hearing itself? Mine does that occasionally if I have the volume too loud...

Possibly a moot point since you said you wear a headset.... but maybe something to consider...

United Kingdom
#21  

@Steve, it's a subtle hint at what I'm doing this month, I'll be reviving an old topic from around a year ago later this month;)

@Richard, I think it's more a case of it not waiting to hear anything as on a quick test mine went straight to finishing, since it ends with just an Else not ElseIf, anything other than hearing a "Yes" will end it, hence the addition of a few lines of code mentioned previously. I only tested it on one PC with no VR set up, no mic etc. so it's not hearing itself. I'll have another look later on my HTPC which is what I wrote it on and see if I can figure out the problem.

United Kingdom
#22  

@Rich.

That's Brilliant. Thanks for looking in to this for me. And a cant wait to see what you have in store later in the month. I really enjoy reading your content and you are a real asset to the community with your help and advice. Great stuff. :D.

@Richard.

Yeah that did cross my mind too, thinking that the headset mic was picking up something. But even with the laptop volume turned right down it had no effect. Good thinking though, and thanks. (Btw, your a great asset too). ;)

United Kingdom
#23  

@Rich.

I just had a go at trying the script you supplied in post #15, but it's still not waiting for a response after it says "Would you like me to continue?" and immediately says "An error has occurred" and get the following message...

User-inserted image

On thing about this script, it no longer needs the brackets needed now. Did you get a chance to see what could be causing the error?

United Kingdom
#24  

I haven't however the error message you posted says why there is an error.

This is going from memory back 18 months to a couple of years but the speech profile needs to be English US not English GB (as I assume you have it set, as do I on the PC I tested it on). Changing the speech profile to English US may solve it however it also means you need to re-train.