Skip to content

Commit

Permalink
Remove unused faster-whisper dep
Browse files Browse the repository at this point in the history
kanjieater committed Jan 14, 2024
1 parent 37a674b commit 6d32340
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
fuzzywuzzy==0.18.0
pysbd==0.3.4
python-Levenshtein==0.12.2
git+https://github.com/jianfch/stable-ts.git@f9ca03b
git+https://github.com/jianfch/stable-ts.git@6d0746c
natsort==8.2.0
faster-whisper==0.10.0

#Anki support
requests==2.26.0
8 changes: 6 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
@@ -45,7 +45,11 @@ def align_text(model, working_folder, script_file, final):
language="ja",
original_split=True,
prepend_punctuations='''「"'“¿([{-)''',
append_punctuations='''.。,,!!??::”)]}、)」''')
append_punctuations='''.。,,!!??::”)]}、)」''',
max_word_dur=6.0,
word_dur_factor=4.0,

)
result.to_srt_vtt(final, word_level=False)
return result

@@ -253,7 +257,7 @@ def align_transcript(working_folder, content_name):
align_text(model, working_folder, split_script[0], final)

# convert_sub_format(out, final)
# remove_files(split_script + subs_file + [out])
remove_files(split_script)


if __name__ == "__main__":

0 comments on commit 6d32340

Please sign in to comment.