How To Make Robots Talk — Lesson 1: The “Super Precise” Engine
The solution to make robots talk is to repeat stock dialogs (under application of some adaptations and modifications).
Funny part about that is processing the input. After all, you want new dialogs to emerge out of some old dialogs you already have in the database —preferably, automatically.
Let’s get started! We need a script (the “old” or “input” dialog); and some kind of engine (program) to provide an interactive interface for talking to the robot.
So here’s our little input dialog, uploaded to our general database of stuff:
Bot: Wanna test? Type "test"
As a first move, we’ll make a simple dialog engine that just repeats what was trained — word by word, sign by sign.
With this simple engine, the new dialog will end up exactly the same as the old dialog — If you do your part and play to the script. If you enter anything unknown instead, the bot simply responds with “????”.
This little etude — sadly — requires programming to complete. Which is the step we want to eliminate from our process.
But: Thankfully we have a very efficient programming language called JavaX.
So I set out to write the “super precise” engine in JavaX, and lo and behold: The resulting program is only 70 lines long.
(Compiled from JavaX to Java, the program grows to 1751 lines.)
You can test “Super Precise” on your machine with this jar file.
And here’s what it all looks like in action:
How would you adapt this for your own script you ask? You’d need a login for the snippets database, upload your own dialog and finally duplicate my engine script.
Too complicated? No problem. I’ll make a robot for you for free. It’s my business model!
Till next time!