Skip to content

Commit

Permalink
Removes language identifier when recognize audio
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Phan Manh committed May 23, 2024
1 parent 8b3e143 commit 0e23d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transcribe_2_subtitles.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def movie_duration(input_file):
start = time.time()

result = r.recognize_whisper(
audio_text, show_dict=True, language="chinese", word_timestamps=True
audio_text, show_dict=True, word_timestamps=True
) # translate=True,
os.remove(audio_file)
end = time.time()
Expand Down

0 comments on commit 0e23d4b

Please sign in to comment.