RASMUS's picture
Update README.md
c2c369e
|
raw
history blame
492 Bytes
metadata
license: apache-2.0
language:
  - fi
tags:
  - speech-recognition

How to use in python, tested with faster-whisper==0.10.0

import faster_whisper
model = faster_whisper.WhisperModel("Finnish-NLP/whisper-large-finnish-v3-ct2")
print("model loaded")

segments, info = model.transcribe(audio_path, word_timestamps=True, beam_size=5, language="fi")

for segment in segments:
    for word in segment.words:
        print("[%.2fs -> %.2fs] %s" % (word.start, word.end, word.word))