Connect FreeSWITCH
to Cartesia

Add AI voice agents to your FreeSWITCH phone line using Cartesia. Self-host SIP4AI, configure your credentials, and let AI handle calls in minutes.

FreeSWITCH

SIP Provider

High-performance open-source softswitch for carrier-grade deployments.

Region: Self-Hosted

Cartesia

AI Provider

Ultra-low latency voice AI optimized for real-time conversational applications.

Sub-100ms Latency Sonic Model Voice Cloning Streaming

Setup Guide

1

Install SIP4AI

Download and install SIP4AI on your server or local machine.

# Install SIP4AI
curl -sSL https://sip4ai.com/install.sh | bash
2

Configure FreeSWITCH

Add SIP4AI as a gateway in the FreeSWITCH configuration.

# Set FreeSWITCH credentials
export SIP_SERVER=freeswitch.sip-provider.com
export SIP_USERNAME=your_username
export SIP_PASSWORD=your_password
3

Configure Cartesia

Requires Cartesia API key. Best-in-class latency for voice apps.

# Set Cartesia API key
export CARTESIA_API_KEY=your_api_key
4

Start SIP4AI

Run SIP4AI with your FreeSWITCH and Cartesia configuration.

# Start SIP4AI with cartesia provider
sip4ai --provider cartesia

# SIP4AI will register with FreeSWITCH and wait for calls
INFO Registering with SIP server...
INFO Connected to Cartesia API
INFO Ready to handle calls

Ready to connect
FreeSWITCH to Cartesia?

Get started with SIP4AI today. Free for non-commercial use, affordable plans for businesses.

Other FreeSWITCH integrations

Other Cartesia integrations