This project is a Python-based voice assistant that leverages the power of OpenAI's new GPT-3.5-Turbo model. The voice assistant can perform a wide range of tasks, from answering questions and providing information to playing music and setting reminders. Users can interact with the assistant using natural language, and the assistant will respond with spoken answers as well as printed text.
Before running the application, you will need to provide the following credentials:
-
A Google Cloud Platform account with the Text-to-Speech API enabled.
-
A service account key in JSON format, which you can create in the Google Cloud Console. You should place the JSON file in the project directory and name it "ServiceAccount.json".
-
An OpenAI API key, which you can obtain from the OpenAI website.
-
Clone the repository to your local machine.
-
Install the required Python packages by running pip install -r requirements.txt.
-
Add your own "ServiceAccount.json" file to the project directory.
-
Set the environment variable OPENAI_API_KEY to your OpenAI API key.
-
Run the application by running the command
python main.pyin your terminal. -
Initialize the conversation by providing a system message. E.g. "You are an intelligent assistant. Be concise in your answers."
-
Press the spacebar and begin talking into your microphone
I welcome contributions to this project! If you have any suggestions or would like to report a bug, please open an issue on the GitHub repository.
This project is licensed under the MIT License - see the LICENSE file for details.