Skip to content

Commit

Permalink
fixed WordTIming.suppress_silence()
Browse files Browse the repository at this point in the history
-fixed `result.WordTIming.suppress_silence()` not taking more than 2 positional arguments by reverting changes made to `result.WordTIming.suppress_silence()` in e2f9458
  • Loading branch information
jianfch committed May 2, 2024
1 parent e2f9458 commit 0546d76
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions stable_whisper/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,10 @@ def unlock_both(self):
def suppress_silence(self,
silent_starts: np.ndarray,
silent_ends: np.ndarray,
*,
min_word_dur: Optional[float] = None,
min_silence_dur: Optional[float] = None,
nonspeech_error: float = 0.3,
keep_end: Optional[bool] = True):
suppress_silence(self, silent_starts, silent_ends, min_word_dur, nonspeech_error, keep_end, min_silence_dur)
suppress_silence(self, silent_starts, silent_ends, min_word_dur, nonspeech_error, keep_end)
return self

def rescale_time(self, scale_factor: float):
Expand Down

0 comments on commit 0546d76

Please sign in to comment.