Turkmen MMS ASR
standalone checkpoint for Turkmen speech recognition
2 min readupdated
This model handles automatic speech recognition (ASR) for Turkmen, transcribing audio into Latin-script text. Built on Meta's facebook/mms-1b-all architecture, it ships as a self-contained checkpoint with a baked-in adapter and fixed vocabulary, eliminating the need to load extra language modules at runtime. Compared to the original MMS adapter, this fine-tune delivers a significantly lower error rate on test datasets. It is a practical fit for developers and researchers working on regional languages and Turkmen voice interfaces.
Key features
- Standalone design with a fixed adapter and vocabulary—no language switching required.
- Reduced recognition error rate (strict WER) down to 24.58% on the test dataset.
- Out-of-the-box compatibility with standard Hugging Face Transformers and PyTorch libraries.
- Non-commercial release licensed under CC BY-NC 4.0.
What you can do
- Transcribe Turkmen speech recordings via Python scripts.
- Process long-form audio files using batched sliding-window scripts.
- Integrate the model into local voice-processing pipelines and archive transcription workflows.
Example
import soundfile as sf
import torch
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
repo = "Pirnazar/mms-1b-turkmen"
device = "cuda" if torch.cuda.is_available() else "cpu"
processor = Wav2Vec2Processor.from_pretrained(repo)
model = Wav2Vec2ForCTC.from_pretrained(repo).to(device).eval()
audio, sr = sf.read("speech.wav", dtype="float32")
inputs = processor(audio, sampling_rate=16000, return_tensors="pt")
inputs = {name: value.to(device) for name, value in inputs.items()}
with torch.inference_mode():
logits = model(**inputs).logits
text = processor.batch_decode(logits.argmax(-1))[0].strip()
print(text)
Read more
DetailsBenchmarks: strict WER — 24.58%, strict CER — 4.11%.
Parameters: ~965M total parameters, 2.28M trainable adapter/head parameters.
Limitations: Turkmen only (Latin script); no translation or speaker diarization support.










Comments