masking_methods.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:mss_pytorch 作者: Js-Mim 项目源码 文件源码
def phaseSensitive(self):
        """
            Computation of Phase Sensitive Mask. As appears in :
            H Erdogan, John R. Hershey, Shinji Watanabe, and Jonathan Le Roux,
            "Phase-sensitive and recognition-boosted speech separation using deep recurrent neural networks,"
            in ICASSP 2015, Brisbane, April, 2015.

        Args:
            mTarget:   (2D ndarray) Magnitude Spectrogram of the target component
            pTarget:   (2D ndarray) Phase Spectrogram of the output component
            mY:        (2D ndarray) Magnitude Spectrogram of the residual component
            pY:        (2D ndarray) Phase Spectrogram of the residual component
        Returns:
            mask:      (2D ndarray) Array that contains time frequency gain values

        """
        print('Phase Sensitive Masking.')
        # Compute Phase Difference
        Theta = (self._pTarget - self._pY)
        self._mask = 2./ (1. + np.exp(-np.multiply(np.divide(self._sTarget, self._eps + self._nResidual), np.cos(Theta)))) - 1.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号