Skip to content

Commit aa88649

Browse files
Update run.py
1 parent a11dfa0 commit aa88649

File tree

1 file changed

+2
-2
lines changed
  • speech_recognition/whisper

1 file changed

+2
-2
lines changed

speech_recognition/whisper/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def single_pass_pytorch(_runner, _librispeech):
2323
)
2424

2525
def transcribe_wrapper(audio):
26-
return transcribe(model, audio, verbose=None)
26+
return transcribe(model, audio, no_speech_threshold=1.0, verbose=None)
2727

2828
runner = PyTorchRunnerV2(transcribe_wrapper, throughput_only=True)
2929
librispeech = LibriSpeech()
@@ -52,7 +52,7 @@ def single_pass_pytorch(_runner, _librispeech):
5252
)
5353

5454
def transcribe_wrapper(audio):
55-
return transcribe(model, audio, verbose=None)
55+
return transcribe(model, audio, no_speech_threshold=1.0, verbose=None)
5656

5757
runner = PyTorchRunnerV2(transcribe_wrapper)
5858
librispeech = LibriSpeech()

0 commit comments

Comments
 (0)