/turk-chat-pygame

Speech to Speech GPT chat system with OpenAI and ElevenLabs. Front end uses an async pygame implementation.

Primary LanguagePythonMIT LicenseMIT

turk-chat-pygame conversation agent

For the latest html/Flask version, please see https://github.com/KF-R/turk-chat


As written, it expects my_env.py in your home directory; its contents defining API keys as follows:

API_KEY_OPENAI = '<insert_your_OpenAI_API_key_here>'
API_KEY_ELEVENLABS = '<insert_your_ElevenLabs_API_key_here>'

This approach uses async pygame as a front end for an OpenAI/ElevenLabs speech-to-speech chat system.

Run converse.py to launch.

Requirements:

numpy
pygame
Requests
sounddevice
pydub
PyAudio
openai
openai whisper
elevenlabs