(self, power_spectrum, phase_spectrum, sample_rate=None)
Implement frequency domain to time domain conversion.
    :param power_spectrum: a float tensor of size (num_frames, num_frequencies).
    :param phase_spectrum: a float tensor of size (num_frames, num_frequencies).
    :param sample_rate: a scalar tensor.
    :return: audio data
Implement frequency domain to time domain conversion.
    :param power_spectrum: a float tensor of size (num_frames, num_frequencies).
    :param phase_spectrum: a float tensor of size (num_frames, num_frequencies).
    :param sample_rate: a scalar tensor.
    :return: audio data
Implement frequency domain to time domain conversion . : param power_spectrum : a float tensor of size ( num_frames num_frequencies ) . : param phase_spectrum : a float tensor of size ( num_frames num_frequencies ) . : param sample_rate : a scalar tensor . : return : audio data
def call(self, power_spectrum, phase_spectrum, sample_rate=None):
    """
    Implement frequency domain to time domain conversion.
    :param power_spectrum: a float tensor of size (num_frames, num_frequencies).
    :param phase_spectrum: a float tensor of size (num_frames, num_frequencies).
    :param sample_rate: a scalar tensor.
    :return: audio data
    """

    p = self.config
    with tf.name_scope('synthfiltbank'):

      if sample_rate == None:
        sample_rate = tf.constant(p.sample_rate, dtype=tf.int32)

      assert_op = tf.assert_equal(
          tf.constant(p.sample_rate), tf.cast(sample_rate, dtype=tf.int32))
      with tf.control_dependencies([assert_op]):

        audio_data = py_x_ops.synthfiltbank(
            power_spectrum,
            phase_spectrum,
            sample_rate,
            window_length=p.window_length,
            frame_length=p.frame_length)

        return audio_data
def call ( self , power_spectrum , phase_spectrum , sample_rate = None ) : p = self . config with tf . name_scope ( 'synthfiltbank' ) : if sample_rate == None : sample_rate = tf . constant ( p . sample_rate , dtype = tf . int32 ) assert_op = tf . assert_equal ( tf . constant ( p . sample_rate ) , tf . cast ( sample_rate , dtype = tf . int32 ) ) with tf . control_dependencies ( [ assert_op ] ) : audio_data = py_x_ops . synthfiltbank ( power_spectrum , phase_spectrum , sample_rate , window_length = p . window_length , frame_length = p . frame_length ) return audio_data