neural-maze/realtime-phone-agents-course
A modular FastRTC and Twilio call center for real-time voice agents with property search
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
This Python 3.11+ application separates the call interface, speech backends, and domain retrieval. FastAPI serves the call-center application, Twilio connects inbound and outbound phone calls, and FastRTC runs the voice conversation. Gradio provides a separate browser entry point for testing without Twilio. The agent pipeline transcribes caller audio, uses the resulting text for the LLM response and any tool calls, then synthesizes the reply.
The package lives under src/realtime_phone_agents. The stt/ and tts/ modules separate local, API, and RunPod implementations. agent/tools/property_search.py exposes domain search to the agent, while infrastructure/superlinked/ houses the retrieval integration. The agent stack declares LangChain and LangChain-Groq, and retrieval uses Superlinked with Qdrant. The avatar registry loads YAML personas, while Opik instrumentation in agent/fastrtc_agent.py traces the conversation stages.
Key Capabilities & Differentiators
Property search goes beyond embedding similarity: Superlinked combines text similarity, numeric, and categorical spaces in one index and lets queries adjust their relative weights. The supplied data/properties.csv supports an end-to-end test in which the caller asks for an apartment in Barrio de Salamanca for at most €900,000. The example demonstrates handling a location and price constraint together; it does not establish a live listing feed.
Speech recognition can use Moonshine locally, Whisper through Groq, or Faster Whisper large-v3 on RunPod. Speech synthesis offers local Kokoro and Orpheus through Together AI or a RunPod deployment of Orpheus 3B. Gradio lets users mix and match STT and TTS backends. The week4 release adds eight YAML-defined avatars with distinct styles and voices, prompt versioning, and Opik traces for transcription, LLM responses, tool calls, and synthesis, including complete conversation threads.
Trade-offs & Limitations
Compared with a managed voice-agent platform, this stack gives engineers more control over speech backend selection, retrieval ranking, prompts, and traces, but leaves them responsible for integrating and operating those components. Local speech options reduce dependence on hosted speech APIs and avoid their network round trips, at the cost of local model compute. Hosted APIs reduce model-serving work; RunPod lets teams operate their own endpoints, but adds GPU cost and capacity planning. There are no established latency or concurrency results to size a deployment from; measure end-to-end turn latency and behavior under overlapping calls with the chosen backends.
For semantic search with fixed filters, a conventional vector index may be simpler. Superlinked earns its place when numeric and categorical attributes also need to influence ranking. Treat this as an engineering reference rather than a verified production call center: the Compose health check is not an availability or load guarantee. Twilio remains an external dependency, and complete Opik conversation traces make transcript access and retention explicit deployment decisions. The MIT code license does not replace model licenses or provider terms.
Hardware & Deployment Guide
For browser testing, configure .env from .env.example, install the Python 3.11+ dependencies, and run make start-gradio-application. Install ffmpeg if ffprobe is missing. For telephony testing, make start-call-center launches the Docker Compose stack on port 8000 with local Qdrant. The app mounts ./data, caches Hugging Face assets in a named volume, and exposes a /health endpoint for the container health check. make start-ngrok-tunnel provides a public URL for Twilio during development.
For self-managed speech inference on RunPod, Dockerfile.faster_whisper uses the speaches-ai/speaches base and pre-downloads large-v3; Dockerfile.orpheus uses a CUDA-enabled llama.cpp server. Run make create-faster-whisper-pod or make create-orpheus-pod, then put the returned endpoint URLs in .env. Cloud configuration also covers Twilio, Qdrant Cloud, Opik, and the selected speech providers. The releases build in layers: week2 adds retrieval, week3 adds interchangeable speech backends and model containers, and week4 adds personas, tracing, and cloud deployment configuration.
Engineering teams prototyping a real-estate phone agent or learning how to connect telephony, interchangeable speech backends, structured search, and tracing in one application.
You need an offline phone system, a turnkey managed contact center, or demonstrated latency, concurrency, and availability guarantees before adoption.
Quick Start & Installation
make start-gradio-application
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| realtime-phone-agents-course ★ | 1.1k | — | Python | MIT | A modular FastRTC and Twilio call center for real-time voice agents with propert |
| voicebox | 61.8k | +437 | Python | MIT | Local-first voice studio with multi-engine speech synthesis, dictation and MCP. |
| speech-to-speech | 13.9k | +137 | Python | Apache-2.0 | A modular speech cascade for self-hosted voice agents over OpenAI Realtime |
| Open-LLM-VTuber | 15.1k | +107 | Python | — | Self-hosted Python AI companion with interruptible voice and a Live2D avatar |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/neural-maze/realtime-phone-agents-course.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about realtime-phone-agents-course
How do I go from a browser demo to a real phone call?
make start-gradio-application. For phone calls, start the FastAPI service with make start-call-center, expose port 8000 through an ngrok tunnel for development, and configure Twilio with the public URL. FastRTC handles the voice conversation, while property retrieval is exposed as a separate agent tool.Do I need a GPU, and how much VRAM should I budget?
Can I use it commercially and keep call data on my own infrastructure?
When is this preferable to a managed voice-agent platform or a simpler vector-search stack?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy