class_docstr: Helper functions to compute specgrams.
class_docstr_tok: ["Helper","functions","to","compute","specgrams","."]
code: def __init__(
      self,
      audio_length,
      spec_shape,
      overlap,
      sample_rate,
      mel_downscale,
      ifreq=True,
      discard_dc=True,
  ):
      self._audio_length = audio_length
      self._spec_shape = spec_shape
      self._overlap = overlap
      self._sample_rate = sample_rate
      self._mel_downscale = mel_downscale
      self._ifreq = ifreq
      self._discard_dc = discard_dc
  
      self._nfft, self._nhop = self._get_nfft_nhop()
      self._pad_l, self._pad_r = self._get_padding()
  
      self._eps = 1.0e-6
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from magenta.models.gansynth.lib import spectral_ops
  import numpy
  import tensorflow.compat.v1
label_desc: Use image node_id 1 to create a new SpecgramsHelper object from inherited base classes: object with example: obj = SpecgramsHelper(audio_length, spec_shape, overlap, sample_rate, mel_downscale, ifreq, discard_dc)