code: def logpowspec(frames, NFFT, norm=1):
      """Compute the log power spectrum of each frame in frames. If frames is an NxD matrix, output will be Nx(NFFT/2+1).
  
      :param frames: the array of frames. Each row is a frame.
      :param NFFT: the FFT length to use. If NFFT > frame_len, the frames are zero-padded.
      :param norm: If norm=1, the log power spectrum is normalised so that the max value (across all frames) is 0.
      :returns: If frames is an NxD matrix, output will be Nx(NFFT/2+1). Each row will be the log power spectrum of the corresponding frame.
      """
      ps = powspec(frames, NFFT)
      ps[ps <= 1e-30] = 1e-30
      lps = 10 * numpy.log10(ps)
      if norm:
          return lps - numpy.max(lps)
      else:
          return lps
  
file_path: python_speech_features/python_speech_features/sigproc.py
imports: import decimal
  import numpy
  import math
  import logging
label_desc: Use image node_id 7 for calling a global function with example usage: logpowspec(frames, NFFT, norm) and returns: unknown, lps