This bot is based on the text-davinci-0031
model from OpenAI.
- To practice English speaking.
- Captures and recognizes audio (listening phase).
- Make an API request to OpenAI and get the response (processing phase).
- Create an audio file from the text (output phase).
- openai
- speech_recognition
- gtts
Also, you need to create an account on the OpenAI website, and you will get your API key.
Installing commands:
pip install openai
pip install SpeechRecognition
pip install gTTS
NB: You can vary the sleep time to adjust the conversation pace.