(frames, nfft)
return 1.0 / nfft * numpy.square(magspec(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.
Compute the power spectrum of each frame in frames. If frames is an NxD matrix, output will be Nx(NFFT/2+1).
Compute the power spectrum of each frame in frames . If frames is an NxD matrix output will be Nx ( NFFT / 2 + 1 ) .
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))
def powspec ( frames , nfft ) : return 1.0 / nfft * numpy . square ( magspec ( frames , nfft ) )