Quick Start
Get started with Omnilingual ASR inference in just a few lines:The models were trained on audio durations of 30 seconds or less. We recommend keeping samples under 30 seconds for optimal performance.
Audio Input Formats
The inference pipeline accepts multiple input formats through theAudioInput type:
- File Paths
- Binary Data
- Decoded Audio
The simplest approach - provide paths to audio files:Supported formats:
.wav, .flacAudio Preprocessing
All audio inputs undergo automatic preprocessing:1
Decode
Encoded audio (
.wav/.flac) is decoded to raw waveforms2
Resample
Audio is resampled to 16kHz for model compatibility
3
Convert to Mono
Multi-channel audio is converted to mono-channel
4
Normalize
Waveforms are normalized before model ingestion
Batch Processing
Process multiple audio files efficiently with batching:Adjust
batch_size based on your GPU memory. Larger batches increase throughput but require more memory.Model Types
Omnilingual ASR offers three model families, each optimized for different use cases:CTC Models
Parallel generation models optimized for speed and throughput.- Fastest inference with parallel generation
- No language conditioning support
- No context example support
- Ideal for on-device transcription
- High-throughput scenarios
- Real-time transcription needs
- Resource-constrained environments
- Single-language applications
LLM Models
Autoregressive models with language conditioning for enhanced accuracy.- Standard LLM+LID
- Unlimited Length
Language-conditioned models with optional language identification:
omniASR_LLM_300M_v2omniASR_LLM_1B_v2omniASR_LLM_3B_v2omniASR_LLM_7B_v2
Zero-Shot Models
In-context learning models for unseen languages using audio-text example pairs.The model uses exactly 10 context slots internally. If fewer than 10 examples are provided, samples are duplicated sequentially to fill all slots. If more than 10 are provided, they’re cropped.
- Transcribing rare or low-resource languages
- Languages not in the training set
- Domain-specific vocabulary or accents
- Few-shot learning scenarios
Advanced Usage
Parquet Dataset Input
Use training-format parquet datasets directly for inference:HuggingFace Datasets
Integrate with HuggingFace datasets seamlessly:Model Input Format Specification
For advanced users integrating models with fairseq2’sSeq2SeqBatch interface:
Basic ASR
Basic ASR
Language-Aware ASR
Language-Aware ASR
Zero-Shot with Context
Zero-Shot with Context
Punctuation and Capitalization
Our models output transcripts in spoken form without punctuation or capitalization.For written-form transcripts, pass outputs through a third-party punctuation restoration library like deepmultilingualpunctuation.
Performance Optimization
Choose the Right Model
Choose the Right Model
- CTC models: Fastest, best for throughput
- LLM models: Better accuracy, language conditioning
- Zero-shot: For unseen languages only
Optimize Batch Size
Optimize Batch Size
Device Selection
Device Selection
Next Steps
Model Architectures
Explore the technical details of W2V, CTC, and LLM model families
Training Guide
Learn how to fine-tune models on your own data
Data Preparation
Prepare datasets for training and evaluation
API Reference
Detailed API documentation for all components