Uses OpenAI Whisper to transcribe audio from spoken input. Working as of February 10th 2024.
Replace client = OpenAI()' with 'client = OpenAI(api_key="YOUR_API_KEY")
or
Go to Control Panel > Edit the system environment variable, and add an OPENAI_API_KEY
pip install numpy pyaudio wave openai pygame
Execute the main script
python GPTVoiceAssistant2024.py
Talk into your microphone and speak your heart out with the bot.
Feel free to fork, improve, and submit pull requests. If you're considering significant changes or additions, please start by opening an issue.
Huge shoutout to:
- KoljaB On GitHub for being amazing at what he does and inspiring me to create this
- OpenAI for pioneering with the GPT-4 model.