In another topic an idea was mentioned for a user to speak to the robot, the text sent to Chatterbot and the response sent back... So I took it upon myself to make such a script...
The first problem is chatterbot itself, there is no user control and for the advanced features you need to pay. Budget is a huge thing to me so paying for anything I don't already have is a big no no.
But, I had used Pandoras Bot in the past and it offers everything needed for free. It's really intelligent in how it works and very trainable either online through the control panel or by just talking to the robot.
i.e. if you start talking you can say "my name is Rich" and it will remember your name. Or the same for age, favourite things etc.
Anyway, it's more of a project/work in progress than a script at this point but not something for the showcase so something for the scripting section.
So far, there are problems to overcome.
1) Pandora Bot's API uses XML, EZ-Script can't parse it correctly. In this case all it just needs to set $response to be whatever is between the and xml tags.
2) WaitForSpeech needs a phrase list and (unless I missed it) can't wait for dictation.
A little bit of playing around and I've managed to write (well, modify) a PHP parser for the API and can use HTTPGet to send the user speech to the API and save the response as a variable to be spoken by EZ-Script.
Currently testing with a small phrase list of;
Who are you
What is your name
How old are you
The script is sending off the recognised phrases ($input) and the parser is working, sending the response back and keeping it in variable ($response)
The script then says the text with Say($response) and the robot speaks.
Now come a few new issues...
3) The WaitForSpeech is picking up the robot speaking
4) WaitForSpeech is waiting for the phrase to finish and match, if it doesn't it times out. It seems to always want to include the part the robot said (or acts that way), for instance if it responds to "hello" with "hi there" it will hear itself, if then you say "how old are you" it thinks you have said "hi there how old are you" and doesn't match so times out.
I've avoided the timeout by setting it short and looping but this means the user has only a couple of seconds to say what they want to say or it'll restart.
If I don't loop it around it takes "timeout" as the phrase and the robot responds to that.
What I need to find out is if EZ-Script can be set to wait until speech finished, rather than putting a Sleep(2000) to wait a couple of seconds.
Also, is it possible to use SAPI's dictation mode to set a variable as anything heard not just from a set list of phrases?
And, if it's possible to reset the waitforspeech after say a second of silence, rather than timeout and restart even if it is "hearing" something.
Also, can an XML parser be added like the RSS one? It's extremely similar in construction so sounds simple but without knowing how the RSS one works in ARC I really have no clue.
I guess those last few questions are really aimed at @DJ
This may all come to nothing and be one of those many failed projects I've started, it may be something that just isn't really possible with the software but it could be an awesome addition to the AI... whatever it is, it's going to be fun