1.3 KiB
1.3 KiB
News Chatbot Server
A FastAPI server that manages bot instances and provide endpoint for Pipecat client connections.
Endpoints
POST /connect- Pipecat client connection endpoint
Environment Variables
Copy env.example to .env and configure:
# Required API Keys
DAILY_API_KEY= # Your Daily API key
DEEPGRAM_API_KEY= # Your Deepgram API key
GOOGLE_API_KEY= # Your Google/Gemini API key
CARTESIA_API_KEY= # Your Cartesia API key
# Optional Configuration
DAILY_API_URL= # Optional: Daily API URL (defaults to https://api.daily.co/v1)
DAILY_SAMPLE_ROOM_URL= # Optional: Fixed room URL for development
HOST= # Optional: Host address (defaults to 0.0.0.0)
FAST_API_PORT= # Optional: Port number (defaults to 7860)
Running the Server
Set up and activate your virtual environment:
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
Install dependencies:
pip install -r requirements.txt
If you want to use the local version of pipecat in this repo rather than the last published version, also run:
pip install --editable "../../../[daily,deepgram,google,cartesia,openai,silero]"
Run the server:
python server.py