Overview
The Camb.ai SDK supports using Baseten as a TTS provider, allowing you to run MARS models on your own Baseten infrastructure for enhanced control and scalability.Key Features
- Self-hosted Infrastructure: Run MARS models on your own Baseten deployment
- Voice Cloning: Requires reference audio for voice cloning capabilities
- Streaming Support: Real-time audio streaming
- Full SDK Integration: Works seamlessly with both Python and TypeScript SDKs
Prerequisites
- A Baseten account with MARS model deployed
- Your Baseten API key
- Your Baseten model URL (mars_pro_url)
- A reference audio file for voice cloning
Python SDK
Installation
Usage
TypeScript SDK
Installation
Usage
Configuration
Required Parameters
| Parameter | Description |
|---|---|
api_key | Your Baseten API key |
mars_pro_url | Your Baseten MARS model endpoint URL |
reference_audio | Base64-encoded reference audio for voice cloning |
reference_language | Language code of the reference audio (e.g., en-us) |
Optional Parameters
| Parameter | Description | Default |
|---|---|---|
speech_model | MARS model variant | mars-pro |
language | Target language for synthesis | en-us |
output_format | Audio output format | mp3 |
timeout_in_seconds | Request timeout | - |