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.
Choose Your Model
Different models offer different trade-offs between speed, accuracy, and features:- CTC Models (Fast)
- LLM Models (Accurate)
- Zero-Shot (Few Examples)
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: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
Model download is slow
Model download is slow
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.Out of memory errors
Out of memory errors
Try a smaller model (300M or 1B instead of 3B or 7B), reduce batch size to 1, or use a GPU with more VRAM.
libsndfile errors
libsndfile errors
Install the system dependency:
- macOS:
brew install libsndfile - Ubuntu/Debian:
sudo apt-get install libsndfile1 - Windows: See the fairseq2 installation guide
Audio is longer than 40 seconds
Audio is longer than 40 seconds
Use the unlimited-length models:
omniASR_LLM_Unlimited_{300M,1B,3B,7B}_v2 which support audio of any length.