Small voice chat to talk with chatGPT using python.
- ChatGPT3 API
- Auto Translate
- Speach to Text
Install pip in the Python environment
python -m ensurepip --upgrade
Then,
pip install -r openai re openai speech_recognition pyttsx3
Install pip in the Python environment
py -m ensurepip --upgrade
Then,
pip install -r openai re openai speech_recognition pyttsx3
Register at "openai.com" and generate your api key.
Once you have the dependencies (see above) and the api key, download, unzip and navigate to this respository and change the openai api key in chatVoice.py (Line 16).
Then run the following commands in your terminal.
python chatVoice.py
python chatVoice.py
- Talk to chatgpt when the message "Listening" appears, say something and start your sentence with the word "Computer". Example: Computer, how are you?
- openai
- speech_recognition
- pyttsx3