Skip to main content
Get up and running with Omnilingual ASR to transcribe your first audio file in just a few steps.

Prerequisites

Omnilingual ASR installed (see Installation)
Python 3.10 or higher
Audio file ready for transcription

Your First Transcription

1

Install Omnilingual ASR

Install the package using pip or uv:
2

Create a Python Script

Create a new file transcribe.py with the following code:
transcribe.py
3

Run the Script

Execute your script:
The model will be automatically downloaded on first use and cached for future runs.
The first run will download the model (~30 GiB for the 7B model). Subsequent runs will use the cached model from ~/.cache/fairseq2/assets/.

Choose Your Model

Different models offer different trade-offs between speed, accuracy, and features:
Best for: High-throughput batch processing
  • Speed: 16x to 96x faster than real-time
  • VRAM: 2-15 GiB depending on model size
  • Limitation: No language conditioning

Audio Input Formats

The pipeline accepts multiple audio input formats:
Audio Length Constraint: Currently, only audio files shorter than 40 seconds are accepted for CTC and standard LLM models. Use omniASR_LLM_Unlimited_* models for longer audio.

Model Size Comparison

Choose a model size based on your available resources:
RT = Real-Time. “96x RT” means the model processes audio 96 times faster than real-time.

Complete Example

Here’s a complete working example that transcribes multiple audio files with language conditioning:
complete_example.py

Next Steps

Explore Models

Learn about all available model variants and their specifications

Advanced Inference

Explore batch processing, context examples, and optimization

Language Support

Browse the full list of 1600+ supported languages

Training Guide

Fine-tune models on your own data

Troubleshooting

Models are large (1.2 GiB to 30 GiB). The first download may take time depending on your internet connection. Models are cached in ~/.cache/fairseq2/assets/ for future use.
Try a smaller model (300M or 1B instead of 3B or 7B), reduce batch size to 1, or use a GPU with more VRAM.
Install the system dependency:
Use the unlimited-length models: omniASR_LLM_Unlimited_{300M,1B,3B,7B}_v2 which support audio of any length.