Prerequisites
- A CAMB.AI account (sign up at studio.camb.ai)
- Your API key (see Authentication)
Option 1: Using the SDK (Recommended)
Option 2: Using cURL
Option 3: Using the API Directly
Understanding the Response
The API returns raw audio data by default. Key parameters:| Parameter | Description |
|---|---|
text | The text to convert to speech |
voice_id | ID of the voice to use (147320 is a default English voice) |
language | Language code (e.g., en-us, es-es, fr-fr) |
speech_model | Model variant: mars-flash, mars-pro, or mars-instruct |
Output Formats
Specify the output format inoutput_configuration: