faster-whisper-base-ar-quran
A CTranslate2 conversion of tarteel-ai/whisper-base-ar-quran, Tarteel's Whisper base model fine-tuned on Quran recitation. It loads directly in faster-whisper and runs on a CPU without torch.
This is the recognition model used by Sawt Sakinah to find which surahs are recited in a recording. The weights are unchanged apart from quantization; all credit for the model goes to Tarteel AI.
Conversion
Converted from source commit 5c3c53fdf9272c4f6ee0bee09a1e5a4a615ee25c with CTranslate2 4.8.3
and transformers 4.57.6:
ct2-transformers-converter --model tarteel-ai/whisper-base-ar-quran \
--revision 5c3c53fdf9272c4f6ee0bee09a1e5a4a615ee25c \
--output_dir faster-whisper-base-ar-quran --quantization int8 \
--copy_files preprocessor_config.json tokenizer_config.json special_tokens_map.json added_tokens.json normalizer.json
tokenizer.json is the source repository's tokenizer saved in the fast-tokenizer format
(WhisperTokenizerFast.save_pretrained), which faster-whisper needs to load offline.
Usage
from faster_whisper import WhisperModel
model = WhisperModel("hkhan0327/faster-whisper-base-ar-quran", device="cpu", compute_type="int8")
segments, info = model.transcribe("recitation.wav", language="ar", word_timestamps=True)
for segment in segments:
for word in segment.words:
print(f"{word.start:.2f} {word.end:.2f} {word.word}")
License
Apache-2.0, as the source model. OpenAI Whisper itself is released under the MIT License.