These recommendations apply to the Pre-recorded
API and are passed in the
POST /v2/pre-recorded request body. They are starting points — tune them to match
your specific needs.Language Configuration
One of the most common configuration mistakes is misunderstanding howlanguage_config works. Choosing the right setup avoids unnecessary detection overhead and improves accuracy.
When to set an explicit language:
- You know the language of the audio ahead of time.
- The audio is monolingual (single language throughout).
- You want the fastest, most accurate results.
- You process audio in many different languages and don’t know which one beforehand.
- You want Gladia to pick the language automatically.
Code Switching
Code switching (language_config.code_switching: true) lets Gladia detect and transcribe multiple languages within the same audio, re-evaluating the language on each utterance.
When to enable it:
- Speakers switch languages mid-conversation (e.g. bilingual meetings, multilingual customer support).
- You need the detected
languagereturned per utterance.
- 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.
Custom Vocabulary
Custom vocabulary is a post-transcription replacement based on phoneme similarity. It’s essential for domain-specific terms that speech models frequently mis-transcribe. Best practices:- Always provide both the
custom_vocabularyflag and acustom_vocabulary_config. - Add pronunciations to provide all the close spelling variants. You can use Automatic Phonemic Transcriber (IPA) in order to check if all the different spellings are covered.
- Keep
intensitymoderate (0.4-0.6). High values increase false positives where unrelated words get replaced. - Set
languageon individual vocabulary entries when your audio is multilingual and a term is pronounced differently depending on the language.
Meeting Recorders
For apps that record and process meetings — team stand-ups, board sessions, 1-on-1s — the goal is to produce structured, actionable meeting notes with clear speaker attribution. Meetings typically have a known set of participants and benefit heavily from post-processing features like summarization.Diarization vs. multi-channel: if each speaker is on a separate audio channel (e.g. a, use the
channel field on each utterance to identify who is speaking — diarization is not needed. See Multiple channelsIf all speakers share a single audio channel, enable diarization to separate the speakers. See Speaker diarization.Call Centers
For recorded phone calls the priorities are speaker identification and accurate transcription despite variable audio quality (telephony codecs, background noise, cross-talk).Diarization vs. multi-channel: if each speaker is on a separate audio channel (e.g. a, use the
channel field on each utterance to identify who is speaking — diarization is not needed. See Multiple channelsIf all speakers share a single audio channel, enable diarization to separate the speakers. See Speaker diarization.