Skip to content

Commit

Permalink
Add support for large-v3 and bump faster-whisper
Browse files Browse the repository at this point in the history
  • Loading branch information
pluja committed Nov 25, 2023
1 parent 1eaf1c4 commit 82b531f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ whisper_models/
.env
.DS_Store
*.beta.yml
venv
3 changes: 2 additions & 1 deletion frontend/src/lib/components/ModalTranscriptionForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
'small.en',
'medium',
'medium.en',
'large-v2'
'large-v2',
'large-v3'
];
// Sort the languages
languages.sort((a, b) => {
Expand Down
2 changes: 1 addition & 1 deletion transcription-api/backends/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np
from faster_whisper.audio import decode_audio # type: ignore

SUPPORTED_MODELS = ["tiny", "tiny.en", "small", "small.en", "base", "base.en", "medium", "medium.en", "large-v2"]
SUPPORTED_MODELS = ["tiny", "tiny.en", "small", "small.en", "base", "base.en", "medium", "medium.en", "large-v2", "large-v3"]

WordData = TypedDict(
"WordData", {"word": str, "start": float | str, "end": float | str, "score": float}
Expand Down
1 change: 1 addition & 0 deletions transcription-api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class ModelSize(str, Enum):
medium_en = "medium.en"
medium = "medium"
large_v2 = "large-v2"
large_v3 = "large-v3"

class Languages(str, Enum):
auto = "auto"
Expand Down
2 changes: 1 addition & 1 deletion transcription-api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
fastapi==0.100.1
faster_whisper==0.9.0
faster-whisper @ https://github.com/guillaumekln/faster-whisper/archive/e1a218fab1ab02d637b79565995bf1a9c4c83a09.tar.gz
pydantic==2.1.1
python-dotenv==1.0.0
uvicorn==0.23.2
Expand Down

0 comments on commit 82b531f

Please sign in to comment.