AI Based Chatbot Made on Python Completely Opensource
Sl.No | Name | Description |
---|---|---|
1 . | Python =< 3.x.x | Python For Running the project |
2 . | Pyttsx3 | For Text-to-Speech |
3 . | speech_recognition | For Speech-to-Text |
4 . | Pip | For installing packages |
-
Clone and navigate to chatbot directory.
git clone https://github.com/Neeraj-x0/Chatbot cd Chatbot
-
Install the required packages.
pip install -r requirements.txt
-
Run the Bot.
python main.py
-
You're done and let's voicechat with your bot via Commandline.
from tts import * # You can Import Only 1 voice type if you want "talkm" for male voice and "talkf" for female
while True:
talkf('This will give an output in female sound')
talkm('This will give an output in male sound')
break
from chatbot import bot
text = "Hello , How are you ?"
print(bot(text)) #This will print the response from AI
print(bot("HI")) #This will print the response from AI
Do you know that you can train your AI bot with your own details,
yes you can Change the url of Api Response with yours Now
Find the URL HERE
- Read Wiki to Know How to get a new URL
- Natesh Bhat For Pyttsx3
- Brainshop Ai For AI Response