I am applying a FFT to my sound like this:
from scipy.fft import fft
samplerate, data = wavfile.read('./sound.wav')
fft_sound = fft(data)
Is there a reversal method which I can use to go from fft_sound
back to data
?
Here's what I did:
samplerate, data = wavfile.read('./StarWars3.wav')
print(data)
print(ifft(fft(data)))
But the outcome looks completely different:
[ 0 0 0 ... -1502 26 414]
[ 0.00000000e+00-1.17911210e-13j -6.75789623e-13-4.22368515e-14j
0.00000000e+00+7.03947524e-14j ... -1.50200000e+03-5.15824216e-14j
2.60000000e+01+3.23030463e-13j 4.14000000e+02+9.36792340e-13j]
Did I use it correctly?