This project is a basic AI assistant that uses OpenAI's GPT-3 API and gTTS (Google Text-to-Speech) library to generate text and speech responses. The assistant is designed to answer questions and engage in conversation with the user.
- Python 3.x
- OpenAI API Key
- gTTS library (
pip install gTTS) - pydub library (
pip install pydub)
- Clone the repository.
- Replace
API KEY HEREin the code with your OpenAI API key. - Run the code using the following command:
python main.py. - Enter a question or type
exitto quit the program. - The AI assistant will generate a text response and read it out loud using gTTS.
If you want to contribute to this project, feel free to submit a pull request.
This project is licensed under the MIT License. Feel free to use it for your own projects.