Downloads · 30 days
4
4% of all-time downloads
aerospike2010/faster-whisper-quran
faster-whisper-quran is a automatic speech recognition model from aerospike2010. Use it when you need speech turned into text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
4
4% of all-time downloads
All-time downloads
106
Public
Repo size
134 B
Likes
0
Public
Click a slice to open those files.
.json1.4 MB · 99%
From the Hugging Face model README
TOC:
This model is a CTranslate2 version of tarteel-ai/whisper-base-ar-quran. The conversion was performed using the following command:
# Don't add vocab.json and config.json , as they already get created while converting to new model
ct2-transformers-converter --model tarteel-ai/whisper-base-ar-quran --force --output_dir "path/to/output/dir/faster-whisper-base-ar-quran" --quantization float16 --copy_files added_tokens.json normalizer.json preprocessor_config.json special_tokens_map.json tokenizer_config.json
To use the ct2-transformers-converter command, you'll need to install the required dependencies:
pip install transformers[torch]
For more information about the converter, see the CTranslate2 documentation or the "CTranslate2 Installation" section below
This conversion transforms the model from OpenAI's vanilla Whisper family to the faster-whisper family, making it compatible with WhisperX which utilizes faster-whisper versions for improved performance.
Follow the Python Usage 🐍 section in WhisperX's README page here, but change this line:
model = whisperx.load_model("large-v2", device, compute_type=compute_type)
to this line:
model = whisperx.load_model("OdyAsh/faster-whisper-base-ar-quran", device, compute_type=compute_type)
Another usage example: specific parts of a repo (called surah-splitter) here and here.
You'll see that in the command above, we're using --quantization float16. However, the original tarteel-ai/whisper-base-ar-quran is in float32 precision (source). Yet, float16 conversion was kept for the following reasons:
However, if the transcription results are not satisfactory for your use case, you can always convert the model to float32 precision by:
--quantization argument to float32 in the command above to get a larger model size (around 290mb).compute_type argument of whisperx.load_model() to float32.
In the OdyAsh/faster-whisper-base-ar-quran GitHub repo, you'll see pyproject.toml and uv.lock files, indicating that you can use uv to install the required packages for the ct2-transformers-converter command instead of pip (if you want).
Steps:
Install uv if not already installed by following this section in their docs.
In your terminal, navigate to your local directory in which you cloned the OdyAsh/faster-whisper-base-ar-quran GitHub repo.
Install the required packages right away (since uv.lock file is already present in that local directory):
uv install
ct2-transformers-converter --help