Views
No views yet
pip install faster-whisper1from faster_whisper import WhisperModel
2
3# Load model (auto-download from HuggingFace)
4model = WhisperModel("Dafisns/whisper-turbo-tedlium-ct2", device="cuda", compute_type="float32")
5
6# Transcribe
7segments, info = model.transcribe("audio.mp3", language="en")
8
9for segment in segments:
10 print(f"[{segment.start:.2f}s -> {segment.end:.2f}s] {segment.text}")1@misc{whisper-turbo-tedlium-ct2,
2 author = {Dafisns},
3 title = {Whisper Turbo Fine-tuned on TED-LIUM (CTranslate2)},
4 year = {2024},
5 publisher = {HuggingFace},
6 url = {https://huggingface.co/Dafisns/whisper-turbo-tedlium-ct2}
7}