|
--- |
|
license: apache-2.0 |
|
language: |
|
- fi |
|
tags: |
|
- speech-recognition |
|
--- |
|
|
|
<h3> Repo for files to be used with faster-whisper (Tested with versio 0.10</h3> |
|
```python |
|
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)) |
|
``` |