PatterAI/Patter
Open-source voice-AI SDK. The Vapi/Retell alternative for builders who want to own the stack. Give your AI agent a phone number in 4 lines — Python and TypeScript, MIT licensed, Twilio, Telnyx, and Plivo.
What it solves
Patter is an open-source SDK that simplifies the process of giving AI agents a phone number. It removes the complexity of managing the entire voice stack—including the agent loop, language models, speech-to-text (STT), text-to-speech (TTS), and telephony carriers—allowing developers to build voice agents without having to manually glue these disparate services together.
How it works
Patter acts as a full voice stack that manages the call flow and the agent loop. It allows developers to choose and swap providers for every layer of the voice experience:
- LLM: Text generation (e.g., OpenAI, Anthropic, Google Gemini).
- STT: Speech-to-text (e.g., Deepgram, AssemblyAI, Whisper).
- TTS: Text-to-speech (e.g., ElevenLabs, OpenAI, Cartesia).
- Realtime Engine: All-in-one voice solutions (e.g., OpenAI Realtime, Gemini Live).
- Telephony: Phone carriers (e.g., Twilio, Telnyx, Plivo).
- Audio Processing: VAD and suppression (e.g., Silero VAD, Krisp).
Developers can operate in Realtime, Pipeline, or Hybrid modes. The SDK is available in both Python and TypeScript with full parity, and includes built-in tools for call transfer, guardrails, and LLM fallback chains for mid-call provider failover.
Who it’s for
Developers building voice-enabled AI agents for tasks such as restaurant booking assistants, CRM lookup and ticket creation, or personalized outbound calling.
Highlights
- Provider Agnostic: Swap LLM, STT, TTS, and carrier providers with a single line of code.
- Dual SDKs: Full parity between Python and TypeScript implementations.
- UTF-8/Real-time Voice: Supports real-time voice interaction and integrated telephony.
- Local Development: Built-in tunnel and dashboard for local testing and simulation of calls from the terminal.
- Enterprise-ready: Includes OpenTelemetry tracing, guardrails, and provider failover chains.
Related
- Project
- Project
- Project
- Project
- Project