Skip to content

Commit

Permalink
use a stable version of faster-whisper
Browse files Browse the repository at this point in the history
  • Loading branch information
MahmoudAshraf97 committed Nov 26, 2024
1 parent accf5c0 commit 8ff3d0e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Whisper_Transcription_+_NeMo_Diarization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"outputs": [],
"source": [
"!pip install git+https://github.com/SYSTRAN/faster-whisper.git ctranslate2==4.4.0\n",
"!pip install faster-whisper>=1.1.0 ctranslate2==4.4.0\n",
"!pip install \"nemo-toolkit[asr]>=2.dev\"\n",
"!pip install git+https://github.com/MahmoudAshraf97/demucs.git\n",
"!pip install git+https://github.com/oliverguhr/deepmultilingualpunctuation.git\n",
Expand Down
2 changes: 0 additions & 2 deletions diarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,12 @@
language,
suppress_tokens=suppress_tokens,
batch_size=args.batch_size,
without_timestamps=True,
)
else:
transcript_segments, info = whisper_model.transcribe(
audio_waveform,
language,
suppress_tokens=suppress_tokens,
without_timestamps=True,
vad_filter=True,
)

Expand Down
2 changes: 0 additions & 2 deletions diarize_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,12 @@
language,
suppress_tokens=suppress_tokens,
batch_size=args.batch_size,
without_timestamps=True,
)
else:
transcript_segments, info = whisper_model.transcribe(
audio_waveform,
language,
suppress_tokens=suppress_tokens,
without_timestamps=True,
vad_filter=True,
)

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
wget
nemo_toolkit[asr]==2.0.0rc0
nltk
git+https://github.com/SYSTRAN/faster-whisper.git
faster-whisper>=1.1.0
git+https://github.com/MahmoudAshraf97/demucs.git
git+https://github.com/oliverguhr/deepmultilingualpunctuation.git
git+https://github.com/MahmoudAshraf97/ctc-forced-aligner.git
Expand Down

0 comments on commit 8ff3d0e

Please sign in to comment.