espnet2.layers.augmentation.bandwidth_limitation
Less than 1 minute
espnet2.layers.augmentation.bandwidth_limitation
espnet2.layers.augmentation.bandwidth_limitation(waveform, sample_rate: int, res_type='random')
Apply the bandwidth limitation distortion to the input signal.
- Parameters:
- waveform (np.ndarray) – a single speech sample (…, Time)
- sample_rate (int) – input sampling rate in Hz
- fs_new (int) – effective sampling rate in Hz
- res_type (str) – resampling method
- Returns: bandwidth-limited speech sample (…, Time)
- Return type: ret (np.ndarray)