Usage guide
Setup, environment variables, and Python/JavaScript/Go usage examples.
CambAITTS
Text-to-speech with CAMB.AI MARS models. Choose it for multilingual speech, voice cloning, and instruction-guided delivery. Authenticates with CAMBAI_API_KEY from your environment, or an explicitapi_key.
Fields
str
default:"UNSET"
MARS model to synthesize with: “mars-pro”, “mars-flash” for lower latency, or “mars-instruct” for style instructions. Defaults to ‘mars-pro’.
int
default:"UNSET"
Numeric ID of the CAMB.AI voice to speak with, as listed by the CAMB.AI voices API. Defaults to 147320.
str
default:"UNSET"
BCP-47 locale to speak in, e.g. “en-us”. Defaults to ‘en-us’.
Optional[str]
default:"UNSET"
Plain-language guidance on tone and style, e.g. “speak warmly and slowly”. Only used by mars-instruct. Defaults to None (not set).
bool
default:"UNSET"
Improve pronunciation of brand names, people and other named entities. Defaults to False.
Optional[Mapping[str, Any]]
default:"UNSET"
Output audio settings such as format, duration and sample rate, as a mapping. Defaults to None (not set).
Optional[Mapping[str, Any]]
default:"UNSET"
Voice preferences such as accent and reference-audio quality, as a mapping. Defaults to None (not set).
Optional[Mapping[str, Any]]
default:"UNSET"
Generation controls such as stability, temperature, steps and similarity, as a mapping. Defaults to None (not set).