mag2pow

ketos.audio.utils.misc.mag2pow(img, num_fft)[source]

Convert a Magnitude spectrogram to a Power spectrogram.

Args:
img: numpy.array

Magnitude spectrogram image, linear axis

num_fft: int

Number of points used for the FFT.

Returns:
: numpy.array

Power spectrogram image