Skip to content

Latest commit

 

History

History
30 lines (16 loc) · 1.43 KB

File metadata and controls

30 lines (16 loc) · 1.43 KB

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