Skip to content

Shantanugupta43/Speakify-ChatBot-using-OpenAI-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Speakify ChatBot using OpenAI API

Created a chatbot using OpenAI API where a user can ask different questions or have casual conversations with the bot using speech.

NOTE: No Neural Networks or Artificial Intelligence is used while coding the bot. It communicates all the responses from OpenAI Library.

Instructions to use the Bot

  • Import the code using git clone <repo-link> and navigate to the directory
  • Install all the dependencies using pip install <dependency-name> The dependencies used here are openai, speech_recognition, gtts and pygame.
  • Run the command python textbot.py to start the application
  • Sign up to OpenAI website and retrieve api key from here https://openai.com/api/ . After Signing up, click on the profile -> View API Keys -> Create new Secret Key

Packaging the bot into .exe file (Optional)

To package the bot into executable file-

  • Install PyInstaller using pip: pip install pyinstaller
  • Navigate to the directory where your Python file is located using the command prompt.
  • Run the following command: pyinstaller --onefile textbot.py
  • This will create a standalone executable file in the dist folder within the directory where your Python file is located.

Here is a video showcasing the functionality of this chatbot

VoiceAudio.GPT.API.Bot.Demonstration.mp4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages