language_code 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 639-1 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)
language_codes (on SyncTranscriptionConfig in Python, on the config object in JavaScript), which always takes a list — pass a single-element list such as ["es"] for monolingual audio.
- Python SDK
- JavaScript SDK
- Python
- JavaScript
- cURL
language_code as an array listing every expected language:
SyncTranscriptionConfig(language_codes=["en", "es"]) in Python, or { language_codes: ["en", "es"] } in JavaScript.