Skip to content

PatterAI/.github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Patter

The open-source Voice AI SDK

by Patter

License: MIT Python npm GitHub Discussions


πŸ”Š Patter is the open-source way to connect any AI agent to real phone calls. Build voice-powered agents with a few lines of code β€” without managing telephony, speech pipelines, or audio infrastructure.

Visit the Patter docs to get started. SDK: Python / TypeScript

🧐 What is Patter?

Patter is a dual SDK (Python + TypeScript) that gives developers a unified API for the entire voice AI pipeline β€” speech-to-text, AI reasoning, text-to-speech, and telephony β€” wired together with sub-second latency so your agent sounds natural on a real phone call.

✨ Just like this

import asyncio
from patter import Patter

async def main():
    phone = Patter(
        openai_key="sk-...",
        phone_number="+15550001234",
        webhook_url="your.server.com",
    )

    agent = phone.agent(
        system_prompt="You are a friendly booking assistant for a dental clinic.",
        voice="nova",
        first_message="Hi! I'm calling from Smile Dental. How can I help?",
    )

    await phone.serve(agent, port=8000)

asyncio.run(main())

πŸš€ Key Features

  • πŸ“ž Inbound & Outbound Calls β€” answer calls or dial out programmatically with Twilio or Telnyx
  • ⚑ 3 Voice Modes β€” OpenAI Realtime (lowest latency), Pipeline (custom STT+TTS), ElevenLabs ConvAI
  • πŸ”§ Tool Calling β€” let your agent check databases, book appointments, or transfer calls
  • πŸ“Š Built-in Dashboard β€” real-time call monitoring, cost tracking, and analytics
  • πŸ§ͺ Test Mode β€” develop agents in your terminal, no phone needed
  • πŸ’° Per-Call Metrics β€” cost breakdown by provider (STT, TTS, LLM, telephony) with latency percentiles
  • πŸ›‘οΈ Guardrails β€” content filtering and blocked terms before speech output
  • 🏠 Local Mode β€” runs entirely on your machine, no cloud dependency
  • πŸ€– Any LLM β€” pluggable LLM loop, bring your own Anthropic, Gemini, or any provider

🏁 Getting Started

  • πŸ“₯ Installation β€” install the SDK and set up your environment
  • πŸ“– Documentation β€” full guides for Python and TypeScript
  • πŸ’¬ Discussions β€” ask questions and share what you've built
  • πŸ› Issues β€” report bugs or suggest features

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors