A Chatbot to Help you with Grammar Skills like Parts of Speech, Name Entities, Classification, Relations and Sentiment.
- Download the code
git clone https://github.com/aniketdhole07/grammaxpert-chatbot
- Change to Code Directory:
cd grammaxpert-chatbot
- Download Dependencies
sudo apt-get install python3-pyaudio portaudio19-dev espeak libespeak1 alsa-utils
- Install Python Packages
pip3 install -r requirements.txt
- Modify the API Authentication in
main.py
by your Email ID and Password of Expert.ai Account
os.environ["EAI_USERNAME"] = 'YOUR_EMAIL'
os.environ["EAI_PASSWORD"] = 'YOUR_PASSWORD'
- Run the Program:
python3 main.py
My Environment Settings:
- Python : Python 3.8.5 (default, Aug 2 2020, 15:09:07)
- Operating System: Kali GNU/Linux Rolling 2019.1
In todays advanced world, the need of independent living is recognized in case of visually impaired students who are facing main problem of social restrictiveness. Due to lack of necessary information in the surrounding environment visually impaired people face problems and are at disadvantage since visual information is what they lack the most. With the help of my project, the visually impaired can be supported. The idea is implemented on voice assistant which is capable to assist using voice command to learn Grammar topics like Parts of Speech, Name Entities, Classification and many more. It may be the effective way blind people will learn new things.
It takes Voice Input from User and Asks him which Operation to apply on his spoken text ,that data is analyzed using Expert.AI's Natural Language Processing API , which is platform to add language intelligence to our applications. The Process works like this:
- Initially the User is asked for Input Sentence using Speech
- The Speech to text Algorithm converts it into text.
- Then the user is asked to choose between Grammar Operations like Parts of Speech, Name Entities,etc.
- The Input is converted into Text and Checked using Similarity Algorithm if it is valid operation.
- That Operation is made active and API is called using Input Text taken initially
- The Output of API is formatted and Converted to Speech.
- Then Finally user is asked to Choose to Continue, Start over or Exit and this process continues.
This Block Diagram of Project
The API is called using Expert.ai 's Python Client. I followed the Authentication steps Documentation and it worked well. The instructions are well maintained by expert.ai community.
For this I have used Python's package called pyttsx3 .It works according to code flow and user input.
I have used the python packageSpeech_Recognition ,and connected it with my laptop's Microphone. It works very well than any other STT API and is much fast.
As User's Speech input may not match the required operations perfectly so I have used a Text Similarity Algorithm named add code