Update README.md
Browse files
README.md
CHANGED
@@ -6,13 +6,13 @@ tags:
|
|
6 |
- speech-recognition
|
7 |
---
|
8 |
|
9 |
-
|
10 |
```python
|
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=
|
16 |
|
17 |
for segment in segments:
|
18 |
for word in segment.words:
|
|
|
6 |
- speech-recognition
|
7 |
---
|
8 |
|
9 |
+
|
10 |
```python
|
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:
|