(wav_audio, hparams)
EXPERIMENTAL: Log mel spec with ops that can be made TFLite compatible.
EXPERIMENTAL: Log mel spec with ops that can be made TFLite compatible.
EXPERIMENTAL : Log mel spec with ops that can be made TFLite compatible .
def tflite_compat_mel(wav_audio, hparams):
  """EXPERIMENTAL: Log mel spec with ops that can be made TFLite compatible."""
  samples, decoded_sample_rate = tf.audio.decode_wav(
      wav_audio, desired_channels=1)
  samples = tf.squeeze(samples, axis=1)
  # Ensure that we decoded the samples at the expected sample rate.
  with tf.control_dependencies(
      [tf.assert_equal(decoded_sample_rate, hparams.sample_rate)]):
    return tflite_compat_mel_from_samples(samples, hparams)
def tflite_compat_mel ( wav_audio , hparams ) : samples , decoded_sample_rate = tf . audio . decode_wav ( wav_audio , desired_channels = 1 ) samples = tf . squeeze ( samples , axis = 1 ) # Ensure that we decoded the samples at the expected sample rate. with tf . control_dependencies ( [ tf . assert_equal ( decoded_sample_rate , hparams . sample_rate ) ] ) : return tflite_compat_mel_from_samples ( samples , hparams )