The abridged long version:
This all goes back to the pm discussion we had a couple of months ago, I’m just now getting back to it, life has been painfully busy, unfortunately not in a good way. Anyhow, things seem to be fairly back on track so I’m back to my little project.
I have been working the past few days to develop an efficient way to pull Pocketshpinx output (the text from the asr) into the main python program then send it out to Chatscript instead of input from the keyboard. It finally occurred to me why not send the Pocketsphinx output directly to Chatscript and then pipe the chatscript output to the Python main. Yes, I know, it’s obvious, they’re both C++, I shoulda thought of that in the first place. I’m down with the flu, my only defense your honor.
So where I’m at now is trying to find where the output (probably a printf as you said) from pocketsphinx_continuous sits, add something that would make it the stdin to Chatscript, modify Chatscript to accept that input instead of the keyboard, process that normally through Chatscript with the exception of a few direct commands such as “Move forward” which wold go to the Nav&Control; program and otherwise send the output to Festival speech sythesis (also in C++ unless I’m mistaken). Based on our previous discussion, I COULD make Chatscript the “main” program and everything else “plug-ins”. I believe you told me in our discussion that Chatscript would be suitable for that “to an extent” which means I would either have to learn to program the AI in C++ or build a wrapper for the python AI to plug in to Chatscript.
Obviously still in the early stages of the design. The idea and the psuedocode architecture is there, the physical platform is built and the arduino control board installed and programmed so the bot can run around the room, do facial recognition and not bump into things to much, but other than that has no brain, so now it’s just deciding on the best choice for the rest and working towards that end.
The first step in that process is tying pocketshinx_continuous to Chatscript and then finding the code lines for Chatscript’s output to send either to Festival or…. the AI?
The more I talk about this “out loud” the more it sounds like I need to learn C++ and just walk away from python. <sigh>
regards, Richard