(filename, hparams)
return spec
Processes an audio file into a spectrogram.
Processes an audio file into a spectrogram.
Processes an audio file into a spectrogram .
def create_spec(filename, hparams):
  """Processes an audio file into a spectrogram."""
  wav_data = tf.gfile.Open(filename, 'rb').read()
  spec = data.wav_to_spec(wav_data, hparams)
  return spec
def create_spec ( filename , hparams ) : wav_data = tf . gfile . Open ( filename , 'rb' ) . read ( ) spec = data . wav_to_spec ( wav_data , hparams ) return spec