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, the input text must be in that language. For automatic translation + speech, use the Translated TTS API.
Python
TypeScript
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
- Accent Variation: Same English text spoken with different accents
- Character Voices: Give characters regional accents
- Language Learning: Hear pronunciation differences across accents
- Localized Feel: Match accent to target audience region