Languages
The lang_code parameter controls the language used for speech synthesis. Pass it when creating a TTS session or websocket connection:
tts_config = TTSConfig(lang_code='fr')
wss://api.neuphonic.com/speak/en?api_key=<API_KEY>
The full list of supported languages is below. Note that the chosen voice must be available for the chosen language — use client.voices.list() to see which voices support which languages.
| Language | lang_code | Notes |
|---|---|---|
| English | en | American and British accents available |
| Chinese | zh | Mandarin accent available |
| French | fr | |
| German | de | |
| Japanese | ja | |
| Korean | ko | |
| Spanish | es | Castilian, Argentinian, Mexican, Colombian, Peruvian and Venezuelan accents available |
| Portugese | pt | Brazilian and European Portuguese accents available |
| Urdu | ur |