Python-based chatbot using chatGPT API, supporting both text-based and voice-based chatting.
👉🏻 --- Youtube
👉🏻 --- Zhihu
👉🏻 --- Bilibili
Download the least version from the release page, please STAR ⭐️ this repo if you like it.
- MacOS
- Windows
👉🏻 Note:
-
If there is no sound, you may need to install the FLAC command line tool and add it to the system path.
-
For MacOS users:
-
If you cannot open the
Super_Assistant.app
file, you may need to do the following steps:- After downloading the
Super_Assistant.app.zip
file, unzip it withUnarchiver
. Note: Please do not use theArchive Utility
, that will cause theSuper_Assistant.app
file to be damaged. - The first time you run the
Super_Assistant.app
file, you may see the following error message"Super_Assistant" cannot be opened
. - Go to Terminal and run the following command:
xattr -d com.apple.quarantine /path/to/Super_Assistant.app
- Then you can run the
Super_Assistant.app
. - If you get the error message
FLAC conversion utility not available - consider installing the FLAC command line application by running apt-get install flac or your operating system's equivalent
when you are recording, you may download and useSuper_Assistant
Unix executable file instead.
- After downloading the
-
If you cannot open the
Super_Assistant
Unix executable file, you may need to do the following steps:- The first time you run the
Super_Assistant
Unix executable file, you may see the following error message"Super_Assistant" cannot be opened because it is from an unidentified developer
. Go toSystem Preferences -> Security & Privacy -> General -> Open Anyway
. After that you may see the following error messagemacOS cannot verify the developer of “Super_Assistant”. Are you sure you want to open it?
, please clickCancel
. - Then go to Terminal and run the following command:
chmod +x /path/to/Super_Assistant
- Then you can run the
Super_Assistant
Unix executable file.
- The first time you run the
-
-
Py_chatGPT/
-
Py_chatGPT_text.py
- Communicate with the chatbot by typing.
- Can save/load the chat history.
-
Py_chatGPT_voice_auto/mannual.py
- Real-time communication with the chatbot by voice.
- Can save/load the chat history.
- Based on the Google Text-to-Speech API and the Whisper Speech-to-Text API.
Py_chatGPT_voice_auto.py
will automatically start and stop the recording based on the voice activity.Py_chatGPT_voice_manual.py
need user to manually start and stop the recording.
-
openai_api_key.txt
- The chatGPT API key.
- You can get your own chatGPT API key from here.
-
requirements.txt
- The dependencies of the software.
-
Py_chatGPT.md
- Instructions for running the source code.
-
-
Super_Assistant/
- Super_Assistant.py
- The main program of the software.
- The GUI is based on the PyQt5 library.
- The voice recognition is based on the Google Text-to-Speech and Speech-to-Text API.
- The chatbot is based on the chatGPT API.
- Super_Assitant_UI(_win).ui/py
- The UI files of the software and the converted python files for MacOS and Windows.
- The UI is based on the Qt Designer.
- Super_Assistant.md/spec
- The command line and the spec file for building the software using PyInstaller
- Super_Assistant.py