Prerequisites
- A CAMB.AI account (sign up at studio.camb.ai)
- Your API key (see Authentication)
Option 1: Using the SDK (Recommended)
1
Install the SDK
2
Generate Speech
3
Play the Audio
Open
output.wav with any audio player to hear the generated speech.Option 2: Using cURL
Option 3: Using the API Directly
Understanding the Response
The API returns raw audio data by default. Key parameters:Output Formats
Specify the output format inoutput_configuration:
Explore Voices
List available voices to find the right one for your use case:Next Steps
How Tasks & Runs Work
Understand the async task pattern
SDK Guide
Deep dive into SDK features
MARS 8 Models
Compare TTS model variants
API Reference
Explore all endpoints