Simple Python wrapper for ChatGPT with speech modules (STT, TTS)
- recording: sounddevice
- transcribe: whisper
- chat: ChatGPT
- TTS: gTTS
- play audio: playsound
- Korean, English
(3/11/2023) I found pyaudio makes some issues with Apple M1 processor, so I replaced it with sounddevice package.
pip install -r requirement.txt
- Create key.py
- Write your openai key in key.py
key = "[Your Key]"
To chat via speech
python audio_chat.py
To chat via text
python chat.py