code: def powspec(frames, NFFT):
      """Compute the 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.
      :returns: If frames is an NxD matrix, output will be Nx(NFFT/2+1). Each row will be the power spectrum of the corresponding frame.
      """
      return 1.0 / NFFT * numpy.square(magspec(frames, NFFT))
  
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 6 for calling a global function with example usage: powspec(frames, NFFT) and returns: unknown