in augment/effects.py [0:0]
def time_dropout(self, max_frames: Optional[int] = None, max_seconds: Optional[float] = None):
"""
>>> np.random.seed(1)
>>> chain = EffectChain().time_dropout(max_seconds=0.1)
>>> t = torch.ones([1, 16000])
>>> x = chain.apply(t, {'rate': 16000}, {'rate': 16000})
>>> x.min().item(), x.max().item()
(0.0, 1.0)
>>> (x == 0).sum().item()
1061
>>> (x[:, 235:1296] == 0).all().item()
True
>>> (x[:, :235] == 0).any().item()
False
>>> (x[:, 235 + 1061 + 1:] == 0).any().item()
False
"""
self._chain.append(TimeDropout(max_frames, max_seconds))
return self