コード例 #1
0
 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)
コード例 #2
0
ファイル: LPC.py プロジェクト: GauravWaghmare/Phoneme
    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)