Skip to content

jancarauma/chatgpt-python-voice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT3 Python Voice Chat

Small voice chat to talk with chatGPT using python.

Screenshot main menu

Features

  • ChatGPT3 API
  • Auto Translate
  • Speach to Text

Install Dependencies

Linux (Ubuntu)

Install pip in the Python environment

python -m ensurepip --upgrade

Then,

pip install -r openai re openai speech_recognition pyttsx3

Windows (10)

Install pip in the Python environment

py -m ensurepip --upgrade

Then,

pip install -r openai re openai speech_recognition pyttsx3

Get an OpenAI API Key

Register at "openai.com" and generate your api key.

Compile and Run

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.

Linux (Ubuntu)

python chatVoice.py

Windows (10)

python chatVoice.py

Talk to ChatGPT

  • Talk to chatgpt when the message "Listening" appears, say something and start your sentence with the word "Computer". Example: Computer, how are you?

Dependencies

  • openai
  • speech_recognition
  • pyttsx3

About

Small voice chat to talk with chatGPT using python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages