This repository contains an AI Voice Assistant application built with Python and React.
This project is intended for personal use and demonstration purposes.
The repository is organized into two main folders:
backend/: Contains the Python FastAPI backend code.frontend/: Contains the React Next.js frontend code.
- Python 3.11 or higher
- Node.js 18.17 or higher
-
Navigate to the backend folder and install the Python dependencies. If you are using
pip, you can use the providedrequirements.txtfile.cd backend pip install -r requirements.txt -
Create a
.envfile in the backend folder and set the required environment variables:GROQ_API_KEY: Your Groq API key.DEEPGRAM_API_KEY: Your Deepgram API key.
-
Navigate to the frontend folder and install the JavaScript dependencies:
cd frontend npm install -
Create a
.envfile in the frontend folder with the required environment variable:NEXT_PUBLIC_WEBSOCKET_URL: The WebSocket URL to connect to the backend API.
To run the full-stack web application:
-
Start the backend server:
cd backend fastapi dev app/main.py -
In a separate terminal, start the frontend server:
cd frontend npm run dev -
Open your web browser and visit
http://localhost:3000to access the application.