espnet2.enh.layers.bsrnn.get_mel_subbands
Less than 1 minute
espnet2.enh.layers.bsrnn.get_mel_subbands
espnet2.enh.layers.bsrnn.get_mel_subbands(input_dim, n_mels=40, target_fs=48000)
Get mel division of subbands.
Reference: : https://github.com/lucidrains/BS-RoFormer/blob/main/bs_roformer/mel_band_roformer.py#L432-L464
- Parameters:
- input_dim (int) – number of frequency bins corresponding to target_fs Assumed to be n_fft // 2 + 1, where n_fft is the FFT size.
- n_mels (int) – number of mel frequency bands to be used.
- target_fs (int) – target sampling frequency in Hz.
- Returns: a tuple of overlapping subbands (start and end indices)
- Return type: subbands (tuple)