This is a speech assistant built using OpenAI API. It allows you to speak to the microphone and converts your speech into text. The text is sent to OpenAI ChatGPT API which generates a response. The response is then read out loud to you using Google Speech.
- Clone this repository.
- Install the required packages by running
pip install -r requirements.txt. ( or run init.sh in case you need libs too ) - Create an
.envfile and include your OpenAI API key like this:OPENAI_KEY=xxxxxxxxxxxxxxxxxxxxxxx - Run the
assistant.pyfile usingpython assistant.py.
- Speak clearly into the microphone when prompted.
- Wait for the response from the assistant.
That's it! You can start speaking to the assistant and it will respond accordingly.