Model reference · open weights
stt_ar_fastconformer_hybrid_large_pc 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-11-01 |
| Popularity | 960 downloads / month |
| Licence | Open weights |
About
img { display: inline-table; vertical-align: small; margin: 0; padding: 0; } | | | |
This model transcribes speech in Arabic language with punctuation 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 without 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
[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.
This model provides transcribed speech as a string for a given audio sample.
The model is non-streaming and outputs the speech as a string without 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_pc_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_pc_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_pc_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 760 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 | 11.460 |
| Automatic Speech Recognition | MCV17 | Test WER | 10.200 |
| automatic-speech-recognition | FLEURS | Test WER | 8.180 |
Using it via the API
Once AxForge deploys stt-ar-fastconformer-hybrid-large-pc for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (stt-ar-fastconformer-hybrid-large-pc 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-pc" -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.