The pseudo artificial intelligence made in Javascript
Click here for a live demo (Note: Some functionalities might not work).
Diana started out as a hobby project for me, and has turned out quite well.
Diana uses
- Annyang - For it's speech recognition.
- Javascript Speech Synthesis API - For TTS conversion.
- Cleverbot API - For responding to queries it does not understand yet.
- WebcamJS - For taking images using the webcam.
- Chobi - For image manipulations (effects/filters, display, download etc.).
- And a bunch of small APIs and algorithms to achieve it's functionalities.
NOTE: Diana was never intended to be a fully fledged AI. It was more of a strict command following robot, made to test the complete power of Javascript.
Following are a list of some of the commands which diana responds to (new commands are added to the list regularly)
- hello/hi
- what is your name
- what is the time
- calculate {number1} {operation} {number2}
- play a song
- wake me up in {number} {hours/minutes/seconds} (displays timer)
- Close timer
- what is your name
- my name is {name} (saved in cookie for one session)
- what is my name
- search for {query} (not available in live demo. works in localhost)
- tell me a joke/I am bored
- go to sleep
- wake up (requires password, "mc4")
- translate {text} to {language} (currently only hindi and french are supported. Hindi has some known bugs which I am trying to fix)
- what is the weather of {place}
Apart from that, diana also has a memory which allows it to remember stuff we teach it. The current memory for diana can be viewed here