def __init__(self, fs, win_length_ms, win_shift_ms, n_lpc, pre_emphasis_coef): self.PRE_EMPH = pre_emphasis_coef self.n_lpc = n_lpc self.FRAME_LEN = int(float(win_length_ms) / 1000 * fs) self.FRAME_SHIFT = int(float(win_shift_ms) / 1000 * fs) self.window = hamming(self.FRAME_LEN)
def __init__(self, fs, win_length_ms, win_shift_ms, n_lpc, pre_emphasis_coef): self.PRE_EMPH = pre_emphasis_coef self.n_lpc = n_lpc #self.n_lpcc = n_lpcc + 1 self.FRAME_LEN = int(float(win_length_ms) / 1000 * fs) self.FRAME_SHIFT = int(float(win_shift_ms) / 1000 * fs) self.window = hamming(self.FRAME_LEN)