/Chatbot

Chatbot is an open-source Python-based conversational agent designed to engage in text-based interactions and perform various tasks. Harnessing the power of artificial intelligence, this bot offers customizable features for text-to-speech, speech-to-text, and AI-based conversations.

Primary LanguagePython

Chatbot

AI Based Chatbot Made on Python Completely Opensource

Requirements

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

Installation

  1. Clone and navigate to chatbot directory.

    git clone https://github.com/Neeraj-x0/Chatbot
    cd Chatbot
  2. Install the required packages.

    pip install -r requirements.txt
  3. Run the Bot.

    python main.py
  4. You're done and let's voicechat with your bot via Commandline.

Using Pre-Built Modules for Your Project

  • Text-to-Speech

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
  • AI Response

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

Using Your Own Customizable 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

Author

Neeraj

Thanks To: