GetSpectrumData from sound file not recorder.

Hello, i would like to create an spectrogram image from my sound file.
I successfully did it with the real-time live recording with AudioListener but the problem is they only read the live data from my micro.
Is there any possible way to do it ?
Thanks you in advance.
.
Here is the example of what i wanna do, but not real-time. I wanna it to create an image right after i import the sound file. (*.wav, *.mp3, …)

Unity only allows current audio buffer reads using the GetSpectrumData functions.
To read an entire file ahead you would probably have to implement a third party FFT library like Kiss FFT