Instructions to use openlimi/uzbek-stt-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use openlimi/uzbek-stt-tiny with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="openlimi/uzbek-stt-tiny")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("openlimi/uzbek-stt-tiny") model = AutoModelForSpeechSeq2Seq.from_pretrained("openlimi/uzbek-stt-tiny", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Tunar STT Tiny — Ultra-Lightweight Uzbek Speech Recognition Model
Tunar STT Tiny is an ultra-lightweight, Uzbek-only Automatic Speech Recognition (ASR) model developed by OpenLimi.
With only 18.8 million parameters, Tunar is designed to make Uzbek speech recognition accessible on devices with limited computational resources.
Unlike large multilingual speech recognition systems, Tunar is specifically fine-tuned for the Uzbek language. It combines a compact encoder-decoder architecture with a custom Uzbek tokenizer and a large-scale Uzbek speech training corpus.
Key Highlights
- 18.8M parameters — an exceptionally compact model for Uzbek speech recognition.
- Uzbek-only ASR — specifically fine-tuned for Uzbek rather than general multilingual transcription.
- Large-scale training data — trained using a substantial Uzbek speech dataset.
- Custom Uzbek tokenizer — a 4,096-token BPE vocabulary designed for Uzbek text.
- Lightweight architecture — based on the Moonshine encoder-decoder architecture.
- Local inference — designed for efficient deployment on resource-constrained devices.
Model Specifications
| Specification | Details |
|---|---|
| Model Name | Tunar STT Tiny |
| Developer | OpenLimi |
| Task | Automatic Speech Recognition |
| Primary Language | Uzbek |
| Parameters | 18.8 Million |
| Architecture | Moonshine Encoder-Decoder |
| Base Model | Moonshine Tiny |
| Tokenizer | Custom BPE |
| Vocabulary Size | 4,096 |
| Audio Sample Rate | 16,000 Hz |
| Audio Channels | Mono |
| Recommended Segment Length | Up to ~30 seconds |
| Model Format | Safetensors |
| Tensor Type | FP32 |
Why Tunar?
Uzbek is an underrepresented language in speech recognition research. Many available ASR systems rely on large multilingual architectures, making them unnecessarily expensive to deploy for applications that only need Uzbek transcription.
Tunar explores a different approach:
A specialized Uzbek speech recognition model with a very small parameter count.
The goal is to reduce the computational requirements of Uzbek ASR while maintaining useful transcription quality.
Its 18.8M parameter architecture makes it particularly interesting for:
- Mobile applications
- Offline speech recognition
- Embedded AI systems
- Lightweight voice assistants
- Uzbek transcription services
- Edge AI applications
- Low-resource computing environments
Training
Tunar STT Tiny was fine-tuned from the Moonshine Tiny architecture using an Uzbek-focused training pipeline.
The project uses a large-scale collection of Uzbek speech and corresponding transcription data.
The training run is associated with the v3_1500h experiment.
The training approach focuses on adapting a compact speech recognition architecture specifically to Uzbek instead of relying on a large multilingual model.
New Uzbek Alphabet Support
Tunar STT Tiny supports the New Uzbek Latin Alphabet, a modernized Uzbek Latin writing system designed to provide a more consistent and compact representation of Uzbek speech.
The model is trained to recognize and transcribe Uzbek speech using this alphabet, including its dedicated characters.
New Uzbek Alphabet Character Mapping
| Traditional Uzbek Latin | New Uzbek Alphabet |
|---|---|
| o' | ö |
| g' | ğ |
| sh | ş |
| ch | ç |
Custom Tokenizer
Tunar uses a custom 4,096-token Byte-Pair Encoding (BPE) tokenizer adapted to the New Uzbek Alphabet.
This allows the model to process and generate Uzbek text in the new writing system, with dedicated character representations for Uzbek-specific sounds.
Example:
Traditional Uzbek:
O'zbekiston — go'zal va mustaqil mamlakat.
New Uzbek Alphabet:
Özbekiston — ğozal va mustaqil mamlakat.
By supporting the New Uzbek Alphabet at the model level, Tunar aims to contribute to the development of modern Uzbek-language AI technologies.
Usage
Installation
pip install -U torch transformers soundfile librosa
Basic Inference
import torch
import soundfile as sf
import librosa
from transformers import (
MoonshineForConditionalGeneration,
AutoTokenizer,
AutoFeatureExtractor
)
MODEL_ID = "openlimi/Tunar-stt-tiny"
device = "cuda" if torch.cuda.is_available() else "cpu"
# Load model and tokenizer
model = MoonshineForConditionalGeneration.from_pretrained(
MODEL_ID
).to(device).eval()
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
feature_extractor = AutoFeatureExtractor.from_pretrained(
MODEL_ID
)
# Load audio
audio, sr = sf.read("audio.wav", dtype="float32")
# Convert stereo to mono
if audio.ndim == 2:
audio = audio.mean(axis=1)
# Resample to 16 kHz
if sr != 16000:
audio = librosa.resample(
audio,
orig_sr=sr,
target_sr=16000
)
# Prepare input
inputs = feature_extractor(
audio,
sampling_rate=16000,
return_tensors="pt",
return_attention_mask=True
)
inputs = {
key: value.to(device)
for key, value in inputs.items()
}
# Generate transcription
with torch.inference_mode():
predicted_ids = model.generate(
**inputs,
max_new_tokens=int(len(audio) / 16000 * 12) + 8
)
# Decode
transcription = tokenizer.batch_decode(
predicted_ids,
skip_special_tokens=True
)[0]
print("Transcription:", transcription)
Convert Output to Standard Uzbek Latin
Tunar uses its custom Uzbek character representation. The following function converts its output to commonly used Uzbek Latin spelling.
def normalize_uzbek(text):
replacements = {
"ö": "oʻ",
"Ö": "Oʻ",
"ğ": "gʻ",
"Ğ": "Gʻ",
"ş": "sh",
"Ş": "Sh",
"ç": "ch",
"Ç": "Ch",
}
for source, target in replacements.items():
text = text.replace(source, target)
return text
print(normalize_uzbek(transcription))
Input Requirements
For the expected inference format:
- Sample rate: 16,000 Hz
- Channels: Mono
- Input format: Audio waveform
- Recommended maximum segment duration: approximately 30 seconds
Long recordings should be divided into shorter segments before inference.
Evaluation
Tunar STT Tiny has achieved a 25.30% Word Error Rate (WER) on the validation set.
| Metric | Result |
|---|---|
| Validation WER | 25.30% |
Word Error Rate (WER) measures the proportion of incorrectly recognized words compared to the reference transcription. Lower values indicate better transcription accuracy.
Evaluation Metrics
The model can be evaluated using:
- Word Error Rate (WER)
- Character Error Rate (CER)
- Inference speed
- Memory requirements
- Performance across different Uzbek speech recordings
The reported validation result provides an initial measurement of Tunar's Uzbek speech recognition performance. Further benchmarking against other Uzbek ASR systems is encouraged.
Limitations
- Tunar is specialized for Uzbek and is not intended as a general multilingual ASR model.
- Its output uses a custom Uzbek Latin character representation.
- Audio quality, background noise and speaking style can affect transcription quality.
- Long recordings require segmentation.
- Accuracy should be independently evaluated before production deployment.
About OpenLimi
OpenLimi is an AI research and development initiative focused on building efficient AI models and tools for underrepresented languages, with a particular interest in Uzbek language technologies.
Tunar is part of this effort to make Uzbek speech recognition smaller, more accessible and easier to deploy.
Developed by OpenLimi
Model: openlimi/uzbek-stt-tiny
Task: Uzbek Automatic Speech Recognition (ASR)
- Downloads last month
- 44
Model tree for openlimi/uzbek-stt-tiny
Base model
moonshine-ai/moonshine-tiny