Skip to content

About

Exotel Sample and production-oriented bridges that connect Exotel AgentStream (Voice Streaming -bidirectional WebSocket audio) to Voice AI providers.

Topics

Resources

Stars

15 stars

Watchers

0 watching

Forks

Latest commit

 

History

36 Commits

Folders and files

Repository files navigation

Agent-Stream — Exotel Voice AI integrations

Sample and production-oriented bridges that connect Exotel AgentStream (bidirectional WebSocket audio) to Voice AI providers. Place outbound calls with the Connect Voice AI API.

Choose a provider

Provider Path Language Best for
OpenAI Realtime integrations/openai-realtime Python Speech-to-speech realtime
ElevenLabs integrations/elevenlabs Python Conversational AI + ambience
Gemini Live integrations/gemini-live Node.js Google Gemini Live
Sarvam integrations/sarvam Python Indian languages (STT/TTS)
Pipecat integrations/pipecat Python Pluggable STT → LLM → TTS (ExotelFrameSerializer)
Dograh integrations/dograh Python Drop Exotel telephony into Dograh (platform wiring, not an AI vendor)
Agent recipes integrations/agents Python Mix-and-match S2S + STT/LLM/TTS stacks on AgentStream

Agent recipe matrix (Exotel AgentStream)

Full picker: integrations/agents/README.md

Type Examples
Speech-to-speech GPT Realtime, Gemini Live, Gemini Live + Pipecat, Amazon Nova Sonic + Pipecat, Grok Voice, Cartesia Line
Pipelines Deepgram / AssemblyAI / Sarvam / Speechmatics × GPT or Gemini × Cartesia / ElevenLabs / Grok TTS / OpenAI TTS

Enterprise LLM hosting: the GPT pipelines can call Azure OpenAI and the Gemini pipelines Gemini on Vertex AI. See Azure OpenAI and Gemini on Vertex AI.

Quick start (OpenAI — still works from repo root)

python3 -m venv venv && source venv/bin/activate
pip install -r requirements.txt
cp env.example .env   # set OPENAI_API_KEY
python main.py        # shim → integrations/openai-realtime

Canonical OpenAI package: integrations/openai-realtime/.

Test with Connect Voice AI

  1. Start a bridge and expose it (ngrok http <port> → wss://…).
  2. Configure Exotel credentials (shared/env.exotel.example).
  3. Place a call:
python shared/place_connect_call.py \
  --to +91XXXXXXXXXX \
  --stream-url "wss://YOUR_HOST/?sample-rate=8000"

Details: docs/CONNECT_VOICE_AI.md · WSS protocol: docs/AGENTSTREAM_WSS_PROTOCOL.md

Layout

shared/                 # place_connect_call.py + Exotel env example
docs/                   # Connect API + WSS protocol
integrations/<provider>/  # self-contained bridge + README + deps
integrations/agents/      # Voice AI stack recipes (S2S + STT/LLM/TTS)
ci/ + .github/workflows/  # pull request checks

Prerequisites

  • Python 3.10+ (CI uses 3.12; on 3.13+ the recipes' requirements.txt installs audioop-lts), and Node 18+ for the Node.js Gemini Live bridge
  • Exotel account with Voicebot / Connect Voice AI enabled
  • Provider API keys for the integration you run

Tests and pull request checks

  • Offline tests, no network or keys: pip install pytest httpx fastapi loguru python-dotenv, then python -m pytest integrations/agents/_shared/tests -q from the repo root.
  • Nova Sonic recipe offline test: cd integrations/agents/nova-sonic-pipecat && pip install -r requirements.txt && python test_offline.py.
  • Every pull request runs PR checks on the files it changes: merge-conflict markers, JSON / Python / shell syntax, and Python lint errors fail the check; the repo's tests are report only. A branch created before these checks existed needs main merged in first.
  • Adding a recipe: see integrations/agents/CONTRIBUTING.md.

License

MIT — see LICENSE.

About

Exotel Sample and production-oriented bridges that connect Exotel AgentStream (Voice Streaming -bidirectional WebSocket audio) to Voice AI providers.

Topics

Resources

Stars

15 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages