Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,20 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
+
language:
|
4 |
+
- fi
|
5 |
+
tags:
|
6 |
+
- speech-recognition
|
7 |
---
|
8 |
+
|
9 |
+
<h3> Repo for files to be used with faster-whisper (Tested with versio 0.10</h3>
|
10 |
+
```
|
11 |
+
import faster_whisper
|
12 |
+
model = faster_whisper.WhisperModel("Finnish-NLP/whisper-large-finnish-v3-ct2")
|
13 |
+
print("model loaded")
|
14 |
+
|
15 |
+
segments, info = model.transcribe(audio_path, word_timestamps=True, beam_size=5, language='fi')
|
16 |
+
|
17 |
+
for segment in segments:
|
18 |
+
for word in segment.words:
|
19 |
+
print("[%.2fs -> %.2fs] %s" % (word.start, word.end, word.word))
|
20 |
+
```
|