chattybot is a python program that allows you to talk and listen to an LLM such as ChatGPT using voice via microphone.
audio capture - using speech recognition
speech to text - using OpenAI's Whisper or Google Cloud
LLM - using ChatGPT, streaming to reduce latency
text to speech - using pyttsx (offline) or google tts (online)
- audio capture can be a bit flaky depending on changes in background noise
brew install portaudio flac mpg123
pip install -r requirements.txt
Don't forget to set env var for OpenAI key:
export OPENAI_API_KEY=""