A voice chat interface that uses OpenAI's APIs for speech-to-text, language processing, and text-to-speech conversion.
Hold down the spacebar to talk with an AI assistant. Your voice will be:
- Transcribed to text
- Processed by GPT-4
- Converted back to speech
- Played through your speakers
The interface features an animated ASCII art display that changes colors based on the current state (standby, listening, processing, speaking).
- Clone the repository:
git clone https://github.com/infamous-flu/HAI-Template.git
cd HAI-Template
- Install dependencies:
pip install -r requirements.txt
- Create a
.env
file in the project root:
OPENAI_API_KEY=your_api_key_here
- Start the backend server in a terminal window:
python main.py
- Open a new terminal window and start the frontend server on port 3000
python -m http.server 3000
- Open your browser of choice and navigate to:
http://localhost:3000