mirror of
https://github.com/shirayu/whispering.git
synced 2024-11-14 04:31:34 +00:00
Fix typos
This commit is contained in:
parent
1e7166e378
commit
1a276d042d
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ class VAD:
|
|||
self,
|
||||
*,
|
||||
audio: np.ndarray,
|
||||
thredhold: float = 0.5,
|
||||
threshold: float = 0.5,
|
||||
total_block_number: Optional[int] = None,
|
||||
) -> Iterator[SpeechSegment]:
|
||||
# audio.shape should be multiple of (N_FRAMES,)
|
||||
|
@ -50,7 +50,7 @@ class VAD:
|
|||
torch.from_numpy(audio[start:end]),
|
||||
SAMPLE_RATE,
|
||||
).item()
|
||||
if vad_prob > thredhold:
|
||||
if vad_prob > threshold:
|
||||
if start_block_idx is None:
|
||||
start_block_idx = idx
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue