Skip to content

Commit a54b7b7

Browse files
authored
Merge pull request #33 from linto-ai/bugfix/whisper-large-v3
Support of new Whisper model large-v3
2 parents b2fc9f0 + 586f1d6 commit a54b7b7

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

.envdefault

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ BROKER_PASS=
1313
# STT MODELING PARAMETERS
1414
############################################
1515

16-
# The model can be a path to a model, or a model name ("tiny", "base", "small", "medium", "large-v1" or "large-v2")
16+
# The model can be a path to a model, or a model name ("tiny", "base", "small", "medium", "large-v1", "large-v2" or "large-v3")
1717
MODEL=medium
1818

1919
# The language can be in different formats: "en", "en-US", "English", ...

RELEASE.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 4.0.5
2+
- Support of Whisper large-v3 model
3+
14
# 4.0.4
25
- Add integration of Whisper models from transformers
36
- Add support of prompt from Whisper models (env variable PROMPT)

requirements.ctranslate2.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ pyyaml>=5.4.1
1010
requests>=2.26.0
1111
wavio>=0.0.4
1212
websockets
13-
ctranslate2==3.18.0
14-
#faster_whisper==0.7.1
15-
git+https://github.com/linto-ai/faster-whisper.git@d9cffcaad763def754124977cc66150f0efcd7ea
13+
#faster_whisper==0.10.0
14+
# This is version faster_whisper==0.9.0 + prompt propagation + fix for large-v3
15+
git+https://github.com/linto-ai/faster-whisper.git@aad9e7508b528e79be2a9975ac79ef8317f02a6d

stt/processing/load_model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def load_whisper_model(model_type_or_file, device="cpu", download_root=None):
5252
device = "cuda"
5353

5454
if not os.path.isfile(os.path.join(model_type_or_file, "model.bin")) and \
55-
model_type_or_file not in ["tiny.en", "tiny", "base.en", "base", "small.en", "small", "medium.en", "medium", "large-v1", "large-v2"]:
55+
not max([model_type_or_file.startswith(prefix) for prefix in ["tiny", "base", "small", "medium", "large"]]):
5656

5757
# Convert transformer model
5858

0 commit comments

Comments
 (0)