Downloads · 30 days
183
32% of all-time downloads
hojreh/Quds-v4-onnx
Quds-v4-onnx is a automatic speech recognition model from hojreh. Use it when you need speech turned into text. The card lists the license as cc-by-nc-4.0.
Downloads · 30 days
183
32% of all-time downloads
All-time downloads
576
Public
Repo size
614 MB
Likes
1
Public
Click a slice to open those files.
.onnx614 MB · 100%
From the Hugging Face model README
🚨 Non Commercial Usage Only
💡 Fine-tuned specifically for the domain of Islamic lectures and specialized Hawza courses, such as Tafsir, Fiqh, Usul, and Rijal.
🔔 FOR NeMo version (includes both rnnt and ctc decoders and word timestamps) send a request in Community
Quds-v4-onnx is a highly accurate Persian Automatic Speech Recognition model. It is based on the robust NeMo FastConformer Large Hybrid architecture and is specifically exported in the ONNX format to enable fast, cross-platform inference. This release features an RNN-T (Recurrent Neural Network Transducer) decoder.
This model can be used seamlessly with the onnx-asr Python library, which provides a clean interface for ONNX-based ASR models.
First, install the onnx-asr package:
pip install onnx-asr
Load the model directly from Hugging Face and transcribe a .wav file:
import onnx_asr
# Load the model from Hugging Face
model = onnx_asr.load_model("hojreh/Quds-v4-onnx")
# Recognize speech from a single WAV file
transcription = model.recognize("test.wav")
print(transcription)
You can pass a list of file paths to process multiple audio files efficiently in a single batch:
import onnx_asr
model = onnx_asr.load_model("hojreh/Quds-v4-onnx")
transcriptions = model.recognize(["test1.wav", "test2.wav", "test3.wav"])
print(transcriptions)
For long audio files, you can integrate a VAD model (such as Silero) to skip non-speech segments:
import onnx_asr
# Load a VAD model
vad = onnx_asr.load_vad("onnx-community/pyannote-segmentation-3.0") # or "silero"
# Attach VAD to the ASR model
model = onnx_asr.load_model("hojreh/Quds-v4-onnx").with_vad(vad)
# Recognize with VAD (returns segmented results)
for res in model.recognize("test.wav"):
print(res)
import onnx_asr
model = onnx_asr.load_model("hojreh/Quds-v4-onnx").with_timestamps()
print(model.recognize("test1.wav"))
Quantized version (INT8) is smaller but NOT accurate as main version.
import onnx_asr
model = onnx_asr.load_model("hojreh/Quds-v4-onnx", quantization="int8")
print(model.recognize("test1.wav"))
The onnx-asr package also includes a simple CLI for quick testing directly from your terminal:
# Run transcription on a wav file
onnx-asr hojreh/Quds-v4-onnx test.wav
(For full CLI parameters and options, run onnx-asr -h in your terminal)