def __init__(self, N_d, N_s, K, f_s, xi_map_type, xi_map_params, cd_map_type, cd_map_params): super().__init__(N_d, N_s, K, f_s) """ Argument/s N_d - window duration (samples). N_s - window shift (samples). K - number of frequency bins. f_s - sampling frequency. _ - _____________. """ self.n_feat = K self.n_outp = self.n_feat * 2 self.xi_map = map_selector(xi_map_type, xi_map_params) self.cd_map = map_selector(cd_map_type, cd_map_params)
def __init__(self, N_d, N_s, K, f_s, xi_map_type, xi_map_params, gamma_map_type, gamma_map_params): super().__init__(N_d, N_s, K, f_s) """ Argument/s N_d - window duration (samples). N_s - window shift (samples). K - number of frequency bins. f_s - sampling frequency. xi_map_type - instantaneous a priori SNR map type. xi_map_params - parameters for the a priori SNR map. gamma_map_type - instantaneous a posteriori SNR map type. gamma_map_params - parameters for the a posteriori SNR map. """ self.n_feat = math.ceil(K / 2 + 1) self.n_outp = self.n_feat * 2 self.xi_map = map_selector(xi_map_type, xi_map_params) self.gamma_map = map_selector(gamma_map_type, gamma_map_params)
def __init__(self, N_d, N_s, K, f_s, xi_map_type, xi_map_params, s_stps_map_type, s_stps_map_params): super().__init__(N_d, N_s, K, f_s) """ Argument/s N_d - window duration (samples). N_s - window shift (samples). K - number of frequency bins. f_s - sampling frequency. xi_map_type - instantaneous a priori SNR map type. xi_map_params - parameters for the a priori SNR map. s_stps_map_type - phase map type. s_stps_map_params - parameters for the clean-speech STPS map. """ self.n_feat = math.ceil(K / 2 + 1) * 2 self.n_outp = self.n_feat self.xi_map = map_selector(xi_map_type, xi_map_params) self.s_stps_map = map_selector(s_stps_map_type, s_stps_map_params)
def __init__(self, N_d, N_s, K, f_s, mag_map_type, mag_map_params): super().__init__(N_d, N_s, K, f_s) """ Argument/s N_d - window duration (samples). N_s - window shift (samples). K - number of frequency bins. f_s - sampling frequency. mag_map_type - clean-speech STMS map type. mag_map_params - parameters for the clean-speech STMS map. """ self.n_feat = math.ceil(K / 2 + 1) self.n_outp = self.n_feat self.mag_map = map_selector(mag_map_type, mag_map_params)