Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
whisper-asr-webservice
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Schwertgen
whisper-asr-webservice
Commits
986a18af
Commit
986a18af
authored
1 year ago
by
Ahmet Öner
Browse files
Options
Downloads
Patches
Plain Diff
Upgrade Whisper to v20230918
parent
7e842996
No related branches found
No related tags found
No related merge requests found
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
CHANGELOG.md
+5
-0
5 additions, 0 deletions
CHANGELOG.md
README.md
+1
-1
1 addition, 1 deletion
README.md
app/openai_whisper/core.py
+10
-5
10 additions, 5 deletions
app/openai_whisper/core.py
poetry.lock
+119
-64
119 additions, 64 deletions
poetry.lock
pyproject.toml
+1
-1
1 addition, 1 deletion
pyproject.toml
with
136 additions
and
71 deletions
CHANGELOG.md
+
5
−
0
View file @
986a18af
...
@@ -8,6 +8,11 @@ Unreleased
...
@@ -8,6 +8,11 @@ Unreleased
-
Updated model conversion method (for Faster Whisper) to use Hugging Face downloader
-
Updated model conversion method (for Faster Whisper) to use Hugging Face downloader
### Changed
-
Upgraded
-
OpenAI Whisper to v20230918
[1.1.1] (2023-05-29)
[1.1.1] (2023-05-29)
--------------------
--------------------
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
−
1
View file @
986a18af
...
@@ -9,7 +9,7 @@ Whisper is a general-purpose speech recognition model. It is trained on a large
...
@@ -9,7 +9,7 @@ Whisper is a general-purpose speech recognition model. It is trained on a large
## Features
## Features
Current release (v1.1.1) supports following whisper models:
Current release (v1.1.1) supports following whisper models:
-
[
openai/whisper
](
https://github.com/openai/whisper
)
@
[
v20230
124
](
https://github.com/openai/whisper/releases/tag/v20230
124
)
-
[
openai/whisper
](
https://github.com/openai/whisper
)
@
[
v20230
918
](
https://github.com/openai/whisper/releases/tag/v20230
918
)
-
[
faster-whisper
](
https://github.com/guillaumekln/faster-whisper
)
@
[
0.4.1
](
https://github.com/guillaumekln/faster-whisper/releases/tag/v0.4.1
)
-
[
faster-whisper
](
https://github.com/guillaumekln/faster-whisper
)
@
[
0.4.1
](
https://github.com/guillaumekln/faster-whisper/releases/tag/v0.4.1
)
## Usage
## Usage
...
...
This diff is collapsed.
Click to expand it.
app/openai_whisper/core.py
+
10
−
5
View file @
986a18af
...
@@ -56,15 +56,20 @@ def language_detection(audio):
...
@@ -56,15 +56,20 @@ def language_detection(audio):
def
write_result
(
def
write_result
(
result
:
dict
,
file
:
BinaryIO
,
output
:
Union
[
str
,
None
]
result
:
dict
,
file
:
BinaryIO
,
output
:
Union
[
str
,
None
]
):
):
options
=
{
'
max_line_width
'
:
1000
,
'
max_line_count
'
:
10
,
'
highlight_words
'
:
False
}
if
output
==
"
srt
"
:
if
output
==
"
srt
"
:
WriteSRT
(
ResultWriter
).
write_result
(
result
,
file
=
file
)
WriteSRT
(
ResultWriter
).
write_result
(
result
,
file
=
file
,
options
=
options
)
elif
output
==
"
vtt
"
:
elif
output
==
"
vtt
"
:
WriteVTT
(
ResultWriter
).
write_result
(
result
,
file
=
file
)
WriteVTT
(
ResultWriter
).
write_result
(
result
,
file
=
file
,
options
=
options
)
elif
output
==
"
tsv
"
:
elif
output
==
"
tsv
"
:
WriteTSV
(
ResultWriter
).
write_result
(
result
,
file
=
file
)
WriteTSV
(
ResultWriter
).
write_result
(
result
,
file
=
file
,
options
=
options
)
elif
output
==
"
json
"
:
elif
output
==
"
json
"
:
WriteJSON
(
ResultWriter
).
write_result
(
result
,
file
=
file
)
WriteJSON
(
ResultWriter
).
write_result
(
result
,
file
=
file
,
options
=
options
)
elif
output
==
"
txt
"
:
elif
output
==
"
txt
"
:
WriteTXT
(
ResultWriter
).
write_result
(
result
,
file
=
file
)
WriteTXT
(
ResultWriter
).
write_result
(
result
,
file
=
file
,
options
=
options
)
else
:
else
:
return
'
Please select an output method!
'
return
'
Please select an output method!
'
This diff is collapsed.
Click to expand it.
poetry.lock
+
119
−
64
View file @
986a18af
This diff is collapsed.
Click to expand it.
pyproject.toml
+
1
−
1
View file @
986a18af
...
@@ -27,7 +27,7 @@ ffmpeg-python = "^0.2.0"
...
@@ -27,7 +27,7 @@ ffmpeg-python = "^0.2.0"
fastapi
=
"^0.95.1"
fastapi
=
"^0.95.1"
llvmlite
=
"^0.39.1"
llvmlite
=
"^0.39.1"
numba
=
"^0.56.4"
numba
=
"^0.56.4"
openai-whisper
=
"20230
124
"
openai-whisper
=
"20230
918
"
faster-whisper
=
"^0.4.1"
faster-whisper
=
"^0.4.1"
torch
=
[
torch
=
[
{markers
=
"sys_platform
=
=
'darwin'
and
platform_machine
=
=
'arm64'", url = "
https://download.pytorch.org/whl/cpu/torch
-1.13
.
0
-cp
310
-none-macosx_
11_0
_arm
64
.whl
"},
{markers
=
"sys_platform
=
=
'darwin'
and
platform_machine
=
=
'arm64'", url = "
https://download.pytorch.org/whl/cpu/torch
-1.13
.
0
-cp
310
-none-macosx_
11_0
_arm
64
.whl
"},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment