For best accuracy and latency, provide a small set of expected languages.
Avoid listing dozens of similar languages.
When to enable it
- Speakers switch languages mid-conversation (e.g. bilingual meetings, multilingual customer support).
- You need the detected
languagereturned per utterance.
When NOT to enable it
- The audio is in a single language — code switching adds unnecessary processing and can introduce misdetections.
- You’ve set exactly one language in
languages— in that casecode_switchingis ignored anyway.
How to use code switching
Enable code switching in the session configuration:language per utterance and per word. Use the transcript message schema for details.
Recommendations
- Limit the number of languages to those you expect.
- Combine with custom vocabulary per language for domain terms.