espnet2.asr_transducer.utils.check_short_utt
Less than 1 minute
espnet2.asr_transducer.utils.check_short_utt
espnet2.asr_transducer.utils.check_short_utt(sub_factor: int, size: int) → Tuple[bool, int]
Check if the input is too short for subsampling.
- Parameters:
- sub_factor – Subsampling factor for Conv2DSubsampling.
- size – Input size.
- Returns: Whether an error should be sent. : Size limit for specified subsampling factor.