Turn any SIP call into a realtime AI voice agent (OpenAI Realtime / Deepgram/Gemini Live)
Why this project exists
Most voice agent frameworks:
This project:
SIP-to-AI — stream RTP audio from FreeSWITCH / OpenSIPS / Asterisk directly to end-to-end realtime voice models:
Simple passthrough bridge: SIP (G.711 μ-law @ 8kHz) ↔ AI voice models. OpenAI and Deepgram support native G.711, Gemini requires PCM16 resampling (8kHz ↔ 16kHz/24kHz).
Prerequisites: Python 3.12+, UV package manager
Pure Python, No External Dependencies: This project uses a pure Python asyncio implementation of SIP+RTP. No C libraries or compilation required!
Install dependencies:
git clone <repository-url>
cd sip-to-ai
uv venv && source .venv/bin/activate
uv sync
Configure environment:
cp .env.example .env
Edit .env with your OpenAI API key:
# AI Service
AI_VENDOR=openai
OPENAI_API_KEY=sk-proj-your-key-here
OPENAI_MODEL=gpt-realtime
# Agent prompt
AGENT_PROMPT_FILE=agent_prompt.yaml
# SIP Settings (userless account - receive only)
SIP_DOMAIN=192.168.1.100
SIP_TRANSPORT_TYPE=udp
SIP_PORT=6060
Optional: Create agent_prompt.yaml for custom agent personality:
instructions: |
You are a helpful AI assistant. Be concise and friendly.
greeting: "Hello! How can I help you today?"
Run the server:
uv run python -m app.main
The server will listen on SIP_DOMAIN:SIP_PORT for incoming calls. Each call creates an independent OpenAI Realtime WebSocket connection.
Make a test call:
# From FreeSWITCH/Aste
Universal, model-agnostic operating harness for AI agents (Claude, Codex, Gemini, …) — a lean core + work-type profiles assembled by one setup script.
Game-development Agent Skills for AI coding agents: install once and a master router loads the right skill for your engine and task. 66 original, version-pinned skills (plus a master router) in the portable SKILL.md format that runs across Claude Code, Cursor, Codex, Copilot, Gemini CLI and more, for Godot, Unity, Unreal, web and beyond.
A desktop pet for macOS & Windows that monitors your AI coding agents (Claude Code, Codex, Cursor, Gemini...) in real time, and grows as you code, feed it tokens, level it up, climb the leaderboard.
UltraGameStudio - AI coding agent for game development: engine workflows, gameplay code, and asset generation.
The coding agent that answers to you, your model, your machine, your rules.
Stop babysitting local AI agents. Just notifications, approve, and resume your Codex,Pi,Grok, or Claude code sessions anywhere. 0-Intrusion mobile control bridge via Telegram/微信/飞书. No hooks, no skills, no MCP.
Workflows from the Neura Market marketplace related to this Gemini resource