code: def getLogSpectrumReference(frameSize=8192 + 1, n_octave=7):
      audio = MonoLoader(
          filename=join(testdata.audio_dir, "recorded/vignesh.wav"),
          sampleRate=44100,
      )()
  
      w = Windowing(type="hann", normalized=False)
      spectrum = Spectrum()
      logspectrum = LogSpectrum(frameSize=frameSize, nOctave=n_octave)
  
      logfreqspectrogram = []
      for frame in FrameGenerator(
          audio, frameSize=16384, hopSize=2048, startFromZero=True
      ):
          logfreqspectrum, _, _ = logspectrum(spectrum(w(frame)))
          logfreqspectrogram.append(logfreqspectrum)
      logfreqspectrogram = array(logfreqspectrogram).mean(axis=0)
      return logfreqspectrogram
  
file_path: essentia/test/src/unittests/spectral/test_logspectrum.py
imports: from essentia_test import *
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: getLogSpectrumReference(frameSize, n_octave) and returns: logfreqspectrogram