Please provide example usage

#1
by asmith26 - opened

Hi @synesthesiam ,

I'm hoping to try run this model on my local computer (CPU Linux), just wondering how I run this?

Many thanks for any help!

I would also be interested in this, thanks

Rhasspy org

You can run this with faster-whisper: https://github.com/SYSTRAN/faster-whisper

Many thanks for your help @synesthesiam ! I got this working:

from faster_whisper import WhisperModel

model = WhisperModel("rhasspy/faster-whisper-medium-int8", device="cpu", compute_type="int8")
segments, info = model.transcribe("jfk.flac", beam_size=5)

print("Detected language '%s' with probability %f" % (info.language, info.language_probability))
for segment in segments:
    print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))

Sign up or log in to comment