- State-of-the-art transcription accuracy across 18 languages
- Strong performance on accented English and seamless code-switching between supported languages
- A more intelligent contextual prompting that reliably follows the context you provide — from a single topic label to a full description of your audio
Quickstart
Get started with Universal-3.5 Pro using the code below. This example transcribes a pre-recorded audio file and prints the transcript text to your terminal.- Python
- Python SDK
- JavaScript
- JavaScript SDK
1
Install the required library
2
Create a new file
main.py and paste the code below. Replace <YOUR_API_KEY> with your API key.3
Run with
python main.py.Code switching
Universal-3.5 Pro natively handles code switching across 18 languages — no prompt configuration needed. When speakers shift mid-sentence between languages like English and Spanish, French, Hindi or Mandarin, the model follows seamlessly, preserving exactly what was said without translating everything into a single language. See Universal-3.5 Pro code switching in action.English <> French
English <> Hindi
English <> Mandarin
Contextual prompting
Universal-3.5 Pro is highly accurate out of the box, but for challenging audio like short clips with limited context, noisy environments, or audio with very niche references, providing a brief description in theprompt parameter can meaningfully improve accuracy.
For example, this is a 2-second clip from a League of Legends pro interview:
Without prompt:
- Python
- Python SDK
- JavaScript
- JavaScript SDK
Prompting guide
Contextual prompts work at three levels of specificity. Use the least specific level that covers your use case, and add detail when your audio contains uncommon names or terms the model can’t otherwise know.
Guidelines for writing contextual prompts:
- Write plain, complete sentences that describe the audio
- Keep it to one short block of text. Don’t pack lists of keywords into the contextual prompt
Keyterms prompting
Universal-3.5 Pro has strong out-of-the-box vocabulary coverage, so in many cases you won’t need keyterms prompting at all. But when you’re dealing with highly specific names, brands, acronyms, or niche industry jargon, thekeyterms_prompt parameter gives you an extra layer of control. You can pass up to 1,000 words or phrases (max 6 words per phrase) to boost recognition for those terms and contextually similar variations.
See keyterms prompt in action:
Without keyterms prompting:
- Python
- Python SDK
- JavaScript
- JavaScript SDK