Overview
Generate speech with different language accents. Thelanguage parameter controls the accent/pronunciation style of the output.
The TTS API speaks the text you provide - it does not translate. To speak in a different language, provide input text in that language. For automatic translation + speech, use the Translated TTS API.
Hear the Difference
Same text, different accents - all with the same voice:Prerequisites
Create an account
Sign up at CAMB.AI Studio if you haven’t already.
Get your API key
Go to Settings → API Keys in Studio and copy your key. See Authentication for details.
Install the SDK
Code
Supported Accents
Over 140 language accents are supported. Common codes:| Accent | Code |
|---|---|
| English (US) | en-us |
| English (UK) | en-gb |
| Spanish (Spain) | es-es |
| Spanish (Mexico) | es-mx |
| French | fr-fr |
| German | de-de |
| Italian | it-it |
| Portuguese (Brazil) | pt-br |
| Japanese | ja-jp |
| Korean | ko-kr |
| Chinese (Mandarin) | zh-cn |
| Hindi | hi-in |
| Arabic | ar-sa |
| Russian | ru-ru |
Use Cases
Next Steps
Emotional Voice Control
Add emotional expression and character to your speech with mars-instruct.
Translated TTS
Translate text and generate speech in the target language.
Voice Cloning
Clone a voice from reference audio.
Text to Sound Effects
Generate sound effects and music from text.
API Reference
Full TTS streaming API specification.