A simple Python-only tool to have a voice conversation with ChatGPT. This involves your voice recognition (voice-to-text) and converting ChatGPT response to voice (text-to-voice) using Google Assistant. Modifications and improvements to the code are welcome.
pip install -r requirements.txt
Note that installing pyaudio
using pip
may produce errors. In this case, please follow these stack overflow threads (Ubuntu, Mac).
Obtain your OpenAI API Key from OpenAI website. Then add this key to start_conversation.py
(line 17).
You may now start a voice conversation with ChatGPT.
python start_conversation.py