A speech recognition chat-bot with face recognition and some home automation skills using python and arduino ide software (arduino wifi module esp8266)
- anaconda software with installed spyder and installed vscode given in anaconda navigator(sufficient for chatbot, face recognition and task automation of pc)
- require only catbot.py program file
- all above requirements
- arduino wifi module(wemos d1 esp8266)
- relay
- arduino program file
- pip install https://pypi.python.org/packages/da/06/bd3e241c4eb0a662914b3b4875fc52dd176a9db0d4a2c915ac2ad8800e9e/dlib-19.7.0-cp36-cp36m- win_amd64.whl#md5=b7330a5b2d46420343fbed5df69e6a3f
- pip install opencv-contrib-python
- pip install pyttsx3
- pip install webbrowser
- pip install smtplib
- pip install SpeechRecognition
- pip install pyaudio
- pip install wikipedia
- pip install httplib2
- pip install cmake
- pip install face_recognition
some might be pre installed
after installing all the above just run the chatbot.py file from either spyder or anaconda prompt.The chatbot.py file could take some time in response as it is dependent on your network speed for speech to text cnversion and then again text to speed conversion.if want some quick response just run textchatbot.py, it takes text input rather than speech.
now for home automation purpose i am using wifi module(wemos d1 esp8266) whose program is given in arduino program file. just upload that program into your board and join the wire from D2 pin(in my case) to your relay input pin.This is all the hardware wiring part.
After all this just uncomment all the url code line like(#url_on = 'http://192.168.43.254/gpio/1', #url_off = 'http://192.168.43.254/gpio/0', #response, content = http.request(url_off, 'GET')) from your chatbot.py or textchatbot.py file and also don't forget to update ssid and password of the arduino program file as per common hotspot connecting both pc and wifi module.