File size: 492 Bytes
a197707
 
3a02e1e
 
 
 
a197707
3a02e1e
c2c369e
1a34264
3a02e1e
 
 
 
a8fe0f0
3a02e1e
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
license: apache-2.0
language:
- fi
tags:
- speech-recognition
---

How to use in python, tested with faster-whisper==0.10.0
```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))
```