Skip to content

Commit

Permalink
fix docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
MahmoudAshraf97 committed Nov 19, 2024
1 parent 5277fae commit 8762e8b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions faster_whisper/transcribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def transcribe(
with the next word
append_punctuations: If word_timestamps is True, merge these punctuation symbols
with the previous word
multilingual: If True, perform transcription on multilingual videos. Set as False.
multilingual: Perform language detection on every segment.
vad_filter: Enable the voice activity detection (VAD) to filter out parts of the audio
without speech. This step is using the Silero VAD model
https://github.com/snakers4/silero-vad.
Expand Down Expand Up @@ -1133,7 +1133,6 @@ def generate_segments(
if seek > 0 or encoder_output is None:
encoder_output = self.encode(segment)

# Perform language detection at every segment,
if options.multilingual:
results = self.model.detect_language(encoder_output)
language_token, language_probability = results[0][0]
Expand Down

0 comments on commit 8762e8b

Please sign in to comment.