This one is a little strange and I apologize if I seem a little dense in this matter, it's just that I've read the manual, checked every forum and even went to some old code that I wrote in another computer language.
I'm working on a personal home automation system and I've got it speaking, animating, reading the news and weather, turning on the lights in the house, and having a general conversation with me. The problem is that when it is reading the news, and let's say there are ten articles it runs through all the text through the last article while it's still speaking on the first.
So, I've tried several things and what I'm trying now seems correct and is in other languages but doesn't seem to work in PB. It looks like this:
I've put a msgbox statement before the loop and see that the status is indeed a two (2) which is what I expect while it is active. But it never seems to change once the loop starts. Getting it to wait until it is finished speaking before getting the next article is where my problem lies. If anyone has any ideas let me know please. This is my last major hurdle.
I'm using PB9.0 for Windows, running Vista Ultimate.
Thanks,
Randy
I'm working on a personal home automation system and I've got it speaking, animating, reading the news and weather, turning on the lights in the house, and having a general conversation with me. The problem is that when it is reading the news, and let's say there are ten articles it runs through all the text through the last article while it's still speaking on the first.
So, I've tried several things and what I'm trying now seems correct and is in other languages but doesn't seem to work in PB. It looks like this:
Code:
oRequest = AgentCharsEx.Speak(CharCmd$) do while oRequest.status > 0 sleep 100 loop
I'm using PB9.0 for Windows, running Vista Ultimate.
Thanks,
Randy
Comment