(self)
return np.matmul(m_t, np.diag(d))
Get the inverse mel transformation matrix.
Get the inverse mel transformation matrix.
Get the inverse mel transformation matrix .
def _mel_to_linear_matrix(self):
    """Get the inverse mel transformation matrix."""
    m = self._linear_to_mel_matrix()
    m_t = np.transpose(m)
    p = np.matmul(m, m_t)
    d = [1.0 / x if np.abs(x) > 1.0e-8 else x for x in np.sum(p, axis=0)]
    return np.matmul(m_t, np.diag(d))
def _mel_to_linear_matrix ( self ) : m = self . _linear_to_mel_matrix ( ) m_t = np . transpose ( m ) p = np . matmul ( m , m_t ) d = [ 1.0 / x if np . abs ( x ) > 1.0e-8 else x for x in np . sum ( p , axis = 0 ) ] return np . matmul ( m_t , np . diag ( d ) )