language_codes in the config part to steer transcription toward a specific language. For multilingual or code-switching audio, pass an array of codes instead of a single code.
- Accepts a single ISO language code (
"es") or a list of codes (["en", "es"]) - Defaults to English (
en) when omitted - Ignored when a custom
promptis set — state the language as part of your contextual prompt if you use both (see Specifying the language)
- Python SDK
- JavaScript SDK
- Python
- JavaScript
- cURL
language_codes as an array listing every expected language:
SyncTranscriptionConfig(language_codes=["en", "es"]) in Python, or { language_codes: ["en", "es"] } in JavaScript.
Supported languages
The endpoint accepts 32 codes. Anything outside this set is rejected with a400 that lists the full set in its detail.