Skip to content

Commit c0c0ffa

Browse files
authored
Merge pull request #714 from Purfview/patch-4
Fix type hint for min_silence_at_max_speech (float -> int)
2 parents 3f0c9ea + 556a442 commit c0c0ffa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/silero_vad/utils_vad.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def get_speech_timestamps(audio: torch.Tensor,
223223
progress_tracking_callback: Callable[[float], None] = None,
224224
neg_threshold: float = None,
225225
window_size_samples: int = 512,
226-
min_silence_at_max_speech: float = 98,
226+
min_silence_at_max_speech: int = 98,
227227
use_max_poss_sil_at_max_speech: bool = True):
228228

229229
"""
@@ -272,7 +272,7 @@ def get_speech_timestamps(audio: torch.Tensor,
272272
neg_threshold: float (default = threshold - 0.15)
273273
Negative threshold (noise or exit threshold). If model's current state is SPEECH, values BELOW this value are considered as NON-SPEECH.
274274
275-
min_silence_at_max_speech: float (default - 98ms)
275+
min_silence_at_max_speech: int (default - 98ms)
276276
Minimum silence duration in ms which is used to avoid abrupt cuts when max_speech_duration_s is reached
277277
278278
use_max_poss_sil_at_max_speech: bool (default - True)

0 commit comments

Comments
 (0)