Overview
Translate text and generate speech in one API call. Input text in any language, get audio output in your target language.This is different from the standard TTS API which only changes accents. Translated TTS actually translates your text before speaking.
Hear the Translations
Same English input, automatically translated and spoken in each language: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
Parameters
| Parameter | Description |
|---|---|
text | Input text to translate |
source_language | Numeric language ID of input (e.g., 1 for English) |
target_language | Numeric language ID for output (e.g., 54 for Spanish) |
voice_id | Voice ID to use for speech generation (required) |
Common Language IDs
| Language | ID |
|---|---|
| English (US) | 1 |
| Spanish (Spain) | 54 |
| French (France) | 76 |
| German (Germany) | 31 |
| Japanese (Japan) | 88 |
| Hindi (India) | 81 |
| Portuguese (Brazil) | 111 |
| Chinese (Mandarin) | 139 |
Use Cases
Next Steps
Emotional Voice Control
Add emotional expression to translated speech.
TTS with Accents
Speak in 140+ accents without translating.
Text to Speech
Generate speech from text using the SDK.
Voice Cloning
Clone a voice from reference audio.
API Reference
Full Translated TTS API specification.