Amazing-Python-Scripts icon indicating copy to clipboard operation
Amazing-Python-Scripts copied to clipboard

[GSSOC'23] Voice Assistant AI Bot: Empowering Conversations with OpenAI Integration

Open slayerrr12 opened this issue 2 years ago • 1 comments

Aim

The aim of the AI Bot project is to create a voice assistant that can understand user input, generate responses using the OpenAI API, and provide both textual and auditory feedback.

Details

The script will have the following features:

  1. Voice Input and Recognition: Users can interact with the AI Bot by speaking through a microphone. The script utilizes the speech_recognition library to record audio and convert it into text for further processing.

  2. OpenAI Integration: The project integrates with the OpenAI API to generate responses based on user input. The script sends the user's text as a prompt to the OpenAI API and receives a response, which is then displayed and spoken by the AI Bot.

  3. Text Display and Audio Output: The script includes a graphical user interface (GUI) created using tkinter. The responses generated by the AI Bot are displayed in a text box within the GUI, allowing users to read the responses. Additionally, the pyttsx3 library is used to convert the responses into audio, providing auditory feedback to the users.

  4. Conversation Logging: The script saves the conversation between the user and the bot in a text file named "conversation.txt". Each user input and the corresponding AI response are logged with a timestamp, allowing users to review the conversation history.

pls assign this to i have the work ready with me @avinashkranjan

slayerrr12 avatar May 27 '23 09:05 slayerrr12

Go Ahead @slayerrr12

avinashkranjan avatar May 29 '23 18:05 avinashkranjan