Downloads · 30 days
23
52% of all-time downloads
NightPrince/Nemo-Arabic-STT-Diacritized
Nemo-Arabic-STT-Diacritized is a automatic speech recognition model from NightPrince. Use it when you need speech turned into text. It is set up for nemo. The card lists the license as cc-by-4.0.
An Arabic speech-to-text pipeline that produces fully diacritized (tashkeel) transcripts. It combines two independently developed models in sequence; it is a packaged inference pipeline, not a single jointly trained a…
Downloads · 30 days
23
52% of all-time downloads
All-time downloads
44
Public
Repo size
548 MB
Likes
1
Public
Click a slice to open those files.
.nemo459 MB · 84%
From the Hugging Face model README
An Arabic speech-to-text pipeline that produces fully diacritized (tashkeel) transcripts. It combines two independently developed models in sequence; it is a packaged inference pipeline, not a single jointly trained architecture.
stt_ar_fastconformer_hybrid_large_pcd_v1.0) transcribes Arabic speech to plain,
undiacritized text.Audio in, diacritized Arabic text out. Neither checkpoint was retrained or fine-tuned for this repository.
| File | Description | Source |
|---|---|---|
stt_ar_fastconformer_hybrid_large_pcd_v1.0.nemo | ASR checkpoint, unmodified | NVIDIA, CC-BY-4.0 |
best_ed_mlm_ns_epoch_178.pt | Diacritizer checkpoint, unmodified | abjadai/CATT, Apache-2.0 |
diacritize.py, catt/ | Diacritizer inference code (vendored from CATT) | abjadai/CATT, Apache-2.0 |
pipeline.py | DiacritizedASR — loads both models once, audio in / diacritized text out in a single call | This repository |
server.py | Reference FastAPI server implementing the full pipeline | This repository |
from pipeline import DiacritizedASR
model = DiacritizedASR(
nemo_path="stt_ar_fastconformer_hybrid_large_pcd_v1.0.nemo",
catt_ckpt="best_ed_mlm_ns_epoch_178.pt",
)
diacritized = model.transcribe("audio.wav")
Both models load once at construction; each .transcribe() call runs ASR followed immediately
by diacritization in the same process. For the two steps individually:
import nemo.collections.asr as nemo_asr
from diacritize import Diacritizer
asr_model = nemo_asr.models.EncDecHybridRNNTCTCBPEModel.restore_from(
"stt_ar_fastconformer_hybrid_large_pcd_v1.0.nemo"
)
diacritizer = Diacritizer(ckpt="best_ed_mlm_ns_epoch_178.pt")
text = asr_model.transcribe(["audio.wav"])[0].text
diacritized = diacritizer.diacritize_texts([text])[0]
Or run server.py directly for an HTTP API (POST /transcribe, GET /health).
Input audio (Arabic speech) transcribed and diacritized:
plain: السلام عليكم ورحمة الله وبركاته كيف يمكنني مساعدتك اليوم؟
diacritized: السَّلَامُ عَلَيْكُمْ وَرَحْمَةُ اللَّهِ وَبَرَكَاتُهُ كَيْفَ يُمْكِنُنِي مُسَاعَدَتُكَ الْيَوْمَ؟
Built for the Muslim Arabic voice AI companion project.