- Create virtual environment:
python3 -m venv venv - Activate virtual environment:
source venv/bin/activate
- Create
.envfile in the root directory - Add the following environment variables to
.env:ELEVEN_LABS=your_key_here GEMINI_API_KEY=your_key_here HOST=0.0.0.0 PORT=8000 ESP32_SERVER_PORT=8001 - Install dependencies:
pip install -r requirements.txt - Start the server:
python3 -m uvicorn server:app --reload
- Install dependencies:
npm install - Start development server:
npm run dev
Create a .env file in the root directory with the following keys:
| Variable | Description |
|---|---|
ELEVEN_LABS |
Eleven Labs API key |
GEMINI_API_KEY |
Google Gemini API key |
HOST |
Backend host (default: 0.0.0.0) |
PORT |
Backend port (default: 8000) |
ESP32_SERVER_PORT |
ESP32 server port (default: 8001) |
Start both the backend and frontend servers:
- Backend:
python3 -m uvicorn server:app --reload(from root) - Frontend:
npm run dev(from frontend directory)
The application will be available at http://localhost:5173 (or the port specified by your frontend).