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