Skip to main content

Overview

CambTTSService provides high-quality text-to-speech synthesis using Camb AI’s MARS model family with streaming capabilities. The service offers multiple model options optimized for different use cases: mars-flash for fast inference and mars-pro for high-quality output.

Installation

To use Camb AI services, install the required dependencies:
pip install "pipecat-ai[camb]"

Prerequisites

Camb AI Account Setup

Before using Camb AI TTS services, you need:
  1. Camb AI Account: Sign up at Camb AI
  2. API Key: Generate an API key from your account dashboard
  3. Voice Selection: Choose voice IDs from the platform

Required Environment Variables

  • CAMB_API_KEY: Your Camb AI API key for authentication

Notes

Set the audio_out_sample_rate in PipelineParams to match the model’s sample rate (22050 for mars-flash, 48000 for mars-pro) for optimal quality. See the example implementation for usage.