This bot utilises the ChatGPT API to create a chatbot.
- Create a
.envfile containing the OpenAI API key - Run
pip3 install -r requirements.txtto install the required libraries - Run
sudo apt update && sudo apt install espeak ffmpeg libespeak1to install espeak, ffmpeg and libespeak1 for the pyttsx3 library - Run
sudo apt install python3-pyaudiofollowed bypip3 install pyaudioto install PyAudio for the Speech Recognition library - Run
sudo apt-get install flacto install the FLAC encoder required to encode the audio data to send to the Speech Recognition API