Whisper for Khmer language
Collection
4 items • Updated
This model was converted to MLX format from openai-whisper-small, then fine-tined to Khmer language using three datasets:
train split of openslr/openslr SLR42It achieves the following word error rate (wer) on 2 popular datasets:
test split of google/fleurs km-khNOTE MLX format is usable for M-chip series of Apple.
pip install mlx-whisper
Write a python script, example.py, as the following
import mlx_whisper
result = mlx_whisper.transcribe(
SPEECH_FILE_NAME,
path_or_hf_repo="Kimang18/whisper-small-khmer-mlx-fp16-q4",
fp16=True
)
print(result['text'])
Then execute this script example.py to see the result.
You can also use command line in terminal
mlx_whisper --model Kimang18/whisper-small-khmer-mlx-fp16-q4 --task transcribe SPEECH_FILE_NAME --fp16 True
Quantized