Views
No views yet
1ct2-transformers-converter --model carlosdanielhernandezmena/whisper-large-maltese-8k-steps-64h \
2 --output_dir whisper-large-maltese-8k-steps-64h-ct2 \
3 --quantization float161from faster_whisper import WhisperModel
2
3model_size = "whisper-large-maltese-8k-steps-64h-ct2"
4
5# Run on GPU with FP16
6model = WhisperModel(model_size, device="cuda", compute_type="float16")
7
8# or run on GPU with INT8
9# model = WhisperModel(model_size, device="cuda", compute_type="int8_float16")
10# or run on CPU with INT8
11# model = WhisperModel(model_size, device="cpu", compute_type="int8")
12
13segments, info = model.transcribe("audio.mp3", beam_size=5)
14
15print("Detected language '%s' with probability %f" % (info.language, info.language_probability))
16
17for segment in segments:
18 print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))1@misc{mena2023whisperlargemaltesect2,
2 title={Acoustic Model in Maltese: whisper-large-maltese-8k-steps-64h-ct2.},
3 author={Hernandez Mena, Carlos Daniel},
4 url={https://huggingface.co/carlosdanielhernandezmena/whisper-large-maltese-8k-steps-64h-ct2},
5 year={2023}
6}