Model reference · open weights
stt_ar_fastconformer_hybrid_large_pcd is an open-weight audio or speech model from nvidia. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.
Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.
What it is
| Released by | NVIDIA |
|---|---|
| Type | Audio & music |
| Task | Speech→text |
| Runs with | nemo |
| Released | 2024-12-25 |
| Popularity | 1k downloads / month |
| Licence | Open weights |
About
This model transcribes speech in Arabic language with punctuation and diacritical marks support. It is a "large" version of FastConformer Transducer-CTC (around 115M parameters) model and is trained on two losses: Transducer (default) and CTC. See the section Model Architecture and NeMo documentation for complete architecture details. The model transcribes text in Arabic with diacritical marks and supports periods, Arabic commas and Arabic question marks.
This model is ready for commercial and non-commercial use.
License to use this model is covered by the CC-BY-4.0. By downloading the public and release version of the model, you accept the terms and conditions of the CC-BY-4.0 license.
[1] Fast Conformer with Linearly Scalable Attention for Efficient Speech Recognition [2] Google Sentencepiece Tokenizer [3] NVIDIA NeMo Toolkit [4] HuggingFace ASR Leaderboard
FastConformer [1] is an optimized version of the Conformer model with 8x depthwise-separable convolutional downsampling. The model is trained in a multitask setup with hybrid Transducer decoder (RNNT) and Connectionist Temporal Classification (CTC) loss. You may find more information on the details of FastConformer here: Fast-Conformer Model.
Model utilizes a Google Sentencepiece Tokenizer [2] tokenizer with a vocabulary size of 1024.
Input Type(s): Audio Input Format(s): .wav files Input Parameters: 1D Other Properties Related to Input: 16000 Hz Mono-channel Audio, Pre-Processing Not Needed
Output Type(s): Text Output Format: String Output Parameters: 1D Other Properties Related to Output: May Need Inverse Text Normalization; Does Not Handle Special Characters; Outputs text in Arabic with diacritical marks
The model is non-streaming and outputs the speech as a string with diacritical marks. Not recommended for word-for-word transcription and punctuation as accuracy varies based on the characteristics of input audio (unrecognized word, accent, noise, speech type, and context of speech). Since this model was trained on publicly available speech datasets, the performance of this model might degrade for speech which includes technical terms, or vernacular that the model has not been trained on.
The model is available for use in the NeMo toolkit [3], and can be used as a pre-trained checkpoint for inference or for fine-tuning on another dataset.
import nemo.collections.asr as nemo_asr
asr_model = nemo_asr.models.EncDecHybridRNNTCTCBPEModel.from_pretrained(model_name="nvidia/stt_ar_fastconformer_hybrid_large_pcd_v1.0")
First, let's get a sample
wget https://dldata-public.s3.us-east-2.amazonaws.com/2086-149220-0033.wav
Then simply do:
output = asr_model.transcribe(['2086-149220-0033.wav'])
print(output[0].text)
Using Transducer mode inference:
python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py
pretrained_name="nvidia/stt_ar_fastconformer_hybrid_large_pcd_v1.0"
audio_dir=""
Using CTC mode inference:
python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py
pretrained_name="nvidia/stt_ar_fastconformer_hybrid_large_pcd_v1.0"
audio_dir=""
decoder_type="ctc"
The [NVIDIA NeMo Toolkit] [3] was used for training the model for two hundred epochs. Model is trained with this example script.
The tokenizer for these model was built using the text transcripts of the train set with this script.
The model is trained on composite dataset comprising of around 1100 hours of Arabic speech:
From the published model card. Full card on the HuggingFace links in the sidebar.
How it works
Benchmarks
As published on the model card — the maker's own numbers, not measured by AxForge.
| Task | Dataset | Metric | Score |
|---|---|---|---|
| Automatic Speech Recognition | MASC | Test WER | 16.670 |
| Automatic Speech Recognition | MCV17 | Test WER | 25.600 |
| automatic-speech-recognition | FLEURS | Test WER | 12.940 |
| Automatic Speech Recognition | Tarteel AI's EveryAyah Dataset | Test WER | 6.550 |
Using it via the API
Once AxForge deploys stt-ar-fastconformer-hybrid-large-pcd for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (stt-ar-fastconformer-hybrid-large-pcd below is illustrative; you get the exact model name on deployment.)
$ curl -sS https://api.axforge.ai/v1/audio/transcriptions \ -H "Authorization: Bearer $AXFORGE_API_KEY" \ -F model="stt-ar-fastconformer-hybrid-large-pcd" -F file=@audio.mp3
Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.