A reference integration between Teler and Deepgram, based on media streaming over WebSockets.
Teler is a programmable voice API by FreJun. It handles carriers, phone numbers, and real-time audio streaming so you can connect AI models directly to phone calls. → frejun.ai
This project is a reference implementation to bridge Teler and Deepgram. It enables real-time media streaming over WebSockets, facilitating live audio interactions.
- Real-time streaming of media via WebSockets
- Bi-directional communication between Teler client and Deepgram
- Sample structure for deployment (Docker, environment variables)
- Basic error handling and connection management
Ensure you have the following installed / available:
- Docker
- Valid API credentials / access:
- Teler account / API key / endpoints (frejun account)
- Deepgram API access
-
Clone and configure:
git clone https://github.com/frejun-tech/teler-deepgram-bridge.git cd teler-deepgram-bridge cp .env.example .env # Edit .env with your actual values
-
Run with Docker:
docker compose up -d --build
| Variable | Description | Default |
|---|---|---|
Deepgram_API_KEY |
Your Deepgram API key | Required |
TELER_API_KEY |
Your Teler API key | Required |
NGROK_AUTHTOKEN |
Your ngrok auth token | Required |
GET /- Health check with server domainGET /health- Service statusGET /ngrok-status- Current ngrok status and URLPOST /api/v1/calls/initiate-call- Start a new call with dynamic phone numbersPOST /api/v1/calls/flow- Get call flow configurationWebSocket /api/v1/calls/media-stream- Audio streaming between teler and deepgramPOST /api/v1/webhooks/receiver- Teler → Deepgram webhook receiver
curl -X POST "http://localhost:8000/api/v1/calls/initiate-call" \
-H "Content-Type: application/json" \
-d '{
"from_number": "+1234567890",
"to_number": "+0987654321"
}'