Skip to content

Commit

Permalink
lang param.
Browse files Browse the repository at this point in the history
  • Loading branch information
boocmp committed Jul 31, 2024
1 parent d349ca8 commit d009232
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/runners/audio_transcriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ def __init__(self):
@bentoml.Runnable.method(batchable=False)
def transcribe_audio(self, audio):
segments, info = self.model.transcribe(
audio, vad_filter=True, vad_parameters=dict(min_silence_duration_ms=500)
audio,
vad_filter=True,
vad_parameters=dict(min_silence_duration_ms=500),
language="en",
)

text = ""
Expand Down

0 comments on commit d009232

Please sign in to comment.