Views
No views yet
pip install faster-whisper1from faster_whisper import WhisperModel
2
3# Load model
4model = WhisperModel("Tnaot/whisper-large-v3-khmer-ct2", device="cuda", compute_type="int8_float16")
5
6# Transcribe audio
7segments, info = model.transcribe(
8 "audio.wav",
9 language="km",
10 task="transcribe",
11 beam_size=5,
12 vad_filter=True
13)
14
15# Print results
16for segment in segments:
17 print(f"[{segment.start:.2f}s -> {segment.end:.2f}s] {segment.text}")faster-whisper audio.wav --model Tnaot/whisper-large-v3-khmer-ct2 --language km --task transcribe1@misc{whisper-large-v3-khmer-ct2,
2 title={Whisper Large V3 Khmer - CTranslate2},
3 author={Converted from Tnaot/whisper-large-v3-khmer-5hr},
4 year={2025},
5 publisher={Hugging Face},
6 howpublished={\url{https://huggingface.co/Tnaot/whisper-large-v3-khmer-ct2}}
7}