-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed numpy issue and updated code to use speechbrain 1.0
- Loading branch information
NavodSporoDev
committed
Feb 11, 2025
1 parent
fcd9ccb
commit 87d6d87
Showing
6 changed files
with
19 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
log_folder = "logs" # log folder for storing transcripts | ||
modelSize = "tiny" # size of model to be used [tiny, small, medium, large-v1, large-v2, large-v3] | ||
quantization = False # setting this 'True' may speed up the process but lower the accuracy | ||
ACCESS_TOKEN = "huggingface api key" # get permission to access pyannote/[email protected] on huggingface | ||
ACCESS_TOKEN = "huggingface access token" # get permission to access pyannote/[email protected] on huggingface | ||
|
||
# quantization only works on faster-whisper | ||
transcriptor = Transcriptor(file, log_folder, language, modelSize, ACCESS_TOKEN, voices_folder, quantization) | ||
|
@@ -16,13 +16,13 @@ | |
res = transcriptor.whisper() | ||
|
||
# use faster-whisper (simply faster) | ||
res = transcriptor.faster_whisper() | ||
#res = transcriptor.faster_whisper() | ||
|
||
# use a custom trained whisper model | ||
res = transcriptor.custom_whisper("D:/whisper_tiny_model/tiny.pt") | ||
#res = transcriptor.custom_whisper("D:/whisper_tiny_model/tiny.pt") | ||
|
||
# use a huggingface whisper model | ||
res = transcriptor.huggingface_model("Jingmiao/whisper-small-chinese_base") | ||
#res = transcriptor.huggingface_model("Jingmiao/whisper-small-chinese_base") | ||
|
||
# use assembly ai model | ||
res = transcriptor.assemby_ai_model("assemblyAI api key") | ||
#res = transcriptor.assemby_ai_model("assemblyAI api key") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
transformers>=4.36.2, <5.0.0 | ||
torch>=2.1.2, <3.0.0 | ||
torchaudio>=2.1.2, <3.0.0 | ||
pydub>=0.25.1, <1.0.0 | ||
pyannote.audio>=3.1.1, <4.0.0 | ||
speechbrain>=0.5.16, <1.0.0 | ||
accelerate>=0.26.1, <1.0.0 | ||
faster-whisper>=0.10.1, <1.0.0 | ||
openai-whisper>=20231117, <20240927 | ||
transformers | ||
torch | ||
torchaudio | ||
pydub | ||
pyannote.audio | ||
speechbrain | ||
accelerate | ||
faster-whisper | ||
openai-whisper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters